Repository navigation
feat(positron): NavViewState contract — the define-once navigation state (nav slice 1) - #1830
Merged
Merged
Conversation
…ate (nav slice 1)
First brick of docs/design/NAVIGATION-ACROSS-MODALITIES.md. The neutral, per-CITIZEN nav view (sibling to
the per-room chat/wall/kanban views) that every surface renders in its own idiom — desktop panels, phone
tabs+push, terminal keys, persona MENU — and the web additionally projects onto the URL:
- NavViewState { user_id, current_tab?, open_tabs[], last_read: map, bookmarks[] }, kind="nav".
- NavTab { id, title, kind, unread } — unread DERIVED from last_read at projection, not stored twice.
- NavTargetKind { Room | Content | Persona }; NavBookmark { target, label, kind }.
- last_read[room] is the KEYSTONE dual-consumer row: human unread badge AND the persona's RAG "what's new
since I last looked" cursor (the bookmark ChannelDigest already keeps). One write path, two readers.
Mirrors the kanban/wall contract pattern exactly (open self-registered KIND, ts-rs mirror, structs-not-
Value). ts-rs exports NavViewState/NavTab/NavBookmark/NavTargetKind with last_read as Record<string,number>
(no u64→bigint drift). 6 tests green. NEXT: positron_nav_source projector (re-read airc scoped-state #89,
like kanban) + markRead command + web render.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
First brick of docs/design/NAVIGATION-ACROSS-MODALITIES.md. The neutral, per-CITIZEN nav view (sibling to
the per-room chat/wall/kanban views) that every surface renders in its own idiom — desktop panels, phone
tabs+push, terminal keys, persona MENU — and the web additionally projects onto the URL:
since I last looked" cursor (the bookmark ChannelDigest already keeps). One write path, two readers.
Mirrors the kanban/wall contract pattern exactly (open self-registered KIND, ts-rs mirror, structs-not-
Value). ts-rs exports NavViewState/NavTab/NavBookmark/NavTargetKind with last_read as Record<string,number>
(no u64→bigint drift). 6 tests green. NEXT: positron_nav_source projector (re-read airc scoped-state #89,
like kanban) + markRead command + web render.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo