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

205 filter publications UI #2301

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

davidtrussler
Copy link
Contributor

Trello

This work primarily adds the UI to the filter section of the publications page into the left hand column (see screenshot below).

In addition to that there is some logic to pre-populate fields where required which could probably do with a bit more discussion form a Rails perspective.

Screenshot 2024-08-27 at 12 21 59

Copy link
Contributor

@mtaylorgds mtaylorgds left a comment

Choose a reason for hiding this comment

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

It doesn't necessarily have to be part of this PR, but we should at least do it as part of the Trello ticket to create a non-legaqy version of the integration tests in test/integration/legacy_root_overview_test.rb

app/views/root/_filter.html.erb Outdated Show resolved Hide resolved
app/views/root/_filter.html.erb Outdated Show resolved Hide resolved
app/views/root/_filter.html.erb Outdated Show resolved Hide resolved
} %>

<%= render "govuk_publishing_components/components/select", {
id: "format_filter",
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe now would be a good time to rename the various usages of the term "format" with "content type" in the new (non-legacy) code.

@mtaylorgds
Copy link
Contributor

With this PR, we should probably port all the tests in test/integration/legacy_root_overview_test.rb into test/integration/root_overview_test.rb (which wasn't possible until filtering was in place).

@davidtrussler davidtrussler force-pushed the 205_filter-publications_UI branch 3 times, most recently from eb83beb to 1d7a41a Compare September 4, 2024 16:38
@davidtrussler davidtrussler marked this pull request as ready for review September 4, 2024 18:30
@davidtrussler davidtrussler force-pushed the 205_filter-publications_UI branch 7 times, most recently from 995eb29 to b23a112 Compare September 5, 2024 13:26
Copy link
Contributor

@mtaylorgds mtaylorgds left a comment

Choose a reason for hiding this comment

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

A couple of "format" references left that we should probably rename to "content_type"; other than that, LGTM—but someone else will have to approve, since I pushed one of the commits on this PR.

app/presenters/filtered_editions_presenter.rb Outdated Show resolved Hide resolved
app/presenters/filtered_editions_presenter.rb Outdated Show resolved Hide resolved
- Add stylesheet for Publications page
- Add publishing components to filter form
- Add new tests and update existing tests
@davidtrussler davidtrussler merged commit 41a25c0 into main Sep 6, 2024
13 checks passed
@davidtrussler davidtrussler deleted the 205_filter-publications_UI branch September 6, 2024 10: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.

3 participants