Skip to content

feat(dashboard): add file viewer modal and open-in-editor support - #1

Merged
VioletCranberry merged 1 commit into
mainfrom
feat/dashboard-file-viewer
Feb 17, 2026
Merged

feat(dashboard): add file viewer modal and open-in-editor support#1
VioletCranberry merged 1 commit into
mainfrom
feat/dashboard-file-viewer

Conversation

@VioletCranberry

Copy link
Copy Markdown
Owner
  1. src/cocosearch/mcp/server.py — New API endpoints (/api/open-in-editor POST,
    /api/file-content GET) with helper functions: _validate_file_path(), _resolve_editor(),
    _build_editor_command(), _get_prism_language(), and a full Prism.js language mapping
  2. src/cocosearch/dashboard/server.py — Same endpoints wired into the standalone dashboard
    HTTP handler
  3. src/cocosearch/dashboard/web/static/index.html — File viewer modal with Prism.js syntax
    highlighting, "Open" and "View File" buttons on search results, clickable file paths with
    copy feedback, toast notifications
  4. tests/unit/mcp/test_server_file_endpoints.py — 287-line test file covering all helpers and
    endpoints
  5. README.md — PyPI badge, uvx cocosearch (replacing uvx --from git+...), new dashboard
    screenshots
  6. .claude-plugin/plugin.json — Switch from git+https://... to cocosearch (PyPI)
  7. .env.example — Document COCOSEARCH_EDITOR env var
  8. CLAUDE.md — Update API route list, add COCOSEARCH_EDITOR docs, minor formatting
  9. docs/dashboard-open-file-dark.png, docs/dashboard-search-light.png — New screenshots

  Add "Open in Editor" and "View File" buttons to search results in the
  web dashboard. The file viewer modal shows syntax-highlighted content
  (via Prism.js) with line-range highlighting. Editor integration resolves
  COCOSEARCH_EDITOR/EDITOR/VISUAL with line-jump support for VS Code, Vim,
  Emacs, Sublime, JetBrains, and others. Also switch uvx install source
  from git+https to PyPI package name and add a PyPI version badge.
@VioletCranberry
VioletCranberry merged commit 569123f into main Feb 17, 2026
2 checks passed
@VioletCranberry
VioletCranberry deleted the feat/dashboard-file-viewer branch February 17, 2026 10:22
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