Skip to content

Conversation

@benjaminfrueh
Copy link
Contributor

@benjaminfrueh benjaminfrueh commented Oct 9, 2025

Description

Added new options to filter views by date:

  • Exact date: shows date picker
  • Number of days ahead: shows number input
  • Number of days ago: shows number input

Renamed "start of the year/month/week" to "this year/month/week"

Implementation

  • The magicFields component now has new properties to configure additional inputs
  • Additional input values are stored in the format @magic-field:value (e.g., @datetime-days-ago:30)

Related Issue

Resolves #1758

Resolves #1758

Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
@benjaminfrueh benjaminfrueh self-assigned this Oct 9, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Oct 9, 2025
@benjaminfrueh benjaminfrueh moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Office team Oct 9, 2025
@marcoambrosini marcoambrosini self-requested a review October 16, 2025 12:50
enjeck

This comment was marked as off-topic.

return d
})

const formatDate = (date) => date.toISOString().split('T')[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine that this test breaks if we use a different timezone? Should be fine, since it's just a test. Just confirming that the server logic itself is timezone-proof

@enjeck
Copy link
Contributor

enjeck commented Oct 20, 2025

I notice that it only works for the "Date" type, not "Date and time". It seems like that should work too, ignoring the time part?

Whoops, my bad. It's actually supported :)

@benjaminfrueh benjaminfrueh requested a review from enjeck October 21, 2025 08:58
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
Copy link
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

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

nice

@enjeck enjeck merged commit 6c9bf62 into main Oct 23, 2025
71 of 78 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ☑️ Done in 📝 Office team Oct 23, 2025
@enjeck enjeck deleted the feat/additional-date-filter-options branch October 23, 2025 04:46
@github-actions
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

More advanced date filters

3 participants