feat: conversation list + manage for "Ask your library" (P13d-2b)#146
Merged
Conversation
List-first entry: the Dashboard tile opens a ConversationsScreen of past chats (most-recent-first, preview + relative time), with continue, rename, archive (kept + restorable, behind /ask/archived), and delete. AskController becomes a family keyed by an optional chatId — a seeded id continues a thread (its bounded history feeds back), null creates on first send. No schema change (v14 already carried title/archivedAt); no new deps. https://claude.ai/code/session_013JoYmLCosYt5tQ8qwdbL1T
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.
P13d-2b — Conversation list + manage
Makes the "Ask your library" GraphRAG chat multi-conversation. No schema change (v14 already forward-included
chats.title,chats.archivedAt,chat_messages.citationsJson) and no new deps — repository methods + providers + two list screens + a resumable controller.List-first entry
The Dashboard "Ask" tile (
/ask) now opens aConversationsScreen: past chats most-recent-first, each with a last-message preview + relative time, a "New chat" FAB, and an empty-state CTA. Archived threads live behind/ask/archived(ArchivedChatsScreen), reached from the app-bar overflow./ask→ conversation list ·/ask/chat→ new chat ·/ask/chat/:id→ continue ·/ask/archived→ archived.Resumable chat
AskControlleris now a family keyed byString? chatId— a seeded id continues that thread (its bounded history feeds back into the next turn via the existingmessagesToHistory+fitHistorypath), whilenullcreates the chat on first send (the d-2a behaviour).AskScreentakes achatIdand shows the live, renamable conversation title.Repository
ChatRepositorygainswatchChatList({archived})(one reactive query with a correlated latest-message preview subquery — no N+1),renameChat(blank ignored),setArchived,deleteChat, andwatchChatTitle; plusactiveChatsProvider/archivedChatsProvider/chatTitleProvider.Tests (CI-verifiable; native generation is APK-verified)
ConversationsScreenrenders rows + preview, shows the empty-state CTA, and exposes the row Rename/Archive/Delete menu.dart format+flutter analyzeclean.Docs
docs/design/P13-PLAN.md— d-2b →[~]with as-built status.docs/VERIFICATION.md— P13d-2b APK checklist (two chats listed; reopen continues with context offline; rename/archive/unarchive/delete; empty-state CTA).docs/BACKLOG.md— deferrals: conversation search/pin, bulk actions + swipe-to-archive, content-based re-titling.Verification
Next: d-3 (low/ineligible-tier retrieval-only fallback + tier-aware history depth + LLM/Cozo HNSW RAM co-residency), which closes P13d.
https://claude.ai/code/session_013JoYmLCosYt5tQ8qwdbL1T
Generated by Claude Code