Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@
## 2024-06-26 - [Abbreviation Comprehension in ERD Nodes]
**Learning:** Users without deep database administration backgrounds may not immediately recognize domain-specific abbreviations like "PK" or "FK" rendered as minimalist badges inside dense ERD nodes.
**Action:** Always provide `title` attributes on technical acronym badges (like Primary Key / Foreign Key) to ensure clarity and improve accessibility without cluttering the space-constrained node UI.

## 2026-07-04 - Pair disabled buttons with visible helper text
**Learning:** When buttons are conditionally disabled and an explanation is conditionally rendered as helper text, using `aria-describedby` to link them ensures screen readers announce the reason for the disabled state, greatly improving accessibility.
**Action:** Always link conditionally rendered disabled-state helper text to the corresponding button using `aria-describedby` and an `id`.
6 changes: 4 additions & 2 deletions frontend/src/components/modals/ExportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function ExportModal({
onClick={onCreateShareLink}
disabled={!canCreateShareLink || isCreatingShareLink}
aria-busy={isCreatingShareLink}
aria-describedby={!shareLinkUrl ? "share-link-hint" : undefined}
>
{isCreatingShareLink ? "์ƒ์„ฑ ์ค‘..." : "๋งํฌ ๋งŒ๋“ค๊ธฐ"}
</button>
Expand All @@ -88,7 +89,7 @@ export function ExportModal({
</button>
</div>
) : (
<span className="field-hint">
<span className="field-hint" id="share-link-hint">
ํ”„๋กœ์ ํŠธ๊ฐ€ ์„ ํƒ๋˜๋ฉด ์„œ๋ฒ„์—์„œ ์ƒˆ ๊ณต์œ  ๋งํฌ๋ฅผ ๋ฐœ๊ธ‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
</span>
)}
Expand All @@ -109,6 +110,7 @@ export function ExportModal({
onClick={onCopyExportDdl}
disabled={!hasDdlExport}
aria-live="polite"
aria-describedby={!hasDdlExport ? "ddl-export-hint" : undefined}
>
{isCopied ? "๋ณต์‚ฌ ์™„๋ฃŒ" : "DDL ๋ณต์‚ฌ"}
</button>
Expand All @@ -122,7 +124,7 @@ export function ExportModal({
className="exportModal__ddl"
/>
) : (
<span className="field-hint">
<span className="field-hint" id="ddl-export-hint">
DDL์„ ๋งŒ๋“ค๋ ค๋ฉด ๋จผ์ € ์Šค๋ƒ…์ƒท์„ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ ํ…Œ์ด๋ธ”์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”.
</span>
)}
Expand Down