Skip to content

fix(ui): give the admin area a main landmark - #1589

Closed
culfin wants to merge 1 commit into
apache:mainfrom
Besser-Sehen-Landshut:fix/landmark-admin
Closed

fix(ui): give the admin area a main landmark#1589
culfin wants to merge 1 commit into
apache:mainfrom
Besser-Sehen-Landshut:fix/landmark-admin

Conversation

@culfin

@culfin culfin commented Aug 24, 2026

Copy link
Copy Markdown

Follow-up to #1587, which covered the two layouts that carry the side
navigation. The admin area has a layout of its own and sits directly under
pages/Layout in the router, so it was not included there. It covers 28
routes.

Same two changes as in #1587: the wrapper around Outlet becomes main, the
sidebar container becomes nav. Class names untouched, so nothing moves.

A correction to #1587

That PR names Users/Settings and Legal as also needing a landmark of their
own. They do not. Both are nested inside SideNavLayout:

pages/Layout
  pages/SideNavLayout
    pages/Users/Settings   ← already inside the main added by #1587
  pages/Admin              ← this PR
  pages/SideNavLayoutWithoutFooter
pages/Layout
  pages/SideNavLayout
    pages/Legal            ← already inside it too

Adding a second main there would be worse than none, since only one per page
is valid. Sorry for the noise in the other description.

Still open

Twenty routes hang directly under pages/Layout with no layout of their own —
sign-in, registration, the error pages. Giving each one a landmark means either
twenty edits or a small PlainLayout wrapper in the router. That is a
different kind of change and belongs in its own PR; I am happy to send it if
you would like it.

🤖 Generated with Claude Code

Follow-up to apache#1587, which covered the two layouts that carry the side
navigation. The admin area has a layout of its own, sits directly under
`pages/Layout` in the router, and was therefore not included.

Same two changes as there: the wrapper around `Outlet` becomes `main`, the
sidebar container becomes `nav`. Class names untouched, so nothing moves. It
covers 28 routes.

One correction to what apache#1587 says about this: it names `Users/Settings` and
`Legal` as also needing their own landmark. They do not — both are nested
inside `SideNavLayout`, so they already receive the one added there. Adding a
second would be worse than none, since only one `main` per page is valid.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@culfin

culfin commented Aug 24, 2026

Copy link
Copy Markdown
Author

Folded into #1587, which now covers every route rather than a third of them. Nothing is dropped; the commits are on that branch. Closing to keep the queue readable.

@culfin culfin closed this Aug 24, 2026
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