feat(web): date-range filter for the Tasks page - #88
Merged
Conversation
Adds a "Dates" popover to the Tasks header that filters both Board and List views by a timestamp range. The control carries a field selector (Updated / Created / Closed / Due, default Updated), From/To native date inputs that bound each other (To >= From), and quick presets (Today, 7d, 30d, Month). The active range surfaces as a chip on the trigger and folds into the existing filter count + Clear affordance. Filtering is a single read-time predicate added to visibleTasks, so every view that reads it narrows automatically. Tasks missing the chosen timestamp (e.g. an open task has no closed_at) fall out when a range is set, so "Closed in June" never lists unclosed work. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying openacme-ai with
|
| Latest commit: |
9cbf7d2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ddb8105a.openacme-ai.pages.dev |
| Branch Preview URL: | https://tasks-date-range-filter.openacme-ai.pages.dev |
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
Adds a Dates popover to the Tasks page header that filters both the Board and List views by a timestamp range.
To >= From).Updated 06-18→06-24) and folds into the existing filter count + Clear affordance.How
Filtering is a single read-time predicate (
taskInDateRange) added to the existingvisibleTasksmemo, so every view that reads it narrows automatically — no per-view wiring. Tasks missing the chosen timestamp (e.g. an open task has noclosed_at) fall out when a range is set, so "Closed in June" never lists unclosed work.New component
apps/web/app/tasks/date-filter.tsxfollows the existingFilterComboboxpopover + mono/faceplate vocabulary. Consistent with the sibling assignee/team filters, the range is session state (not persisted across reload; only the view mode persists).Verification
pnpm check-types+pnpm lintclean.🤖 Generated with Claude Code