US-017 completed

This commit is contained in:
Roberto Musso
2026-02-22 23:21:37 +01:00
parent 2308158976
commit 98acf6220e
5 changed files with 158 additions and 27 deletions

View File

@@ -23,21 +23,21 @@ APPEND to progress.txt (never replace, always append):
## USER REQUEST
{
"id": "US-016",
"title": "Milkdown note editor",
"description": "As a user, I want a full-screen Markdown editor for each note so that I can write rich content without leaving the app.",
"id": "US-017",
"title": "Fluid Curtain pull-down animation",
"description": "As a user, I want to pull down from the top of any view to slide the app panel off-screen and reveal the AI chat layer beneath.",
"acceptanceCriteria": [
"@milkdown/react and @milkdown/preset-commonmark installed; Milkdown editor renders at route /notes/:noteId",
"Supported Markdown: headings (H1-H6), bold, italic, inline code, code blocks, bullet lists, ordered lists, blockquotes",
"Note title editable as a shadcn/ui Input (variant borderless/ghost style) at the top of the page (separate from Milkdown content area)",
"Content auto-saves to SQLite via notes.update on Milkdown onChange event, debounced 500ms",
"Unsaved indicator shown using shadcn/ui Badge (variant=secondary, text 'Saving...') next to the title while save is pending",
"Back button uses shadcn/ui Button (variant=ghost, size=icon) with ArrowLeft Lucide icon; navigates to the previous route",
"All UI chrome uses shadcn/ui components (already installed)",
"framer-motion useMotionValue + useSpring (stiffness: 300, damping: 30) controls a 'y' CSS transform on the main app panel wrapper",
"Trigger 1: wheel event listener at document level — when the current route's scroll position is at 0 and deltaY < 0 (overscroll up), animate panel y from 0 to viewport height",
"Trigger 2: Cmd/Ctrl+K keyboard shortcut toggles curtain open (y = viewport height) and closed (y = 0)",
"AI chat view is rendered as a fixed full-screen layer behind the sliding panel and becomes fully visible when panel slides down",
"App panel remains mounted during animation (no unmount/remount, no state loss)",
"Returning from chat: wheel event with deltaY > 0 at chat-bottom OR Cmd/Ctrl+K slides panel back to y = 0",
"Right-edge vertical 'keep scrolling for AI' label with chevron-down is visible in every section (non-interactive, visual hint only)",
"Typecheck passes",
"Verify in browser using dev-browser skill"
],
"priority": 16,
"priority": 17,
"passes": false,
"notes": ""
}