feat: restore v0-style sidebar dropdown + ChatHeader (legendary theme switch)#65
Merged
Conversation
#62 (P1) — 401 on all /api/* routes: - proxy.ts: treat placeholder BETTER_AUTH_SECRET as 'auth disabled' (dev stays anonymous), add /api/health to PUBLIC_PATHS (Docker healthcheck must work) - lib/auth/better-auth.ts: trust both localhost:3000 and :3100 origins (port mapping breaks Better Auth baseURL) - app/api/health/route.ts: force-dynamic, runtime nodejs (no caching) #59 (P2) — Turbopack NFT warnings (3 → 1 remaining): Extract all dynamic fs/path/cwd into separately-imported modules so the NFT tracer never sees them at route boundaries: - lib/workspace/design-edit-fs.ts (from design-edit route) - lib/workspace/files-fs.ts (from files route) - lib/workspace/design-history-fs.ts (from design-history re-export) - lib/audit-fs.ts (from audit re-export) - lib/sin/orchestrator-stream-impl.ts (from orchestrator-stream wrapper) - lib/sin/orchestrator-runner.ts: DELETED (orphan, replaced by orchestrator-stream) - next.config.mjs: extended outputFileTracingExcludes for all new -fs files #60 (P2) — ⌘Z / ⌘⇧Z in Design Mode: - public/design-mode-agent.js: keydown listener posts design-undo / design-redo to parent (gated by 'enabled' flag, ignores editable fields) - components/workspace/preview-panel.tsx: postMessage listener calls /api/workspace/design-history POST, shows toast feedback - components/workspace/workspace-header.tsx: ⌘Z / ⌘⇧Z hint icon in Design tab #61 (P1) — CI / branch protection: verification-only, no code change. Known limitation: 1 NFT warning remains in lib/sin/* chunk (output asset trace from execFile usage in lib/sin/run.ts). Next.js 16.2.6 limitation — the NFT tracer still flags transitive node:child_process imports even behind two layers of dynamic imports. Build succeeds, runtime works. Refs: #51-#55 (closed), #59 #60 #61 #62
… ChatHeader #65 — User rage-quit: the legendary sidebar footer dropdown with the System/Light/Dark theme switch (Monitor/Sun/Moon icons) plus Profile, Account Settings, Pricing, Documentation, Feedback, Community Forum, Refer a Friend, Language, Chat Position preferences — was lost. #66 — The v0-style ChatHeader (Drafts breadcrumb, Star, title dropdown with Rename/Favorites/Settings/Transfer/Delete, project options menu with Vercel Project/Integrations/EnvVars/GitHub/Template/Domains/Analytics, Share button) was lost when components/chat-view.tsx was removed. What was restored: - components/auth/user-menu.tsx: full DropdownMenu with user info, 7 navigation items, Theme 3-segment switch wired to next-themes, Language + Chat Position (links to /settings/preferences), Sign Out. - components/chat/chat-header.tsx: NEW — full v0 ChatHeader moved from initial commit, now imported by components/chat/chat-view.tsx - components/chat/chat-view.tsx: ChatHeader rendered at top + new 'title' prop wired to chatStore label - components/chat/chat-view-wrapper.tsx: passes title from useChatStore - components/chats-list.tsx: fixed 'chat.updated' reference (not in ChatEntry type) — shows 'Recent' instead Files unchanged but already aligned with initial commit: - components/ui/avatar.tsx, components/ui/separator.tsx (identical) - components/prompt-box.tsx, components/page-shell.tsx (already wired)
CEO Audit — Not applicableThis repository is a Node.js / TypeScript project. Recommended checks for this repo:
|
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.
Restores the legendary v0-style sidebar footer dropdown and chat header that were lost during the orphaned-component-cleanup commits.
Sidebar dropdown (user-menu.tsx)
The legendary dropdown with System/Light/Dark theme switch (3-segment toggle with Monitor/Sun/Moon icons) was replaced by a sterile login/logout bar. Restored:
ChatHeader (chat/chat-header.tsx)
The v0-style chat header with breadcrumb + dropdowns + project menu was missing. Restored from initial commit (3f94740):
Now rendered at the top of every chat view, title sourced from chatStore label.
Files
Verification