Repository navigation
Sidebar Dates filter: show a file when any of its dates is in the range - #270
Merged
Merged
Conversation
The list's per-column date filters apply only in the list view. The new Dates section (From / To) in the sidebar applies in the gallery and the list alike, and matches a file when any one of its dates falls in the range, both days included: Captured (EXIF), FS created, FS written, FS accessed, or Recorded (as stored). Either end can be left open. - the filesystem times are instants: the page works out the day bounds in the display time zone (zonedDayEpoch, as the list's date filters do) and sends the start of the day after the last one as the upper bound - the EXIF capture time and a FAT or exFAT volume's as-stored readings carry no zone, so they are compared on the date as written, which is what their columns show; recorded_times goes through json_each behind json_valid - Ingested is not one of the dates - chip, section dot and Clear like every other sidebar filter - MANUAL.md and help.html describe it Co-Authored-By: Claude Opus 5.5 <[email protected]>
A checkbox under From / To. With a range set it adds every file that has none of the five dates (Captured (EXIF), FS created, written, accessed, Recorded (as stored)); with no range set it shows only those files. A 0 or an empty value counts as no date, as the columns show it blank, and the range itself no longer matches one: an instant of 0 used to fall inside a range left open at the start. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
A Dates section in the sidebar, with From / To and an Include files with no dates checkbox. Like every other sidebar filter, it applies in both the gallery and the list. The list's per-column date filters apply only in the list.
A file is shown when any of its dates falls in the range, both days included:
Either end of the range can be left empty. Ingested is not one of the dates.
Include files with no dates:
How the dates are compared
zonedDayEpoch, as the list's date filters already do. It sends the first day's start and the start of the day after the last day, and the server compares with>=and<. Without those bounds, the server reads the days in UTC.recorded_times) have no time zone, so they're compared on the date as written, which is what their columns show.recorded_timesgoes throughjson_eachbehindjson_valid, so a value that isn't JSON can't fail the query.The chip, the section dot, the chip's ✕ and Clear work as they do for the other sidebar filters.
docs/MANUAL.mdandhelp.htmldescribe the section.Testing
tests/test_any_date_filter.py, 8 tests:tools/lint_changed.py: no new warnings. Line endings: all LF.🤖 Generated with Claude Code