UI polish pass: word count, slash commands, task lists, graph peek, bulk delete, export
- WordCount component (toggle words/chars vs read time, persisted mode) - TipTap: TaskList/TaskItem extensions, slash command menu (H1-H3, lists, code, quote, task) - Markdown serializer: task list → `- [ ]` / `- [x]` roundtrip - GraphView: slide-in peek panel for note/task nodes (body, tags, linked nodes); tag nodes still navigate - ChatView: bulk-select conversations with two-click confirm delete + chat retention policy (default 90d) - NoteEditorView: pill tab bar with animated edit/preview toggle + WordCount in toolbar - WorkspaceNoteEditor: inline search with tag matching, inline new-note creation, WordCount - WorkspaceTaskPanel: task body rendered in slide-over + Edit link - Settings: data export (Markdown ZIP / JSON) via GET /api/export - Accessibility: skip-to-content link, aria-labels on all icon-only buttons - Fix: export route used non-existent fabledassistant.database — corrected to async_session() - Fix: ToolCallRecord.status type now includes "running" (was causing TS build error) - Dockerfile: upgrade npm to latest before install to suppress major-version notice - npm audit fix: patched minimatch (ReDoS) and rollup (path traversal) — 0 vulnerabilities Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -115,6 +115,17 @@ export const useChatStore = defineStore("chat", () => {
|
||||
}
|
||||
}
|
||||
|
||||
async function bulkDeleteConversations(ids: number[]) {
|
||||
if (!ids.length) return;
|
||||
await apiPost("/api/chat/conversations/bulk-delete", { ids });
|
||||
const idSet = new Set(ids);
|
||||
conversations.value = conversations.value.filter((c) => !idSet.has(c.id));
|
||||
if (currentConversation.value && idSet.has(currentConversation.value.id)) {
|
||||
currentConversation.value = null;
|
||||
}
|
||||
for (const id of ids) delete convStreams.value[id];
|
||||
}
|
||||
|
||||
async function deleteConversation(id: number) {
|
||||
try {
|
||||
await apiDelete(`/api/chat/conversations/${id}`);
|
||||
@@ -494,6 +505,7 @@ export const useChatStore = defineStore("chat", () => {
|
||||
createConversation,
|
||||
fetchConversation,
|
||||
deleteConversation,
|
||||
bulkDeleteConversations,
|
||||
updateTitle,
|
||||
sendMessage,
|
||||
reconnectIfGenerating,
|
||||
|
||||
Reference in New Issue
Block a user