Fixed white page error caused by missing GitPullRequest icon import
in GitDialog component.
Error: ReferenceError: GitPullRequest is not defined
Solution: Added GitPullRequest to lucide-react imports
Fixed the issue where no PR/patch creation button was shown when
using a Nostr remote URL.
Changes:
- Added "Create Nostr Patch" button in Branch Operations when Nostr remote is detected
- Button opens Git Management Dialog directly to the Nostr tab
- Added defaultTab state management to control which tab opens
- GitHub/GitLab remotes show "Create Pull Request" button
- Nostr remotes show "Create Nostr Patch" button
- Both buttons are mutually exclusive based on remote URL type
User Experience:
- Clear call-to-action for Nostr repositories
- One-click access to patch creation
- No more confusion about where to create patches
The modal wasn't scrolling because ScrollArea needed explicit height constraints.
Changes:
- Set DialogContent to h-[90vh] (fixed height) instead of max-h
- Removed default padding (p-0) from DialogContent
- Added padding explicitly to header (px-6 pt-6) and scroll wrapper (px-6 pb-6)
- Wrapped ScrollArea in a container div with flex-1 min-h-0 overflow-hidden
- Set ScrollArea to h-full so it takes the full height of its container
- Added pr-4 to inner content div to account for scrollbar
The key insight: ScrollArea needs a definite height to work. Using flex-1 alone doesn't provide that - it needs a parent with min-h-0 and a child with h-full.
The modal content was overflowing outside the dialog box due to improper layout constraints.
Changes:
- Changed DialogContent to use flex layout with overflow-hidden
- Moved URL Configuration card inside ScrollArea for consistent scrolling
- Removed arbitrary max-height values and used flex-1 for proper sizing
- Added proper padding compensation (-mx-6 px-6 with pr-4) to ensure ScrollArea works correctly
- Made DialogHeader flex-shrink-0 to prevent it from being compressed
- Increased max-h from 80vh to 90vh for better space utilization
The fix ensures all content stays within the modal boundaries and scrolls properly within the designated ScrollArea component.
Enable users to quickly switch branches and create new branches directly from the main Repository dialog without opening Advanced Git Management.
NEW FEATURES:
- Branch selector dropdown showing all local branches
- Current branch indicator with checkmark
- Switch branches with single click
- "New" button to create branches quickly
- Create branch dialog with validation
- Automatic rebuild after branch switch
UI COMPONENTS:
- Current Branch card at top of Repository dialog
- Branch dropdown with all local branches
- Quick "New" button for branch creation
- Dedicated create branch dialog
- Loading states during operations
- Success/error toast notifications
WORKFLOW:
1. Open Repository dialog
2. See current branch at the top
3. Click dropdown to switch branches
4. Click "New" to create a branch
5. Automatic rebuild after switching
BENEFITS:
- Faster branch switching (no need for Advanced dialog)
- Quick branch creation for common workflows
- Better visibility of current branch
- Seamless integration with existing features
Branch management is now accessible at two levels:
- Quick operations: Repository dialog (switch, create)
- Full management: Advanced Git Management (switch, create, delete, view remotes)
Relocate merge and pull request buttons from Advanced Git Management dialog to the main Repository dialog for better accessibility and workflow.
CHANGES:
- Add "Branch Operations" card to GitDialog
- Display Merge Branch and Pull Request buttons directly in Repository dialog
- Remove duplicate buttons from GitManagementDialog branches tab
- Simplify GitManagementDialog component (removed merge/PR dialog state)
BENEFITS:
- More intuitive workflow: common operations are in the main dialog
- Cleaner separation: Repository dialog = operations, Advanced = exploration
- Faster access to merge/PR features without opening advanced dialog
The Merge and PR dialogs now open from the Repository dialog's "Branch Operations" section, making them easier to discover and use.