Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This PR introduces a complete Confirmation Dialog system to the Web application, replacing the native and intrusive window.confirm dialogs with a custom, accessible, and themable UI.

Changes:

  1. New Component: web/components/ui/ConfirmDialog.tsx - A specialized modal for confirmations with support for 'danger', 'warning', and 'info' variants.
  2. New Context: web/contexts/ConfirmContext.tsx - Provides a useConfirm hook that returns a Promise, allowing for cleaner async/await usage in components.
  3. Integration: Wrapped the application in ConfirmProvider within web/App.tsx.
  4. Refactor: Updated web/pages/GroupDetails.tsx to use the new system for all destructive actions.
  5. Accessibility: Improved the existing Modal component to include proper ARIA attributes, ensuring it is correctly identified by screen readers.

Verification:

  • Verified via Playwright (script created, run, and then cleaned up) that the dialog appears, captures focus, and correctly resolves the promise upon user interaction.
  • Verified that the integration with existing Modal styles works for both themes.

PR created automatically by Jules for task 12669270586709539879 started by @Devasy23

- Replaces `window.confirm` with a custom, accessible `ConfirmDialog` component.
- Implements `ConfirmContext` for asynchronous confirmation handling using Promises.
- Adds `ConfirmProvider` to `App.tsx` to enable global usage.
- Updates `GroupDetails.tsx` to use `useConfirm` for destructive actions (Delete Group, Delete Expense, Leave Group, Remove Member).
- Enhances `Modal.tsx` accessibility by adding `role="dialog"`, `aria-modal="true"`, and `aria-labelledby`.
- Supports both Neobrutalism and Glassmorphism themes.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for split-but-wiser ready!

Name Link
🔨 Latest commit 5e40f93
🔍 Latest deploy log https://app.netlify.com/projects/split-but-wiser/deploys/69713188cb51060008e53202
😎 Deploy Preview https://deploy-preview-256--split-but-wiser.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 21, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

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