Skip to content

feat: add CodeMirror-based code viewer for repository files#136

Merged
jonathanlab merged 1 commit intomainfrom
code-viewer-feature
Nov 19, 2025
Merged

feat: add CodeMirror-based code viewer for repository files#136
jonathanlab merged 1 commit intomainfrom
code-viewer-feature

Conversation

@jonathanlab
Copy link
Contributor

@jonathanlab jonathanlab commented Nov 18, 2025

Added codemirror, so that when you click on a file in the file tree, it opens the editor as a tab. I went with codemirror since it seems a bit more flexible than monaco, but we can swap this out easily if needed.

Will add syntax highlighting, diffs, etc. in other PRs.

image.png

@wiz-7ad640923b
Copy link

wiz-7ad640923b bot commented Nov 18, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Total -

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@jonathanlab jonathanlab force-pushed the testing-infrastructure branch from b33454d to cafe394 Compare November 18, 2025 18:17
@jonathanlab jonathanlab marked this pull request as ready for review November 18, 2025 18:20
@jonathanlab jonathanlab requested a review from a team as a code owner November 18, 2025 18:20
Copy link
Contributor Author

jonathanlab commented Nov 19, 2025

Merge activity

  • Nov 19, 10:36 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 19, 10:38 AM UTC: Graphite rebased this pull request as part of a merge.
  • Nov 19, 10:39 AM UTC: @jonathanlab merged this pull request with Graphite.

@jonathanlab jonathanlab changed the base branch from testing-infrastructure to graphite-base/136 November 19, 2025 10:37
@jonathanlab jonathanlab changed the base branch from graphite-base/136 to main November 19, 2025 10:37
- Create CodeMirrorEditor component with syntax highlighting
- Add CodeEditorPanel that loads files from repository
- Add IPC handler to read repository files securely
- Add CodeMirror dependencies (state, view)
- Update gitignore
@jonathanlab jonathanlab merged commit 33ad56e into main Nov 19, 2025
9 of 10 checks passed
@jonathanlab jonathanlab deleted the code-viewer-feature branch November 19, 2025 10:39
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.

2 participants