Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffold for Side Navigation block on landing pages #4264

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

leenagupte
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Adds the side navigation block for the landing page.

Uses the same list of links on every page that uses this block. That's fine for now because the first set of landing pages being built are linked together.

Another solution will need to be considered if landing pages start needing different sets of links in the side navigation.

Why

Trello card

How

Screenshots?

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 9, 2024 15:34 Inactive
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from 8caf4ed to 984033d Compare October 9, 2024 15:36
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 9, 2024 15:37 Inactive
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from 984033d to 58f2164 Compare October 9, 2024 15:39
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 9, 2024 15:40 Inactive
@leenagupte leenagupte changed the title Landing pages side navigation scaffold Scaffold for Side Navigation block on landing pages Oct 9, 2024
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from 58f2164 to e69fd58 Compare October 9, 2024 15:59
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 9, 2024 15:59 Inactive
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from e69fd58 to 5cd5953 Compare October 9, 2024 16:00
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 9, 2024 16:00 Inactive
@matthillco matthillco force-pushed the landing-pages-side-navigation-scaffold branch from 5cd5953 to d9b07fb Compare October 10, 2024 10:43
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 10, 2024 10:43 Inactive
@matthillco matthillco force-pushed the landing-pages-side-navigation-scaffold branch from d9b07fb to 99833b9 Compare October 14, 2024 13:04
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 14, 2024 13:04 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 14, 2024 13:37 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 14, 2024 13:57 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 14, 2024 14:52 Inactive
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from c46c6b7 to c9cc6b6 Compare October 14, 2024 16:19
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 14, 2024 16:20 Inactive
@leenagupte leenagupte force-pushed the landing-pages-side-navigation-scaffold branch from c9cc6b6 to 628db25 Compare October 15, 2024 12:50
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 15, 2024 12:50 Inactive
These links will power a side navigation block that will appear on some
landing pages.

The side navigation for all of the landing pages will have the same
links, so rather than adding a links list to the YAML for every landing
page, a shared one will be used.

This is done for expediency and does not reflect how the links will
eventually be handled by the CMS.

The side navigation have been nested inside a links folder to logically
separate them from the content items, and in case we need another list
of common links.
This model reads in the same list of links for each landing page.
This model will need to be modified to read side navigation links from
the links hash in the content item, assuming that's where they will end
up, when they become available.
The view to use the contents_list helper method to determine the active
link.
@matthillco matthillco force-pushed the landing-pages-side-navigation-scaffold branch from 628db25 to fa01d2b Compare October 17, 2024 10:09
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-4264 October 17, 2024 10:10 Failure
@matthillco matthillco force-pushed the landing-pages-side-navigation-scaffold branch from fa01d2b to f899118 Compare October 17, 2024 11:49
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4264 October 17, 2024 11:49 Inactive
@matthillco matthillco marked this pull request as ready for review October 17, 2024 11:51
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

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

For the sake of getting this block in and visible for other devs I'm going to approve this, but with a massive "tech-debt" caveat, which I will discuss in-channel.

@matthillco matthillco merged commit 27872dc into main Oct 17, 2024
12 checks passed
@matthillco matthillco deleted the landing-pages-side-navigation-scaffold branch October 17, 2024 13:36
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.

4 participants