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

[DO NOT MERGE] Reorder number 10 org page #3795

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

AshGDS
Copy link
Contributor

@AshGDS AshGDS commented Oct 15, 2024

What / Why

Screenshots

image

@AshGDS AshGDS changed the title Reorder number 10 org page [DO NOT MERGE] Reorder number 10 org page Oct 15, 2024
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

One minor comment about array manipulation, otherwise it looks good to me.

app/views/organisations/_featured_news_no10.html.erb Outdated Show resolved Hide resolved
leenagupte and others added 2 commits October 16, 2024 18:16
Makes better use of the `first_featured_news` on the number 10 org page.
The `remaining_featured_news` method then does what it says and returns
all of the remaining news, rather than actually returning everything.

`large: true` is being merged into the first item in
`first_featured_news`, so that doesn't need to be repeated in the view.

I'm not sure if these changes are having an affect on how the page is
rendered.
@govuk-ci govuk-ci temporarily deployed to collections-pr-3795 October 17, 2024 10:50 Inactive
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.

LGTM!

@@ -17,7 +17,14 @@
} %>
</div>
</div>

<%
@documents.first_featured_news[:context][:text] = "Featured"
Copy link
Contributor

Choose a reason for hiding this comment

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

You could theoretically get this from the localisation files, but don't let that be a blocker.

Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Frontend looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants