Skip to content

Conversation

@gontsolov
Copy link
Contributor

@gontsolov gontsolov commented Dec 21, 2025

  • added shadcn dialog to repo
  • refactored manually written dialogs to use shadcn dialog component
  • reason: smoother animations, handling of esc press etc.

Note

Replaces custom motion/portal modals in CloneFromUrlModal and NewProjectModal with a reusable Radix-based Dialog, adding a new ui/dialog component and the @radix-ui/react-dialog dependency.

  • UI/Components:
    • Refactor src/renderer/components/CloneFromUrlModal.tsx and NewProjectModal.tsx to use Dialog, DialogContent, DialogHeader, DialogTitle; remove custom motion/portal/card implementations.
  • UI Library:
    • Add src/renderer/components/ui/dialog.tsx exporting a shadcn-style wrapper around @radix-ui/react-dialog (overlay, content, header/footer, title/description, close button).
  • Dependencies:
    • Add @radix-ui/react-dialog to dependencies.

Written by Cursor Bugbot for commit 63d54db. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 21, 2025

@gontsolov is attempting to deploy a commit to the General Action Team on Vercel.

A member of the Team first needs to authorize it.

@gontsolov gontsolov marked this pull request as draft December 21, 2025 10:27
@arnestrickmann arnestrickmann marked this pull request as ready for review December 21, 2025 10:28
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.


if (!isOpen) return null;
return (
<Dialog open={isOpen} onOpenChange={onClose}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dialog can close during ongoing async operations

The refactoring from custom modals to shadcn Dialog removed protection against closing during async operations. Previously, the X button had disabled={isCloning} / disabled={isCreating}, but now onOpenChange={onClose} allows closing via X button, Escape key, or clicking outside while operations are in progress. The Cancel button still respects this state, creating an inconsistency. Users may accidentally dismiss the dialog mid-operation, causing the async clone/create to run headless in the background.

Additional Locations (1)

Fix in Cursor Fix in Web

@arnestrickmann arnestrickmann merged commit 2856e42 into generalaction:main Dec 21, 2025
1 of 2 checks 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.

2 participants