Skip to content

Comments

Implement multi-step Add Connection modal with Ark UI Steps#25

Merged
mkobayashime merged 4 commits intomainfrom
new-repo-modal-steps
Feb 7, 2026
Merged

Implement multi-step Add Connection modal with Ark UI Steps#25
mkobayashime merged 4 commits intomainfrom
new-repo-modal-steps

Conversation

@mkobayashime
Copy link
Owner

Summary

  • Split Add Connection modal into a 2-step wizard flow using Ark UI Steps component
  • Extract reusable FolderTree component from FolderSelectPopup for better code organization
  • Improve UX by separating repository setup from target folder selection

Changes

Step 1: Repository Setup

  • Repository selection using existing RepoCombobox
  • Source directory (srcDir) configuration
  • Validation before proceeding to step 2

Step 2: Target Folder Selection

  • Inline folder tree with expand/collapse functionality
  • Refresh button to reload bookmark folders
  • Visual selection indicator

Components

  • FolderTree.tsx (new): Reusable folder tree component with hierarchical display
  • FolderSelectPopup.tsx: Refactored to use FolderTree, reducing code duplication
  • AddConnectionModal.tsx: Complete rewrite with Ark UI Steps integration

UI Improvements

  • Visual step indicator with numbered circles and labels
  • Grid-based modal layout with fixed height (480px)
  • Scrollable folder tree to prevent overflow
  • Linear step flow enforced through validation
  • Consistent styling with existing design patterns

Test plan

  • Verify step 1 → step 2 navigation with valid inputs
  • Verify step 1 validation prevents proceeding without repository selection
  • Verify step 2 → step 1 back navigation
  • Verify inline FolderTree expand/collapse functionality
  • Verify Complete button validates target folder selection
  • Verify Cancel button closes modal from any step
  • Verify Refresh button reloads folder tree
  • Verify folder tree scrolls when content exceeds modal height
  • Verify styling matches existing modal patterns

Document the planned changes to split the Add Connection modal into a 2-step wizard with Ark UI Steps component.
Create a standalone FolderTree component that renders a hierarchical folder selection interface with expand/collapse functionality. This component can be reused across the application for folder selection scenarios.
Simplify FolderSelectPopup by delegating folder tree rendering to the new reusable FolderTree component, reducing code duplication and improving maintainability.
Split the Add Connection modal into a 2-step wizard flow:
- Step 1: Repository selection and source directory configuration
- Step 2: Target folder selection with inline folder tree

Features:
- Ark UI Steps component with visual progress indicator
- Inline FolderTree with expand/collapse and refresh
- Grid-based modal layout with proper overflow handling
- Linear step flow enforced through validation
- Step labels (Repository, Target Folder) for clarity
@mkobayashime mkobayashime merged commit b0d8c05 into main Feb 7, 2026
1 check passed
@mkobayashime mkobayashime deleted the new-repo-modal-steps branch February 7, 2026 19:48
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