Skip to content

๐ŸŽจ Palette: Add contextual ARIA labels to table edit modal actions - #752

Open
seonghobae wants to merge 2 commits into
mainfrom
palette-aria-labels-17543974417981148235
Open

๐ŸŽจ Palette: Add contextual ARIA labels to table edit modal actions#752
seonghobae wants to merge 2 commits into
mainfrom
palette-aria-labels-17543974417981148235

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

๐Ÿ’ก What: Added dynamic, context-aware aria-labels to the 'ํ…Œ์ด๋ธ” ์‚ญ์ œ' (Delete) and '๋ณต์ œ' (Duplicate) buttons in the Edit Table modal.
๐ŸŽฏ Why: Previously, these buttons only had generic text, which could confuse screen reader users who might lose context of exactly which table they are modifying. By injecting the table's name into the ARIA label, assistive technologies provide full context.
๐Ÿ“ธ Before/After: No visual changes, accessibility markup only.
โ™ฟ Accessibility: Greatly improves screen reader comprehension for destructive and duplication actions.


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

- Added dynamic, context-aware `aria-label`s to the "ํ…Œ์ด๋ธ” ์‚ญ์ œ" (Delete) and "๋ณต์ œ" (Duplicate) buttons in `EditTableModal.tsx`.
- Updated test matchers in `EditTableModal.test.tsx` and `ModalCoverage.test.tsx` to match the new accessible names.
- Improves screen reader comprehension of destructive and duplication actions.
@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 Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0383a090-b85d-4d0d-8908-c1ea1467bc2b

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 72afe6d and 2d61831.

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

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

@seonghobae
seonghobae enabled auto-merge (squash) August 6, 2026 02:58

Copy link
Copy Markdown
Collaborator Author

@opencode-agent @cwl-noema-review Please perform a fresh independent review of current head 2d6183160cb095b35cf4498d5058dff049f604a9. Repository CI, Security Scan, Semgrep, and CodeRabbit are green; no unresolved inline threads remain. Verify the contextual accessible names for destructive and duplicate table actions and the focused interaction regressions.

@google-labs-jules

Copy link
Copy Markdown

@opencode-agent @cwl-noema-review Please perform a fresh independent review of current head 2d6183160cb095b35cf4498d5058dff049f604a9. Repository CI, Security Scan, Semgrep, and CodeRabbit are green; no unresolved inline threads remain. Verify the contextual accessible names for destructive and duplicate table actions and the focused interaction regressions.

Acknowledged.

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review
@cwl-noema-review
@opencode-agent

Review the exact live head only. Verify edit-table Delete and Duplicate controls include the current table name in stable localized accessible names without duplicating or exposing unsafe markup, update correctly when table context changes, preserve destructive-action confirmation and keyboard/focus behavior, and have focused screen-reader-oriented tests. Require complete frontend typecheck/tests/100% coverage/build, security gates, and zero unresolved threads. Review only; do not update the branch, merge, release, or alter protections.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

@seonghobae I will review pull request #752 at the current live head only. I will verify the requested accessibility behavior, interaction behavior, focused tests, required gates, and unresolved threads. I will not modify the branch, merge, release, or change protections.

โš ๏ธ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@google-labs-jules

Copy link
Copy Markdown

@coderabbitai review
@cwl-noema-review
@opencode-agent

Review the exact live head only. Verify edit-table Delete and Duplicate controls include the current table name in stable localized accessible names without duplicating or exposing unsafe markup, update correctly when table context changes, preserve destructive-action confirmation and keyboard/focus behavior, and have focused screen-reader-oriented tests. Require complete frontend typecheck/tests/100% coverage/build, security gates, and zero unresolved threads. Review only; do not update the branch, merge, release, or alter protections.

Acknowledged.

Copy link
Copy Markdown
Collaborator Author

Exact-current-head review request for 2d6183160cb095b35cf4498d5058dff049f604a9. Complete CI, Security Scan, and Semgrep succeeded; there are no inline threads. Review the focused three-file contextual screen-reader labeling change and its regression coverage on this head only.

@coderabbitai review
@opencode-agent review
@cwl-noema-review review

Do not modify the branch, bypass protection, merge, tag, release, or publish.

@google-labs-jules

Copy link
Copy Markdown

Exact-current-head review request for 2d6183160cb095b35cf4498d5058dff049f604a9. Complete CI, Security Scan, and Semgrep succeeded; there are no inline threads. Review the focused three-file contextual screen-reader labeling change and its regression coverage on this head only.

@coderabbitai review
@opencode-agent review
@cwl-noema-review review

Do not modify the branch, bypass protection, merge, tag, release, or publish.

Acknowledged.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
๐Ÿงฉ Analysis chain

๐Ÿ Script executed:

#!/bin/bash
set -euo pipefail

expected='2d6183160cb095b35cf4498d5058dff049f604a9'

printf '%s\n' '== checked-out commit =='
git rev-parse HEAD
printf '%s\n' '== requested commit exists =='
git cat-file -t "$expected"
printf '%s\n' '== focused diff against first parent =='
git diff --stat "${expected}^" "$expected"
git diff --find-renames --unified=80 "${expected}^" "$expected"

printf '%s\n' '== changed files at requested commit =='
git diff-tree --no-commit-id --name-only -r "$expected"

printf '%s\n' '== source and test symbol map =='
changed_files=$(git diff-tree --no-commit-id --name-only -r "$expected")
for f in $changed_files; do
  case "$f" in
    *.ts|*.tsx|*.js|*.jsx)
      printf '\n-- %s --\n' "$f"
      ast-grep outline "$f" --items all 2>/dev/null || true
      ;;
  esac
done

printf '%s\n' '== relevant accessible-name, confirmation, and focus references =='
rg -n -i -C 5 \
  '(aria-label|aria-labelledby|Delete|Duplicate|๋ณต์ œ|ํ…Œ์ด๋ธ” ์‚ญ์ œ|confirm|dialog|modal|focus|keyboard)' \
  $changed_files || true

printf '%s\n' '== live PR head, checks, and reviews =='
gh pr view 752 --repo ContextualWisdomLab/pg-erd-cloud \
  --json headRefOid,statusCheckRollup,reviews,reviewThreads \
  --jq '{headRefOid, checks: [.statusCheckRollup[] | {name, status, conclusion}], reviews: [.reviews[] | {author: .author.login, state}], threads: [.reviewThreads[] | {isResolved, isOutdated}]}'

Length of output: 26115


๐Ÿ Script executed:

#!/bin/bash
set -euo pipefail

repo='ContextualWisdomLab/pg-erd-cloud'
pr='752'
expected='2d6183160cb095b35cf4498d5058dff049f604a9'

printf '%s\n' '== supported PR metadata =='
gh pr view "$pr" --repo "$repo" \
  --json headRefOid,baseRefOid,baseRefName,changedFiles,files,commits,statusCheckRollup,reviews,reviewDecision,url \
  --jq '{url, headRefOid, baseRefOid, baseRefName, changedFiles, files: [.files[].path], commits: [.commits[] | {oid: .oid, messageHeadline: .messageHeadline}], checks: [.statusCheckRollup[] | {name, status, conclusion}], reviewDecision, reviews: [.reviews[] | {author: .author.login, state}]}'

printf '%s\n' '== PR review-thread state through GraphQL =='
gh api graphql \
  -F owner='ContextualWisdomLab' \
  -F name='pg-erd-cloud' \
  -F number="$pr" \
  -f query='
query($owner: String!, $name: String!, $number: Int!) {
  repository(owner: $owner, name: $name) {
    pullRequest(number: $number) {
      headRefOid
      reviewThreads(first: 100) {
        nodes { isResolved isOutdated path line originalLine }
      }
    }
  }
}' \
  --jq '{head: .data.repository.pullRequest.headRefOid, threads: [.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | {isOutdated, path, line, originalLine}]}'

base=$(gh pr view "$pr" --repo "$repo" --json baseRefOid --jq .baseRefOid)
printf '%s\n' '== complete PR diffstat =='
git diff --stat "$base" "$expected"
printf '%s\n' '== complete changed-file list =='
git diff --name-only "$base" "$expected"

printf '%s\n' '== complete PR patch =='
git diff --find-renames --unified=100 "$base" "$expected"

printf '%s\n' '== relevant file outlines and focused content =='
git diff --name-only "$base" "$expected" |
while IFS= read -r f; do
  case "$f" in
    *.ts|*.tsx|*.js|*.jsx)
      printf '\n-- outline: %s --\n' "$f"
      ast-grep outline "$f" --items all 2>/dev/null || true
      printf '\n-- accessibility and interaction context: %s --\n' "$f"
      rg -n -i -C 12 \
        '(aria-label|aria-labelledby|table.*delete|delete.*table|duplicate|๋ณต์ œ|ํ…Œ์ด๋ธ” ์‚ญ์ œ|window\.confirm|confirm\(|onKeyDown|Escape|Enter|focus)' \
        "$f" || true
      ;;
  esac
done

Length of output: 45565


๐Ÿ Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '== EditTableModal call sites and delete-handler definitions =='
rg -n -C 10 \
  '(?:<EditTableModal\b|onDeleteTable=|const\s+handleDeleteTable|function\s+handleDeleteTable|onDeleteTable\s*[:=])' \
  frontend --glob '*.{ts,tsx}'

printf '%s\n' '== dialog accessibility hook and test files =='
fd -t f 'useDialogAccessibility' frontend
fd -t f -i 'dialog.*test|modal.*test' frontend |
while IFS= read -r f; do
  if rg -q '(useDialogAccessibility|EditTableModal|Escape|focus|keyboard)' "$f"; then
    printf '%s\n' "-- $f --"
    rg -n -i -C 12 '(useDialogAccessibility|EditTableModal|Escape|focus|keyboard)' "$f"
  fi
done

printf '%s\n' '== focused source regions =='
hook=$(fd -t f 'useDialogAccessibility' frontend | head -n 1)
if [ -n "$hook" ]; then
  cat -n "$hook"
fi

printf '%s\n' '== tests that verify rerendered contextual accessible names =='
rg -n -i -C 8 \
  '(rerender|aria-label|accessible name|getByRole\(.+ํ…Œ์ด๋ธ” (์‚ญ์ œ|๋ณต์ œ)|getByRole\(.+Delete|ํ…Œ์ด๋ธ” ์‚ญ์ œ|ํ…Œ์ด๋ธ” ๋ณต์ œ)' \
  frontend/src --glob '*.{test,spec}.{ts,tsx}' || true

Length of output: 80826


๐Ÿ Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '== all parent Delete handler references =='
rg -n -C 25 '\bonDeleteTable\b' frontend/src/App.tsx

printf '%s\n' '== parent confirmation and table-delete tests =='
rg -n -i -C 20 \
  '(onDeleteTable|ํ…Œ์ด๋ธ”์„ ์‚ญ์ œ|table.*delete|delete.*table|window\.confirm|confirm\()' \
  frontend/src --glob '*.{test,spec}.{ts,tsx}' \
  --glob '!components/modals/EditTableModal.test.tsx' \
  --glob '!components/modals/ModalCoverage.test.tsx' || true

printf '%s\n' '== direct safe rendering references for table titles =='
rg -n -C 5 \
  '(editingNode\.data\.title|data\.title.*aria-label|aria-label.*data\.title)' \
  frontend/src/components/modals/EditTableModal.tsx frontend/src/App.tsx

Length of output: 46540


@seonghobae Review completed for exact head 2d6183160cb095b35cf4498d5058dff049f604a9.

Finding โ€” test coverage gap

frontend/src/components/modals/EditTableModal.tsx updates both accessible names from editingNode.data.title on render. However, the changed tests only assert one initial table title. They do not rerender the modal with a different editingNode.data.title.

Add a focused regression test that rerenders the open modal with another table name. Assert that both controls change to the new localized names:

  • <new name> ํ…Œ์ด๋ธ” ์‚ญ์ œ
  • <new name> ํ…Œ์ด๋ธ” ๋ณต์ œ

This verifies the required table-context update behavior.

Verified behavior:

  • The labels are localized and contextual at Line 193 and Line 200 of frontend/src/components/modals/EditTableModal.tsx.
  • React renders the table name as an attribute value. It does not expose table-name markup.
  • The parent onDeleteTable callback retains its window.confirm guard.
  • The shared dialog hook retains Escape, focus trap, initial focus, and focus restoration behavior.
  • GitHub reports no unresolved review threads.
  • Frontend, coverage, security, Semgrep, dependency, and review checks are successful.
โš ๏ธ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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