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

[#7812] Allow requests to be browsed by tag #8197

Merged
merged 7 commits into from Apr 22, 2024
Merged

Conversation

gbp
Copy link
Member

@gbp gbp commented Apr 11, 2024

Relevant issue(s)

Fixes #7812

What does this do?

Allow requests to be browsed by tag

Why was this needed?

So we can view tagged requests and make topic pages.

Screenshots

image

@gbp gbp force-pushed the 7812-browse-request-category branch 3 times, most recently from 07d109b to f370a7b Compare April 11, 2024 14:55
gbp added 2 commits April 12, 2024 12:29
Remove unused double and there is no reason to load the raw emails.
Extract setup into before action hook. This will be reused in a new list
by tag action.
@gbp gbp force-pushed the 7812-browse-request-category branch from f370a7b to 36ccb76 Compare April 12, 2024 14:41
@gbp
Copy link
Member Author

gbp commented Apr 12, 2024

Have forced push some updates so the existing form filters now keep the current tag.

This gives us URLs in the form of /list/climate/successful, /list/climate/awaiting etc...

@gbp gbp force-pushed the 7812-browse-request-category branch from 36ccb76 to 5b54100 Compare April 12, 2024 14:43
@gbp gbp changed the base branch from 7255-category-notes to develop April 12, 2024 14:49
@gbp gbp force-pushed the 7812-browse-request-category branch from 5b54100 to 2d819a3 Compare April 12, 2024 14:51
gbp added 2 commits April 15, 2024 09:24
Remove routes for "all" and "recent" views.

The "recent" view already is redirected in the main `list` action to the
"all" view.

The "all" view should really be the default for the `list` action as
currently the `/list` endpoint will show no requests because there is no
view is selected.
Having access to the results here will allow us to check for the number
of results before rendering.
@gbp gbp force-pushed the 7812-browse-request-category branch from 2d819a3 to 50dbd0a Compare April 15, 2024 08:24
@gbp gbp added the on-staging label Apr 16, 2024
@garethrees
Copy link
Member

This all looks great to me!

Would it be easy to change the heading to just the category title?

Screenshot 2024-04-17 at 11 24 49

gbp added 3 commits April 22, 2024 08:18
Allow users to view requests by tag. In the tag belongs to a category
then, load the category and render a different title.
Render any category notes and it's rich text body.
@gbp gbp force-pushed the 7812-browse-request-category branch from 4bde041 to bb16fb2 Compare April 22, 2024 07:18
@gbp gbp merged commit e93778a into develop Apr 22, 2024
6 checks passed
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.

Allow requests to be browsed by tag
2 participants