Skip to content

🎨 Palette: Add deletion confirmation to array items#498

Closed
aafre wants to merge 1 commit into
mainfrom
palette-ux-delete-confirmation-4734394976008816392
Closed

🎨 Palette: Add deletion confirmation to array items#498
aafre wants to merge 1 commit into
mainfrom
palette-ux-delete-confirmation-4734394976008816392

Conversation

@aafre
Copy link
Copy Markdown
Owner

@aafre aafre commented Apr 26, 2026

What

Added ResponsiveConfirmDialog to confirm deletion of items in ExperienceItem, EducationItem, and GenericSection.

Why

Prevents accidental data loss by confirming before deleting experience, education, and generic list items. Previously, clicking the delete button removed the item instantly without warning.

Accessibility

Utilized the existing ResponsiveConfirmDialog which already provides appropriate role="dialog", ARIA attributes, focus management, and mobile-friendly bottom sheet behavior.

Before/After

Before: Clicking delete on an item would remove it immediately.
After: A confirmation dialog appears to ensure the user intended to delete the item before it is removed.


PR created automatically by Jules for task 4734394976008816392 started by @aafre

Added ResponsiveConfirmDialog to ExperienceItem, EducationItem, and GenericSection to prevent accidental data loss.

Co-authored-by: aafre <8656674+aafre@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a confirmation dialog for deleting entries in the Education, Experience, and Generic sections to prevent accidental data loss. The changes include adding state management for the dialogs in the respective components and updating the test suites to account for the new confirmation step. A review comment suggests clarifying a code comment in GenericSection.tsx to accurately describe the interaction with the parent deletion handler.

if (onDeleteEntry) {
// Trigger confirmation dialog
onDeleteEntry(index);
// Trigger parent confirmation dialog (or direct action) if provided
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This comment is confusing because the confirmation has already occurred within this component. It should simply state that it calls the parent's deletion handler.

Suggested change
// Trigger parent confirmation dialog (or direct action) if provided
// Call parent deletion handler if provided

@aafre
Copy link
Copy Markdown
Owner Author

aafre commented May 25, 2026

Closing duplicate — the most recent version of this change is PR #543.

@aafre aafre closed this May 25, 2026
@google-labs-jules
Copy link
Copy Markdown
Contributor

Closing duplicate — the most recent version of this change is PR #543.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

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