Polish the SPA: focus rings, reduced motion, forms that report errors
Test and deploy / test (push) Successful in 1m10s
Test and deploy / deploy (push) Successful in 58s

- Global :focus-visible ring (text fields get a border instead) and a
  prefers-reduced-motion override; the navbar marquee stops for it too.
- Button: disabled state and horizontal padding.
- useCreateForm returns error and submitting, so the create forms show a
  refused save inline and can't double-submit; they, Login, CreatePlace and
  CreateUser are real <form>s so Enter submits from any field.
- Admin: section list wraps on phones, Manage Users is a table with errors,
  Manage Radio confirms before deleting, page delete errors show inline.
- Hard-coded Tailwind colours replaced with tokens; 404 image alt text and
  no forced scrollbars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-23 20:11:05 +01:00
co-authored by Claude Opus 5.5
parent 3fa456a063
commit 8c535b1cc2
19 changed files with 271 additions and 128 deletions
+15 -2
View File
@@ -85,12 +85,14 @@ async function handleLogout() {
</header>
<div class="admin-body">
<nav class="admin-nav">
<nav class="admin-nav" aria-label="Admin sections">
<button
v-for="section in sections"
:key="section.id"
type="button"
class="admin-nav-link"
:class="{ 'is-active': active === section.id }"
:aria-current="active === section.id ? 'page' : undefined"
@click="selectSection(section.id)"
>
{{ section.label }}
@@ -114,7 +116,9 @@ async function handleLogout() {
@done="onDone"
@cancel="onCancel"
/>
<small v-if="notice" class="admin-notice">{{ notice }}</small>
<small v-if="notice" class="admin-notice" role="status">
{{ notice }}
</small>
</section>
</div>
</div>
@@ -195,9 +199,18 @@ async function handleLogout() {
color: var(--color-secondary);
}
/* On a phone the section list would be eleven full-width rows above the
form; as wrapping chips it takes three or four lines. */
@media (max-width: 700px) {
.admin-body {
grid-template-columns: 1fr;
}
.admin-nav {
flex-direction: row;
flex-wrap: wrap;
}
.admin-nav-link {
padding: 4px 8px;
}
}
</style>