Split application administration into overview and detail pages #3

Merged
exler merged 1 commit from feature/application-detail into main 2026-10-16 19:26:07 +02:00
Collaborator

Summary

  • Keep application overview rows to name, distinct assigned-user count, and a details link.
  • Add application detail pages with client ID, masked secret, redirect URIs, and per-app user/role management.
  • Move application creation to its own page; show the new secret once on creation only.
  • Style the native user select to match Thermopylae inputs. Move deletion to details with explicit confirmation.

Cause and approach

Application configuration and role forms were nested directly in every overview row. Separate admin-only routes now carry those operations; role changes return to their application's detail page, including validation errors. Global user management is unchanged. No schema changes or new dependencies.

Verification

  • go test ./... — passed.
  • go vet ./... — passed.
  • git diff --check origin/main...HEAD — passed.
  • Behavioral coverage includes distinct-user counts, per-app role isolation, admin authorization, CSRF, unknown application 404s, confirmation before deletion, validation and one-time secret visibility; no stored secret hash appears in rendered pages.
  • Chromium: overview, detail and creation at 1280px desktop and 390px phone; document horizontal overflow measured 0px in every case. Styled select has native keyboard semantics, appearance: none, and the expected theme border.

Existing secrets remain unrecoverable (hash-only storage); details use a constant mask, not hidden plaintext. Production has not been changed. Workflow CI currently runs on main/tag pushes, not pull requests; local gates above were executed against the feature commit.

Visual verification

Fixture-rendered real routes with synthetic data, not a production session.

detail-desktop

detail-mobile

list-desktop

list-mobile

new-desktop

new-mobile

## Summary - Keep application overview rows to name, distinct assigned-user count, and a details link. - Add application detail pages with client ID, masked secret, redirect URIs, and per-app user/role management. - Move application creation to its own page; show the new secret once on creation only. - Style the native user select to match Thermopylae inputs. Move deletion to details with explicit confirmation. ## Cause and approach Application configuration and role forms were nested directly in every overview row. Separate admin-only routes now carry those operations; role changes return to their application's detail page, including validation errors. Global user management is unchanged. No schema changes or new dependencies. ## Verification - `go test ./...` — passed. - `go vet ./...` — passed. - `git diff --check origin/main...HEAD` — passed. - Behavioral coverage includes distinct-user counts, per-app role isolation, admin authorization, CSRF, unknown application 404s, confirmation before deletion, validation and one-time secret visibility; no stored secret hash appears in rendered pages. - Chromium: overview, detail and creation at 1280px desktop and 390px phone; document horizontal overflow measured 0px in every case. Styled select has native keyboard semantics, `appearance: none`, and the expected theme border. Existing secrets remain unrecoverable (hash-only storage); details use a constant mask, not hidden plaintext. Production has not been changed. Workflow CI currently runs on main/tag pushes, not pull requests; local gates above were executed against the feature commit. ## Visual verification Fixture-rendered real routes with synthetic data, not a production session. ![detail-desktop](https://git.marut.network/attachments/11a95f9a-e76a-41ef-a79d-416db06abec3) ![detail-mobile](https://git.marut.network/attachments/d432a034-30dd-4131-8d18-c145db68f736) ![list-desktop](https://git.marut.network/attachments/53c87628-79bf-4e9b-8492-bcccf821ab22) ![list-mobile](https://git.marut.network/attachments/20206590-a343-4020-a055-3d41f7fc71a0) ![new-desktop](https://git.marut.network/attachments/69ad5d9d-a425-4b05-b948-255063c1ffd5) ![new-mobile](https://git.marut.network/attachments/619dfbce-c75c-4d6c-a574-d0c8062ef61b)
/admin now lists each application's name, its distinct assigned-user
count and a details link. Creating an app moves to /admin/clients/new.
The new /admin/clients/:id page shows the client ID, a masked secret
(only its hash is stored), redirect URIs, and the app's users and roles,
with forms to add or remove roles and to delete the app after a
confirmation box. A new app's secret is shown once, on the detail page
returned by the create request. Unknown apps return 404, and role
errors re-render the detail page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
exler merged commit f8c1871637 into main 2026-10-16 19:26:07 +02:00
exler deleted branch feature/application-detail 2026-10-16 19:26:07 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/thermopylae!3
No description provided.