Skip to content

feat(www): add code editor block - #693

Closed
mehdibha wants to merge 1 commit into
mainfrom
claude/block-recreation-c16e4a
Closed

mehdibha wants to merge 1 commit into
mainfrom
claude/block-recreation-c16e4a

Conversation

@mehdibha

@mehdibha mehdibha commented Sep 1, 2026

Copy link
Copy Markdown
Owner

What

Adds a Code Editor block (code-editor) to the /create preview blocks — an IDE surface recreated from a reference screenshot:

  • Editor tab strip with per-tab close buttons (close-on-hover for inactive tabs) and a right-side action cluster: editor menu (split / close others / close all), open-external, expand.
  • Sidebar with a SearchField filter and a Tree file explorer for a fictional meridian-ui project. Typing swaps the tree for a quick-open ListBox of matches, with an Empty state for no hits.
  • Code pane with file-name + path header (search / copy-path actions), line numbers, and syntax highlighting from hand-tokenized source. Token tones map to semantic tokens (text-fg-accent, text-fg-success, text-fg-info, …) so highlighting re-themes live — no hardcoded colors.
  • Status bar: branch, language, line count, Ln/Col, indentation, encoding.
  • Closing the active tab activates its left neighbour; closing all shows a "No editor open" Empty state.

Notes for review

  • Verified in the browser: tree → tab opening, tab switching/closing, filter quick-open, close-all empty state, and that all six syntax tones resolve to distinct theme colors.
  • pnpm check and pnpm typecheck pass; no registry/generated drift (blocks live outside www/src/registry/).

@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dotui Ready Ready Preview Sep 1, 2026 12:58am UTC

@github-actions github-actions Bot added the area: www The dotui.org app: site, landing, docs pages label Sep 1, 2026
@mehdibha
mehdibha marked this pull request as draft September 3, 2026 22:18
@mehdibha mehdibha closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: www The dotui.org app: site, landing, docs pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant