fix(sitemap-admin): dialog cleanup, accessibility, and UX fixes#280
Merged
fix(sitemap-admin): dialog cleanup, accessibility, and UX fixes#280
Conversation
Extract cleanupDialog/registerDialogCleanup helpers so dialogs are properly removed on close, cancel, and Escape. Use :last-of-type selectors to avoid stale dialog references. Add aria-labelledby to all dialog templates for screen reader support. Fix 204 response handling in generateSitemap to avoid calling resp.json() on empty body. Wrap generate button reset in try/finally. Deduplicate YAML import into ensureYaml(). Fix CSS specificity for type dialog button area. Auto-submit form when org/site query params are present. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 tasks
|
registerDialogCleanup already ensures stale dialogs are removed from the DOM, so :last-of-type guards are redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Code ReviewFiles Reviewed
Issues FoundNone. Checked for bugs, CLAUDE.md compliance, and EDS-specific criteria (JS patterns, CSS scoping, accessibility, security, performance). Highlights
VerdictAPPROVE |
usman-khalid
approved these changes
Apr 11, 2026
usman-khalid
pushed a commit
that referenced
this pull request
Apr 15, 2026
* fix(sitemap-admin): dialog cleanup, accessibility, and UX fixes Extract cleanupDialog/registerDialogCleanup helpers so dialogs are properly removed on close, cancel, and Escape. Use :last-of-type selectors to avoid stale dialog references. Add aria-labelledby to all dialog templates for screen reader support. Fix 204 response handling in generateSitemap to avoid calling resp.json() on empty body. Wrap generate button reset in try/finally. Deduplicate YAML import into ensureYaml(). Fix CSS specificity for type dialog button area. Auto-submit form when org/site query params are present. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(sitemap-admin): remove unnecessary :last-of-type dialog selectors registerDialogCleanup already ensures stale dialogs are removed from the DOM, so :last-of-type guards are redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part 1 of 2 replacing #252, which combined cleanup/fixes with new features. This PR contains only the fixes and cleanup; the sitemap index definition viewer will follow in a separate PR.
cleanupDialog/registerDialogCleanuphelpers so dialogs are properly removed on close, cancel, and Escapearia-labelledbyto all dialog templates for screen reader supportgenerateSitemapto avoid callingresp.json()on empty bodytry/finallyso it recovers on errorsensureYaml()helperorg/sitequery params are presentPreview: https://fix-sitemap-admin-cleanup--helix-tools-website--adobe.aem.page/tools/sitemap-admin/index.html
Test plan
?org=<org>&site=<site>and verify the form auto-submits🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com