Skip to content

Add a package-aware file tree sidebar for multi-file tscircuit workspaces#11

Merged
rushabhcodes merged 2 commits into
tscircuit:mainfrom
rushabhcodes:feat/package-aware-workspace-file-tree
Jun 29, 2026
Merged

Add a package-aware file tree sidebar for multi-file tscircuit workspaces#11
rushabhcodes merged 2 commits into
tscircuit:mainfrom
rushabhcodes:feat/package-aware-workspace-file-tree

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

What changed

This PR upgrades the Monaco workspace editor from a flat multi-file list into a package-aware editing experience for real tscircuit projects.

It adds:

  • a collapsible file tree sidebar for nested workspace packages
  • inline file create, rename, and delete actions
  • hidden-file filtering for generated/config noise
  • exported sidebar and tree primitives for library consumers
  • a real multi-folder SparkFun board fixture plus RunFrame entrypoint resolution for end-to-end validation

Why

The existing workspace flow was workable for small demos, but it broke down on real tscircuit packages with nested folders, imported parts, and multiple source files. Editing larger boards required too much path-level context switching and made the standalone editor feel far behind the package UX users expect.

This change makes the editor significantly more usable for real project structures and closer to the workflow needed for multi-file circuit development.

Impact

  • Improves workspace navigation and file management for multi-file packages
  • Makes cross-file Monaco usage feel more like a real project editor
  • Validates the UI against a non-toy board fixture instead of a trivial example
  • Expands the reusable public API for hosts embedding the editor

Validation

  • bun run typecheck
  • bun run build

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
monaco-code-editor Ready Ready Preview, Comment Jun 29, 2026 9:23pm

Request Review

@rushabhcodes rushabhcodes marked this pull request as ready for review June 29, 2026 21:25
@rushabhcodes rushabhcodes merged commit c994fca into tscircuit:main Jun 29, 2026
4 checks passed
@rushabhcodes rushabhcodes deleted the feat/package-aware-workspace-file-tree branch June 29, 2026 21:38
@tscircuitbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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