docs(design): rewrite DESIGN.md for library-first shell#134
Merged
Conversation
Realigns DESIGN.md with the shipped library-first product (PRs #122–#133). Reverses the 2026-03-27 "search box is the product" framing now that the Sidebar + Project View + ⌘K overlay are the home, and adds a decisions-log row that references the reversal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
Spacing's "Search bar padding (home / results bar)" and the First-Person Language Do/Don't row "You starred this" both predated the library-first shell. Updated to "⌘K overlay / results page" and "You pinned this" so the doc reads consistently end-to-end. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
What
Realign
DESIGN.mdwith the library-first product that shipped in PRs #122–#133 (project identity, library shell, sidebar, project view, pin migration, ⌘K overlay, session detail). The doc had been frozen on the older "centered search box is the entire product" framing and explicitly labeled the home state as "transitional, will be replaced by Project View in PR 4" — PR 4 has long since shipped.Why
DESIGN.mdis the source of truth for visual decisions and is referenced byCLAUDE.md("Always read DESIGN.md before making any visual or UI decisions"). Leaving it inconsistent with the shipped UI silently invites regressions: any new contributor reading it would build the wrong product. Recent decisions (Pin replacing Star, ⌘K overlay, no centered hero) also had no entry in the decisions log, so the why behind the pivot was undocumented.How it connects
Pure docs change — no code, no asset, no behavior touched. Sets up the language used by the next two follow-ups: rewriting
README.md+packages/landing/pages/docs/*for the new positioning (#135), and redesigning the landing page hero/specimen.What changed
Search Barblock withSearch (⌘K overlay); removedSource Chips (home screen)(gone); added new blocks forLibrary Home,Project View, andPin Button.Verification
DESIGN.mdend-to-end. Final residue scan (search.box|search bar|centered.*home|results.bar|home state|transitional|Star) returns only intentional hits: the explicit anti-pattern lines, the historical 2026-03-27 decisions log entries, and the new 2026-04-30 entries that reference them.Library HomematchesLibraryLanding.tsx(PINNED + RECENT, date buckets, globallistPinnedSessions);Project ViewmatchesProjectView.tsx(Recent/Oldest/Most messages/Title sort, source filter chips, PINNED segment);Search (⌘K overlay)matchesSearchOverlay.tsx(Scope = 'all' | 'project', Fast/AI mode toggle);SidebarmatchesSidebar.tsxafter feat(app): sort sidebar projects #133's sort-menu addition;Pin ButtonmatchesPinButton.tsx.