Skip to content

feat(desktop): M7 — Monaco file panel with Source / Diff / History views#64

Merged
oratis merged 1 commit into
mainfrom
feat/desktop-monaco-file-panel
May 28, 2026
Merged

feat(desktop): M7 — Monaco file panel with Source / Diff / History views#64
oratis merged 1 commit into
mainfrom
feat/desktop-monaco-file-panel

Conversation

@oratis

@oratis oratis commented May 28, 2026

Copy link
Copy Markdown
Owner

FilePanel becomes real: monaco-editor for source viewing (~17 langs), DiffEditor for git diff, history table from git log. Lazy-loaded monaco (~1.7MB). 549 tests still passing.

The FilePanel screen is now a real Monaco-based file viewer.

  · apps/desktop/src/screens/FilePanel.tsx
    - Source: monaco-editor read-only view, syntax highlighting per
      file extension (ts/tsx/js/jsx/json/md/py/rs/go/rb/sh/yml/html/
      css/sql/toml + plaintext fallback).
    - Diff: monaco-editor's DiffEditor showing the file vs `git show
      HEAD:<path>` so the user sees uncommitted changes inline.
    - History: `git log --pretty=format` queried via tool_bash;
      renders hash / date / subject table.
    - Tab close + view switcher (top bar) + per-tab state.
    - "Open README.md" button on empty state — invokes tool_read.
    - Custom Monaco theme "deepcode-dark" matching the rest of the UI.

  · apps/desktop/package.json — added @monaco-editor/react +
    monaco-editor (monaco itself is ~1.7 MB minified but lazy-loaded
    on first FilePanel render).

Tests: 549 still passing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@oratis oratis merged commit c63770c into main May 28, 2026
@oratis oratis deleted the feat/desktop-monaco-file-panel branch May 28, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant