Repository navigation
feat(timeline): saved views of the timeline's filters and order - #656
Merged
Merged
Conversation
A Views menu beside the order lists your saved views, one click each, and
saves the filters shown now under a name guessed from them (Enter saves,
Escape leaves). Picking a view and changing the filters offers to save them
into it; deleting one can be undone. Views are each person's own, kept as
saved views of a new kind beside the Library's views and saved searches.
GET/POST /api/v1/activities/views, PATCH/DELETE /activities/views/{id}, and
MCP timeline_views, save_timeline_view and delete_timeline_view.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ln25ykE6uBDqx21WBU94SX
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.
Requested by Adeel · project thread
Description
Before: the filters you read the timeline by (only emails from Work Gmail, important and unreviewed, For you) had to be set again each time, or kept as a bookmarked address.
After: a Views menu beside the search box lists your saved views; picking one sets its filters and order. Save these filters as a view asks for a name (one is offered from the filters, Enter saves); Save these filters into “X” updates a view, and Delete “X” removes one with Undo. When the filters on screen match a view, the button shows its name. Agents get the same through the API (
GET/POST /api/v1/activities/views,PATCH/DELETE /api/v1/activities/views/{id}) and MCP (timeline_views,save_timeline_view,delete_timeline_view).How: a view is a
saved_viewof the new kindtimeline, stored with the existing saved-views code (domain/views.py) and its rules, personal to whoever saved it (no namespace, no sharing). Its state is checked by aTimelineViewStateschema (kinds, actors, namespaces, tag, days, automation, words, unreviewed, important, order).Motivation and Context
A refine-later item of the activity stream design (thread above): "Saved filter views." Follows #654.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.changelog.d/(timeline-saved-views.md).Done questions (AGENTS.md)
test_timeline_views.py.saved_view; nothing existing changes shape.test_timeline_views.py,test_mcp.py; jest timeline-ui ("Views:" tests) and timeline-model; docs timeline.md, mcp.md, requirements.md, README, changelog.d; client frommake openapi.domain/views.pyandroutes/views.pyhelpers, the page's existing Filters andtoParams.CI on the PR decides the merge.
Generated by Claude Code