Skip to content

๐ŸŽจ Palette: [UX improvement] ๊ด€๊ณ„ ๋ฐ ์—…๋ฌด ๊ทธ๋ฃน ์‚ญ์ œ ์‹œ ์‚ฌ์šฉ์ž ํ™•์ธ(Confirm) ๋‹ค์ด์–ผ๋กœ๊ทธ ์ถ”๊ฐ€ - #669

Closed
seonghobae wants to merge 1 commit into
mainfrom
palette-ux-confirm-destructive-11479908492292940390
Closed

Conversation

@seonghobae

@seonghobae seonghobae commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

๐Ÿ’ก What: EditEdgeModal๊ณผ GroupModal์—์„œ ์‚ญ์ œ ๋ฒ„ํŠผ(๊ด€๊ณ„ ์‚ญ์ œ, ๊ทธ๋ฃน ์‚ญ์ œ) ํด๋ฆญ ์‹œ window.confirm ๋‹ค์ด์–ผ๋กœ๊ทธ๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž ํ™•์ธ์„ ๋ฐ›๋„๋ก UX๋ฅผ ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
๐ŸŽฏ Why: ์‚ญ์ œ์™€ ๊ฐ™์€ ํŒŒ๊ดด์ ์ธ ์•ก์…˜(Destructive Actions)์— ๋Œ€ํ•ด ์‚ฌ์šฉ์ž ํ™•์ธ ๊ณผ์ •์ด ๋ˆ„๋ฝ๋˜์–ด ์‹ค์ˆ˜๋กœ ์ธํ•œ ๋ฐ์ดํ„ฐ ์œ ์‹ค ๋ฐ ์˜๋„์น˜ ์•Š์€ ์‚ญ์ œ๊ฐ€ ๋ฐœ์ƒํ•  ์œ„ํ—˜์ด ์ปธ์Šต๋‹ˆ๋‹ค. ํ™•์ธ ์ ˆ์ฐจ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๋” ์•ˆ์ „ํ•˜๊ฒŒ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
๐Ÿ“ธ Before/After: '์‚ญ์ œ' ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๋ฐ”๋กœ ์‚ญ์ œ๋˜๋˜ ๊ธฐ์กด ๋ฐฉ์‹์—์„œ ๋ธŒ๋ผ์šฐ์ € ๋„ค์ดํ‹ฐ๋ธŒ ์•Œ๋ฆผ์ฐฝ(Confirm)์„ ๋„์›Œ ํ•œ ๋ฒˆ ๋” ๋ฌป๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
โ™ฟ Accessibility: ๊ธฐ์กด ์ ‘๊ทผ์„ฑ์— ํฐ ์˜ํ–ฅ์€ ์—†์œผ๋ฉฐ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์‚ฌ์šฉ์ž์™€ ํ‚ค๋ณด๋“œ ์‚ฌ์šฉ์ž ๋˜ํ•œ ๋ช…์‹œ์ ์ธ ์•Œ๋ฆผ์„ ํ†ตํ•ด ์ž˜๋ชป๋œ ์•ก์…˜์„ ์ธ์ง€ํ•˜๊ณ  ์ทจ์†Œํ•  ๊ธฐํšŒ๋ฅผ ๊ฐ–๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.


PR created automatically by Jules for task 11479908492292940390 started by @seonghobae

Summary by CodeRabbit

  • ๋ฒ„๊ทธ ์ˆ˜์ •

    • ๊ด€๊ณ„ ์‚ญ์ œ ์‹œ ํ™•์ธ ๋ฉ”์‹œ์ง€๋ฅผ ํ‘œ์‹œํ•˜๊ณ , ์‚ฌ์šฉ์ž๊ฐ€ ํ™•์ธํ•œ ๊ฒฝ์šฐ์—๋งŒ ์‚ญ์ œํ•˜๋„๋ก ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • ๊ทธ๋ฃน ์‚ญ์ œ ์ „ ๊ทธ๋ฃน๋ช…์„ ํฌํ•จํ•œ ํ™•์ธ ์ ˆ์ฐจ๋ฅผ ์ถ”๊ฐ€ํ•ด ์‹ค์ˆ˜๋กœ ์‚ญ์ œํ•˜๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ํ…Œ์ŠคํŠธ

    • ์‚ญ์ œ ํ™•์ธ ๋™์ž‘์— ๋Œ€ํ•œ ๋ชจํ‚น ๋ฐ ํ…Œ์ŠคํŠธ ์ •๋ฆฌ ์ ˆ์ฐจ๋ฅผ ๋ณด์™„ํ–ˆ์Šต๋‹ˆ๋‹ค.

- EditEdgeModal์˜ ๊ด€๊ณ„ ์‚ญ์ œ ์‹œ `window.confirm` ์ถ”๊ฐ€
- GroupModal์˜ ๊ทธ๋ฃน ์‚ญ์ œ ์‹œ `window.confirm` ์ถ”๊ฐ€
- ModalCoverage.test.tsx ๋‚ด `window.confirm` ๋ชจํ‚น ์ถ”๊ฐ€
@google-labs-jules

Copy link
Copy Markdown

๐Ÿ‘‹ 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.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

๐Ÿ“ Walkthrough

Walkthrough

๊ด€๊ณ„ ๋ฐ ๊ทธ๋ฃน ์‚ญ์ œ ๋™์ž‘์— window.confirm ํ™•์ธ ๋‹จ๊ณ„๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ๋ชจ๋‹ฌ ํ…Œ์ŠคํŠธ์—์„œ ํ™•์ธ ์‘๋‹ต์„ ๊ธฐ๋ณธ ์Šน์ธ์œผ๋กœ ๋ชจํ‚นํ•˜๋„๋ก ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

Changes

์‚ญ์ œ ํ™•์ธ ํ๋ฆ„

Layer / File(s) Summary
๋ชจ๋‹ฌ ์‚ญ์ œ ํ™•์ธ๊ณผ ํ…Œ์ŠคํŠธ ์„ค์ •
frontend/src/components/modals/EditEdgeModal.tsx, frontend/src/components/modals/GroupModal.tsx, frontend/src/components/modals/ModalCoverage.test.tsx
๊ด€๊ณ„์™€ ๊ทธ๋ฃน ์‚ญ์ œ ํ•ธ๋“ค๋Ÿฌ๊ฐ€ window.confirm์ด ์ฐธ์ผ ๋•Œ๋งŒ ์‹คํ–‰๋˜๋ฉฐ, ํ…Œ์ŠคํŠธ๋Š” ํ™•์ธ ์‘๋‹ต์„ ๋ชจํ‚นํ•˜๊ณ  ๊ฐ ํ…Œ์ŠคํŠธ ํ›„ ๋ชฉ์„ ๋ณต์›ํ•ฉ๋‹ˆ๋‹ค.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • ContextualWisdomLab/pg-erd-cloud#666: EditEdgeModal์˜ ์‚ญ์ œ ๋ฒ„ํŠผ๊ณผ ๊ด€๋ จ ํ…Œ์ŠคํŠธ ์„ ํƒ์ž๋ฅผ ์ˆ˜์ •ํ•œ ๋ณ€๊ฒฝ์ž…๋‹ˆ๋‹ค.
๐Ÿšฅ Pre-merge checks | โœ… 5
โœ… Passed checks (5 passed)
Check name Status Explanation
Description Check โœ… Passed Check skipped - CodeRabbitโ€™s high-level summary is enabled.
Title check โœ… Passed ์ œ๋ชฉ์ด ๊ด€๊ณ„ ๋ฐ ์—…๋ฌด ๊ทธ๋ฃน ์‚ญ์ œ ์‹œ ํ™•์ธ ๋‹ค์ด์–ผ๋กœ๊ทธ ์ถ”๊ฐ€๋ผ๋Š” ์ฃผ์š” ๋ณ€๊ฒฝ์„ ์ •ํ™•ํžˆ ์š”์•ฝํ•ฉ๋‹ˆ๋‹ค.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check โœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check โœ… Passed Check skipped because no linked issues were found for this pull request.
โœจ Finishing Touches
๐Ÿ“ Generate docstrings
  • Create stacked PR
  • Commit on current branch
๐Ÿงช Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette-ux-confirm-destructive-11479908492292940390

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

๐Ÿงน Nitpick comments (1)
frontend/src/components/modals/ModalCoverage.test.tsx (1)

44-50: ๐ŸŽฏ Functional Correctness | ๐Ÿ”ต Trivial | โšก Quick win

ํ™•์ธ ์ทจ์†Œ ๊ฒฝ๋กœ๋„ ๋ช…์‹œ์ ์œผ๋กœ ๊ฒ€์ฆํ•˜์„ธ์š”.

window.confirm์„ ํ•ญ์ƒ true๋กœ ์„ค์ •ํ•˜๋ฉด ์Šน์ธ ๊ฒฝ๋กœ๋งŒ ํ…Œ์ŠคํŠธ๋ฉ๋‹ˆ๋‹ค. ํ™•์ธ ์‘๋‹ต์ด false์ผ ๋•Œ onRelDelete์™€ onDeleteBusinessGroup์ด ํ˜ธ์ถœ๋˜์ง€ ์•Š๋Š”์ง€ ๋ณ„๋„ ํ…Œ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ์ทจ์†Œ ๋™์ž‘์˜ ํšŒ๊ท€๋ฅผ ์žก์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿค– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@frontend/src/components/modals/ModalCoverage.test.tsx` around lines 44 - 50,
Extend the ModalCoverage tests to explicitly cover the cancellation path by
mocking window.confirm to return false and asserting that neither onRelDelete
nor onDeleteBusinessGroup is called. Keep the existing true-confirmation setup
and approval-path tests unchanged.
๐Ÿค– Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@frontend/src/components/modals/EditEdgeModal.tsx`:
- Around line 84-88: ์ค‘๋ณต ํ™•์ธ ๋Œ€ํ™”๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”.
frontend/src/components/modals/EditEdgeModal.tsx 84-88์—์„œ๋Š” ์‚ญ์ œ ๋ฒ„ํŠผ์„ onRelDelete์— ์ง์ ‘
์—ฐ๊ฒฐํ•˜๊ณ , frontend/src/components/modals/GroupModal.tsx 111-115์—์„œ๋Š”
onDeleteBusinessGroup(group.id)๋ฅผ ์ง์ ‘ ํ˜ธ์ถœํ•˜๋„๋ก ๋ณ€๊ฒฝํ•ด ์ƒ์œ„ ์‚ญ์ œ ํ•ธ๋“ค๋Ÿฌ์˜ ๋‹จ์ผ ํ™•์ธ ๋ฐ ์ƒ์„ธ ๊ฒฝ๊ณ ๋ฅผ ์œ ์ง€ํ•˜์„ธ์š”.

---

Nitpick comments:
In `@frontend/src/components/modals/ModalCoverage.test.tsx`:
- Around line 44-50: Extend the ModalCoverage tests to explicitly cover the
cancellation path by mocking window.confirm to return false and asserting that
neither onRelDelete nor onDeleteBusinessGroup is called. Keep the existing
true-confirmation setup and approval-path tests unchanged.
๐Ÿช„ Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

โ„น๏ธ Review info
โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 44d53844-a285-4b16-905c-73e05e08aa1e

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 4bf3968 and 50aaa24.

๐Ÿ“’ Files selected for processing (3)
  • frontend/src/components/modals/EditEdgeModal.tsx
  • frontend/src/components/modals/GroupModal.tsx
  • frontend/src/components/modals/ModalCoverage.test.tsx

Comment on lines +84 to +88
onClick={() => {
if (window.confirm("๊ด€๊ณ„๋ฅผ ์‚ญ์ œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?")) {
onRelDelete();
}
}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

๐ŸŽฏ Functional Correctness | ๐ŸŸ  Major | โšก Quick win

๋ชจ๋‹ฌ๊ณผ ์ƒ์œ„ ์‚ญ์ œ ํ•ธ๋“ค๋Ÿฌ์˜ ํ™•์ธ์ด ์ค‘๋ณต๋ฉ๋‹ˆ๋‹ค.

frontend/src/App.tsx์˜ ๊ด€๊ณ„ ๋ฐ ๊ทธ๋ฃน ์‚ญ์ œ ํ•ธ๋“ค๋Ÿฌ๊ฐ€ ์ด๋ฏธ ํ™•์ธ ํ›„ ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ฏ€๋กœ, ๋‘ ๋ชจ๋‹ฌ์˜ ์ƒˆ ํ™•์ธ์ฐฝ์€ ๋™์ผํ•œ ์‚ญ์ œ ๋™์ž‘์— ๋‘ ๋ฒˆ์งธ ๋Œ€ํ™”์ƒ์ž๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

  • frontend/src/components/modals/EditEdgeModal.tsx#L84-L88: onClick={onRelDelete}๋กœ ๋˜๋Œ๋ฆฌ๊ฑฐ๋‚˜ ์ƒ์œ„ ํ•ธ๋“ค๋Ÿฌ์˜ ํ™•์ธ์„ ์ œ๊ฑฐํ•ด ๋‹จ์ผํ™”ํ•˜์„ธ์š”.
  • frontend/src/components/modals/GroupModal.tsx#L111-L115: onClick={() => onDeleteBusinessGroup(group.id)}๋กœ ๋ณ€๊ฒฝํ•ด ์ƒ์œ„ ํ•ธ๋“ค๋Ÿฌ์˜ ์ƒ์„ธ ๊ฒฝ๊ณ ๋ฅผ ์œ ์ง€ํ•˜์„ธ์š”.
๐Ÿ“ Affects 2 files
  • frontend/src/components/modals/EditEdgeModal.tsx#L84-L88 (this comment)
  • frontend/src/components/modals/GroupModal.tsx#L111-L115
๐Ÿค– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@frontend/src/components/modals/EditEdgeModal.tsx` around lines 84 - 88, ์ค‘๋ณต ํ™•์ธ
๋Œ€ํ™”๋ฅผ ์ œ๊ฑฐํ•˜์„ธ์š”. frontend/src/components/modals/EditEdgeModal.tsx 84-88์—์„œ๋Š” ์‚ญ์ œ ๋ฒ„ํŠผ์„
onRelDelete์— ์ง์ ‘ ์—ฐ๊ฒฐํ•˜๊ณ , frontend/src/components/modals/GroupModal.tsx 111-115์—์„œ๋Š”
onDeleteBusinessGroup(group.id)๋ฅผ ์ง์ ‘ ํ˜ธ์ถœํ•˜๋„๋ก ๋ณ€๊ฒฝํ•ด ์ƒ์œ„ ์‚ญ์ œ ํ•ธ๋“ค๋Ÿฌ์˜ ๋‹จ์ผ ํ™•์ธ ๋ฐ ์ƒ์„ธ ๊ฒฝ๊ณ ๋ฅผ ์œ ์ง€ํ•˜์„ธ์š”.

@seonghobae

Copy link
Copy Markdown
Collaborator Author

Closed as superseded/duplicate Palette a11y PR; keyboard/form a11y baseline already on main (#568/#567/#534). Remaining a11y land via priority PR or follow-up if needed.

@seonghobae seonghobae closed this Jul 31, 2026
@google-labs-jules

Copy link
Copy Markdown

Closed as superseded/duplicate Palette a11y PR; keyboard/form a11y baseline already on main (#568/#567/#534). Remaining a11y land via priority PR or follow-up if needed.

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