Skip to content

Upd pages for submit#1197

Merged
pooleycodes merged 13 commits into
mainfrom
upd-pages-for-submit
Jun 3, 2026
Merged

Upd pages for submit#1197
pooleycodes merged 13 commits into
mainfrom
upd-pages-for-submit

Conversation

@Jandums
Copy link
Copy Markdown
Contributor

@Jandums Jandums commented May 28, 2026

Description

Update to the SUBMIT repository to reflect user community feedback

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Related Tickets & Documents

#1193
digital-land/digital-land#634

  • Closes #

QA Instructions, Screenshots, Recordings

Before

image screenshot here_

After

New Landing page:
image

New Community Tab
Screenshot 2026-05-28 at 10 40 53

New Community Page:
image## Added/updated tests?
We encourage you to keep the code coverage percentage at 80% and above.

New Extract Tab/ Page:
Screenshot 2026-06-03 at 00 52 09

  • Yes
  • No, and this is why: Please replace this line with details on why tests have not been included
  • I need help with writing tests

QA sign off

  • Code has been checked and approved
  • Design has been checked and approved
  • Product and business logic has been checked and proved

[optional] Are there any post-deployment tasks we need to perform?

[optional] Are there any dependencies on other PRs or Work?

Summary by CodeRabbit

  • New Features

    • Added Community and Extract sections with pages and routes; surfaced in site navigation.
  • UI/UX Updates

    • Redesigned landing page content and updated primary call-to-action to "Start now".
    • Navigation updated across pages to include Community and Extract.
  • Content

    • New Community and Extract page copy and links.
    • Guidance text made more generic using an article-aware wording helper.
  • Tests

    • Updated landing page test to use the new "Start now" CTA.

@Jandums Jandums self-assigned this May 28, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 373236c7-6283-4b9d-9b06-1d8fc656cf3c

📥 Commits

Reviewing files that changed from the base of the PR and between bfc7cc5 and c37b69d.

📒 Files selected for processing (6)
  • src/filters/aOrAn.js
  • src/filters/filters.js
  • src/views/community.html
  • src/views/extract.html
  • src/views/includes/_issue-guidance.html
  • src/views/landing.html
✅ Files skipped from review due to trivial changes (3)
  • src/filters/filters.js
  • src/filters/aOrAn.js
  • src/views/includes/_issue-guidance.html
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/views/extract.html
  • src/views/landing.html

Walkthrough

Adds Community and Extract top-level sections: navigation entries, Express routes and Nunjucks views, mounts the routes, updates templates to surface the links site-wide, adjusts the landing masthead and CTA, and adds an aOrAn filter used in issue guidance.

Changes

Community and Extract Navigation Sections

Layer / File(s) Summary
Navigation link definitions
src/filters/getNavigationLinks.js
Navigation link registry extended with community and extract entries (href and text).
Community page route and view
src/routes/community.js, src/views/community.html
Express router for /community added and community.html template created, extending the main layout and rendering community content.
Extract page route and view
src/routes/extract.js, src/views/extract.html
Express router for /extract added and extract.html template created describing the extraction tool and linking to https://extract.ai.gov.uk/.
Route handler registration
src/serverSetup/routes.js
Import and mount the community and extract routers under /community and /extract.
Global navigation exposure across templates
src/views/accessibility.html, src/views/cookies.html, src/views/error.html, src/views/organisations/*.html, src/views/privacy-notice.html
Multiple view templates updated to include community and extract in calls to getNavigationLinks, expanding navigationItems across the site.
Landing page redesign and CTA update
src/views/landing.html, test/PageObjectModels/landingPage.js
Landing masthead copy replaced with bullet messaging, CTA relabelled to “Start now”, a large content block removed, and Playwright test selector updated accordingly.
aOrAn filter and guidance text
src/filters/aOrAn.js, src/filters/filters.js, src/views/includes/_issue-guidance.html
Add aOrAn helper, register it as a Nunjucks filter, and apply it in issue guidance to choose the correct indefinite article.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

enhancement

Suggested reviewers

  • eveleighoj
  • paris-dp

Poem

🐇 A rabbit's hoppy note:
New paths bloom in site navigation,
Community, Extract—clear in station,
Buttons moved and filters sown,
Hop on, the pages are grown.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The PR title 'Upd pages for submit' is vague and uses abbreviated, non-descriptive terminology that does not clearly convey the main changes, which involve adding new Community and Extract pages, updating navigation across multiple templates, and refactoring the landing page. Revise the title to be more specific and descriptive, e.g., 'Add Community and Extract pages with updated navigation' or 'Introduce Community and Extract sections with landing page updates'.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch upd-pages-for-submit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 66.46% 7207 / 10844
🔵 Statements 66.46% 7207 / 10844
🔵 Functions 63.71% 295 / 463
🔵 Branches 77.64% 997 / 1284
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/filters/aOrAn.js 100% 33.33% 100% 100%
src/filters/filters.js 100% 100% 100% 100%
src/filters/getNavigationLinks.js 100% 100% 100% 100%
src/routes/community.js 0% 0% 0% 0% 1-11
src/routes/extract.js 0% 0% 0% 0% 1-11
src/serverSetup/routes.js 0% 0% 0% 0% 1-30
Generated in workflow #1488 for commit c37b69d by the Vitest Coverage Report Action

@Jandums Jandums marked this pull request as ready for review June 3, 2026 06:27
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/views/community.html`:
- Around line 7-15: Remove the two empty <h1 class="govuk-heading-xl"> elements
and fix the mismatched anchor so the "Community" heading remains a single <h1>
and the descriptive text is properly wrapped inside the link and surrounding
spans; locate the elements with class "govuk-heading-xl" and the anchor
referencing "https://opendigitalplanning.org/about" and change the markup so
there is only one <h1 class="govuk-heading-xl">Community</h1>, the anchor
contains the linked span text ("get involved with community events and
discussions"), and no stray closing </a> remains, ensuring correct nesting and
valid HTML structure.

In `@src/views/extract.html`:
- Around line 7-27: The template contains two empty top-level headings and an
unmatched closing anchor: remove the empty <h1 class="govuk-heading-xl"></h1>
elements (the ones before the main title and at the end) and delete the stray
</a> so the "Find out more about extract" link is correctly formed (ensure the
<a> wraps only the span with class "govuk-body" and is properly opened/closed);
keep the single meaningful <h1 class="govuk-heading-xl">Extract your data</h1>
for an accessible heading structure.

In `@src/views/landing.html`:
- Line 37: Fix the typo in the user-facing paragraph that reads "Planning data
aims to make land and housing data easier to find, use and trust. We take the
data you provide and standardise it in a consistant format." by replacing
"consistant" with "consistent" in the landing view HTML paragraph containing
that sentence.
- Around line 25-34: The masthead currently nests a <ul> inside a <p> (the
element with class app-masthead__description), which is invalid HTML; replace
the paragraph wrapper with a block container (e.g., a div) that preserves the
same classes (app-masthead__description govuk-body-l govuk-!-margin-bottom-4)
and keep the existing <ul class="govuk-list govuk-list--bullet
govuk-list--spaced app-masthead govuk-body-l"> and its <li> items unchanged so
the list is no longer nested inside a paragraph and
rendering/assistive-technology behavior is correct.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4179ed2d-1416-476c-bc53-5f9474fd320e

📥 Commits

Reviewing files that changed from the base of the PR and between 1f339c3 and 628204a.

📒 Files selected for processing (21)
  • src/filters/getNavigationLinks.js
  • src/routes/community.js
  • src/routes/extract.js
  • src/serverSetup/routes.js
  • src/views/accessibility.html
  • src/views/community.html
  • src/views/cookies.html
  • src/views/error.html
  • src/views/extract.html
  • src/views/landing.html
  • src/views/organisations/dataset-overview.html
  • src/views/organisations/datasetTaskList.html
  • src/views/organisations/dataview.html
  • src/views/organisations/find.html
  • src/views/organisations/get-started.html
  • src/views/organisations/http-error.html
  • src/views/organisations/issueDetails.html
  • src/views/organisations/issueTable.html
  • src/views/organisations/overview.html
  • src/views/privacy-notice.html
  • test/PageObjectModels/landingPage.js

Comment thread src/views/community.html Outdated
Comment thread src/views/extract.html Outdated
Comment thread src/views/landing.html
Comment thread src/views/landing.html Outdated
Removed duplicate list of service usage instructions and adjusted formatting.
Ben-Hodgkiss
Ben-Hodgkiss previously approved these changes Jun 3, 2026
@pooleycodes pooleycodes merged commit 7502f0f into main Jun 3, 2026
5 checks passed
@pooleycodes pooleycodes deleted the upd-pages-for-submit branch June 3, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants