Skip to content
Source
Sign inSign up
fuko/trytanstackdb-v2

Phase 1: guide + Apple Notes clone layout #1

Mergedfukomerged 1 commit intomain fromrefs/pull/1/headmerged by fuko

fukocommented

Phase 1 ("Looks") of trytanstackdb.com V2: the guide and the Apple Notes clone, with no TanStack DB wiring yet.

What's in it

  • Layout: the guide panel on the left (about ⅓) and the app in a fake browser on the right, with a resizable divider. Below 1024 px the app is stacked over the guide (a stacked follow-up PR replaces this mobile layout).
  • Fake browser: tab title follows the current note, the address bar shows a fake URL per route, and back/forward/reload run on the router's history. There's an empty slot for the Phase 4 latency/failure controls.
  • Notes clone, two looks:
    • macOS: sidebar with counts and account block, note list with pinned section and date groups, editor, and a toolbar that collapses into a "»" menu as the pane narrows.
    • iPhone: Folders → list → editor stack with back navigation, used when the app pane is under 640 px wide.
  • Routes: /folders/$folderId, /folders/$folderId/notes/$noteId, /settings (TanStack Form + zod) and /analytics (empty for now).
  • Data: JSON fixtures (7 folders, 32 notes, an account) behind src/data/notes-data.ts hooks, which Phase 2 will swap for live queries.
  • Guide: placeholder sections with stable ids and an active-section highlight (a dev-only picker in the header).
  • Theme: light, dark and system across the whole page, with no flash on load.
  • Tooling: shadcn/ui set up, and every dependency pinned to an exact version.

Review

  • An independent Codex review found no blockers. Its five should-fix findings were fixed:
    • history tracking across layout changes
    • mobile back buttons pushing extra history entries
    • folder membership check on note routes
    • checklist accessibility
    • dependency pinning
  • vp check, vp test (17 tests) and vp build pass.
  • An exploratory screw-bugs click-through on desktop and mobile passed.

🤖 Generated with Claude Code

    1. fuko merged this98b8888

    2. fuko closed this

Sign in to join this conversation.