Skip to content

feat(inspector): add repository file browser with Changes/Files tabs#391

Open
himanshhhhuv wants to merge 4 commits into
dohooo:mainfrom
himanshhhhuv:feat/repository-file-browser
Open

feat(inspector): add repository file browser with Changes/Files tabs#391
himanshhhhuv wants to merge 4 commits into
dohooo:mainfrom
himanshhhhuv:feat/repository-file-browser

Conversation

@himanshhhhuv
Copy link
Copy Markdown
Contributor

Implements a tab-based UI in the Git panel that allows users to browse the complete workspace file tree alongside Git changes. This addresses the workflow gap where users needed to switch to external tools to view files that weren't currently modified.

Key features:

  • Tab switcher in Git section header with "Changes" and "Files" tabs
  • Files tab displays full repository tree (respects .gitignore patterns)
  • Shared tree/list view mode between both tabs
  • Tab preference persisted to localStorage
  • Files open in read-only mode without Git action buttons
  • All existing Changes tab functionality preserved

Implementation details:

  • Renamed ChangesSection to GitSection to reflect dual purpose
  • Added gitActiveTab state with localStorage persistence
  • Reused existing tree/list rendering components for consistency
  • Integrated workspaceFilesQueryOptions for data fetching
  • Tab UI follows existing Setup/Run/Terminal tabs pattern

Closes #390

Implements a tab-based UI in the Git panel that allows users to browse
the complete workspace file tree alongside Git changes. This addresses
the workflow gap where users needed to switch to external tools to view
files that weren't currently modified.

Key features:
- Tab switcher in Git section header with "Changes" and "Files" tabs
- Files tab displays full repository tree (respects .gitignore patterns)
- Shared tree/list view mode between both tabs
- Tab preference persisted to localStorage
- Files open in read-only mode without Git action buttons
- All existing Changes tab functionality preserved

Implementation details:
- Renamed ChangesSection to GitSection to reflect dual purpose
- Added gitActiveTab state with localStorage persistence
- Reused existing tree/list rendering components for consistency
- Integrated workspaceFilesQueryOptions for data fetching
- Tab UI follows existing Setup/Run/Terminal tabs pattern

The Files tab queries the existing list_workspace_files backend command,
which already implements proper .gitignore filtering and performs well
on large repositories.

Closes dohooo#390
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

@himanshhhhuv is attempting to deploy a commit to the Caspian's Team Team on Vercel.

A member of the Team first needs to authorize it.

himanshhhhuv and others added 3 commits May 6, 2026 11:45
The git section was renamed from ChangesSection to GitSection to reflect
its dual purpose (Changes and Files tabs). Update test expectations to
match the new aria-label "Git panel body" instead of "Changes panel body".
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.

Feature request: Add a repository file browser to the Git panel

1 participant