improvement(ui): standardize modal default actions - #7029
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Confirmations fail safe to dismiss. Enter in a text field never fires a destructive confirm unless the call site opts into Remaining action/viewer dialogs (deploy, execution snapshot, expanded preview) compose with Reviewed by Cursor Bugbot for commit 6df0657. Configure here. |
Greptile SummaryThe PR standardizes modal keyboard defaults and migrates remaining dialogs to canonical ChipModal composition.
Confidence Score: 5/5The PR appears safe to merge. The previously reported destructive Enter behavior is no longer reachable for workflow, table, or knowledge-base deletion, and no blocking failure remains.
|
| Filename | Overview |
|---|---|
| packages/emcn/src/components/chip-modal/chip-modal.tsx | Centralizes modal default-action focus and Enter routing while retaining native behavior for controls that own Enter. |
| packages/emcn/src/components/chip-modal/chip-modal.test.tsx | Adds coverage for primary, dismiss, confirm, no-default, form, input, modifier-key, repeat-key, and composition boundaries. |
| apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx | The workflow deletion dialog now explicitly defaults keyboard action to dismissal. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/table.tsx | Table and column deletion dialogs now explicitly default keyboard action to dismissal. |
| apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx | Knowledge-base deletion now explicitly defaults keyboard action to dismissal. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/delete-modal/delete-modal.tsx | Sidebar deletion policy keeps aggregate resources on dismissal while allowing confirmation for a single task. |
| apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/deploy-modal.tsx | Migrates deployment settings to ChipModal composition with tab-specific declarative footer actions. |
Reviews (2): Last reviewed commit: "fix(ui): keep aggregate deletes on safe ..." | Re-trigger Greptile
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 6df0657. Configure here.
Summary
Type of Change
Testing
bun run lint:checkbun run check:api-validationbun run check:auditsbun run type-checkinapps/simandpackages/emcnChecklist