Skip to content

create folder nesting BEN-1076 #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Conversation

juancastano
Copy link
Contributor

@juancastano juancastano commented Jun 13, 2025

TL;DR

Enhanced the code editor with a hierarchical file tree view and improved visual styling.

What changed?

  • Implemented a hierarchical file tree structure that organizes files into folders
  • Added collapsible folder functionality with open/close toggles
  • Introduced file type icons based on file extensions
  • Improved the file selection UI with better visual indicators
  • Widened the file sidebar from 180px to 320px for better readability
  • Enhanced the empty state when no file is selected
  • Added a new Collapsible component from Radix UI
  • Implemented auto-opening of folders and auto-selection of the first file

How to test?

  1. Open the UI Builder and navigate to the code editor component
  2. Verify that files are organized in a hierarchical tree structure
  3. Test collapsing and expanding folders by clicking on folder names
  4. Check that different file types display appropriate icons
  5. Confirm that selecting files works correctly and shows the file content
  6. Verify that the UI is responsive and properly styled

Why make this change?

The previous flat file list became difficult to navigate with multiple files. This hierarchical structure provides a more intuitive and familiar IDE-like experience, making it easier for users to browse through project files. The visual enhancements with icons and better spacing improve the overall user experience and make the code editor more professional and user-friendly.

Copy link
Contributor Author

juancastano commented Jun 13, 2025

Merge activity

  • Jun 13, 10:36 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 13, 10:44 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 13, 10:45 PM UTC: @juancastano merged this pull request with Graphite.

@juancastano juancastano force-pushed the 06-13-add_download_button branch from 85761ca to a32e723 Compare June 13, 2025 22:40
@juancastano juancastano force-pushed the 06-13-create_folder_nesting branch from f5ddc4c to e6e9a9e Compare June 13, 2025 22:40
@juancastano juancastano mentioned this pull request Jun 13, 2025
@juancastano juancastano changed the base branch from 06-13-add_download_button to graphite-base/26 June 13, 2025 22:41
@juancastano juancastano changed the base branch from graphite-base/26 to main June 13, 2025 22:43
@juancastano juancastano force-pushed the 06-13-create_folder_nesting branch from e6e9a9e to 8175544 Compare June 13, 2025 22:44
@juancastano juancastano merged commit aff62b6 into main Jun 13, 2025
1 check passed
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