feat: add optional timestamp range filter to search and RSS feed - #410
Open
CatNoir2006 wants to merge 2 commits into
Open
feat: add optional timestamp range filter to search and RSS feed#410CatNoir2006 wants to merge 2 commits into
CatNoir2006 wants to merge 2 commits into
Conversation
Adds support for an explicit epoch_second-based timestamp range in both the JSON API (POST/GET /api/query) and the RSS feed. - SearchEngine: new range filter on 'timestamp' using gte/lte when timestamp_from or timestamp_to is provided in the query. - If an explicit range is set, the 'future: false' filter is skipped so the two filters do not collide on the same field. - RSSFeedGenerator: parses timestamp_from / timestamp_to from the URL query string and forwards them to the SearchEngine.
Adds two date inputs ('Von' / 'Bis') to the search bar that wire
through to the new server-side timestamp range filter from the
previous commit.
- store.svelte.ts: new timestampFrom/timestampTo state, included in
the request body, URL hash and trackSearch payload; getter/setter
reset the page on change like the existing future toggle.
- SearchBar.svelte: two date inputs between the 'Zukünftige' toggle
and the sort dropdown; epoch_second conversion done inline on
onchange. Styled consistently with the search input (h-10, dark
mode aware, color-scheme for native picker).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add optional timestamp range filter to search and RSS feed

Implements #161