Skip to content

[#74577] Build segmented control quickfilter #23014

Merged
mrmir merged 11 commits intodevfrom
feature/74577-build-primer-quickfilter
May 6, 2026
Merged

[#74577] Build segmented control quickfilter #23014
mrmir merged 11 commits intodevfrom
feature/74577-build-primer-quickfilter

Conversation

@mrmir
Copy link
Copy Markdown
Contributor

@mrmir mrmir commented Apr 30, 2026

Ticket

https://community.openproject.org/wp/74724

What approach did you choose and why?

  • Added QuickFilter::SegmentedComponent and QuickFilter::BooleanComponent
  • Used the new component in the Meetings index page upcoming/past quickfilter, replacing a custom implementation
  • Added basic docs
  • Removed "Invitations" filer from the sidebar menu as it's redundant (and has been for a while)

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@mrmir mrmir force-pushed the feature/74577-build-primer-quickfilter branch from 369a18e to 6501c7f Compare April 30, 2026 14:11
Copy link
Copy Markdown
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

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

Looks good overall. I guess the component can be a bit polished and I would like to disucss the show_all flag before merging

Comment thread app/components/quick_filter/boolean_component.rb Outdated
Comment thread app/components/quick_filter/boolean_component.html.erb Outdated
@mrmir mrmir force-pushed the feature/74577-build-primer-quickfilter branch from cf914a6 to dd092f3 Compare May 6, 2026 07:09
mrmir added 3 commits May 6, 2026 10:53
"My meetings" and "Invitations" were already showing the same results
before, but passed their filter params differently. With changes to the
way the filter params are passed in this PR, both now get highlighted
for the same conditions, and so removing "Invitations" makes sense.

Some changes are needed to the condition to ensure "My meetings" stays
distinct from "All meetings", however.
@mrmir mrmir force-pushed the feature/74577-build-primer-quickfilter branch from 3bb1af2 to 9155f80 Compare May 6, 2026 09:46
@mrmir mrmir changed the title [#74577] Build Primer quickfilter [#74577] Build segmented control quickfilter May 6, 2026
@mrmir mrmir requested a review from HDinger May 6, 2026 10:15
@mrmir mrmir marked this pull request as ready for review May 6, 2026 10:15
@github-actions

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

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

Looks very good 👍 I only have a very small comment

Comment thread app/components/op_primer/quick_filter/boolean_component.rb Outdated
Comment thread lookbook/docs/patterns/10-quick-filters.md.erb
Co-authored-by: Henriette Darge <h.darge@openproject.com>
@mrmir mrmir force-pushed the feature/74577-build-primer-quickfilter branch from 119c0fc to 4e8c72f Compare May 6, 2026 13:00
@mrmir
Copy link
Copy Markdown
Contributor Author

mrmir commented May 6, 2026

Failing specs are flaky, merging

@mrmir mrmir merged commit 16c0d02 into dev May 6, 2026
16 of 17 checks passed
@mrmir mrmir deleted the feature/74577-build-primer-quickfilter branch May 6, 2026 14:20
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants