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

Editor: Add a date range search filter #1030

Merged
merged 43 commits into from
Dec 11, 2024
Merged

Editor: Add a date range search filter #1030

merged 43 commits into from
Dec 11, 2024

Conversation

tkohr
Copy link
Collaborator

@tkohr tkohr commented Oct 25, 2024

Description

This PR allows setting a date range filter via the calendar.

Open to-dos are:

Displaying available dates in the calendar via the aggregation values will be part of a separate PR.

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews
  • If new logic ⚙️ is introduced: unit tests were added
  • If new user stories 🤏 are introduced: E2E tests were added
  • If new UI components 🕹️ are introduced: corresponding stories in Storybook were created
  • If breaking changes 🪚 are introduced: add the breaking change label
  • If bugs 🐞 are fixed: add the backport <release branch> label
  • The documentation website 📚 has received the love it deserves

Copy link
Contributor

github-actions bot commented Oct 25, 2024

Affected libs: api-repository, feature-catalog, feature-record, feature-router, feature-search, feature-map, feature-editor, feature-auth, common-domain, api-metadata-converter, ui-search, feature-dataviz, common-fixtures, ui-elements, feature-notifications, ui-catalog, util-shared, ui-widgets, ui-inputs, ui-layout, ui-map, ui-dataviz,
Affected apps: metadata-editor, datahub, demo, webcomponents, map-viewer, search, datafeeder, metadata-converter, data-platform,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

Copy link
Contributor

github-actions bot commented Oct 25, 2024

📷 Screenshots are here!

@tkohr tkohr marked this pull request as ready for review November 6, 2024 10:50
@coveralls
Copy link

coveralls commented Nov 6, 2024

Coverage Status

coverage: 83.97% (+0.6%) from 83.419%
when pulling 3d963c2 on me-date-filter
into a731fc6 on main.

Copy link
Collaborator

@Angi-Kinas Angi-Kinas left a comment

Choose a reason for hiding this comment

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

Nice work 🎉
Thank you @tkohr for this nice date range filter!

While testing the component I was also feeling a need for a "clear filter" button as you already mentioned. But maybe this will be part of future implementation.

Apart from this I only have some minor comments. Let me know if something is not clear.

@jahow jahow added this to the 2.4.0 milestone Nov 14, 2024
tkohr and others added 21 commits December 5, 2024 13:57
to make them work with other filters
todo: methods should only accept DateRange or string, not both
…range

even without the date input, this is used in the calendar display
tkohr added 19 commits December 5, 2024 14:11
…method to simplify template

and align badges
move one common formatUserInfo() to utils at the same time
and use fieldname 'user' in component
treat dates in local timezone in app and without time in URL
…lters summary

fix waiting for this.searchFacade.searchFilters$ via ngOnInit at the same time
both is needed for use in myRecords.component
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@Angi-Kinas Angi-Kinas left a comment

Choose a reason for hiding this comment

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

Thanks @tkohr for implementing a date range search filter!

I tested this together with this PR #1037 and it works fine 👍 🚀

@tkohr
Copy link
Collaborator Author

tkohr commented Dec 11, 2024

Nice, thanks for all the reviewing and testing @Angi-Kinas !

@tkohr tkohr merged commit bef577f into main Dec 11, 2024
13 checks passed
@tkohr tkohr deleted the me-date-filter branch December 11, 2024 17:09
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.

5 participants