feat: side menu and administration pages #27

Merged
crapougnax merged 2 commits from feat/25-app-shell into develop 2026-11-17 09:09:08 +00:00
Member

Refs #25 (step 2 of the interface redesign)

What

  • Frame (src/components/shell/AppFrame.tsx): side menu with the name of the instance, the sections, the signed-in user and the sign-out entry; it collapses behind a menu button on narrow screens.
  • Menu declared in one place (navigation.ts): an entry names its page, its address and the role it needs. Entries a user may not open are not shown.
  • Administration as pages: /admin/tenants, /admin/accounts (new, read only), /admin/settings. The settings dialog is gone; its content is now SettingsPanel.
  • The workbench keeps its own screen for now; its gear button links to the administration.
  • AGENTS.md says how to add a screen.

Access

Each administration page redirects anyone but an administrator of the instance to the sign-in page, and is not served under a tenant URL. The routes behind them check again, as before.

Verified

  • yarn test: 77 tests pass, 3 new on the menu.
  • On the production build with a throwaway PostgreSQL: the three pages answer 200 to an administrator, and redirect a curator and an anonymous visitor.
  • In a browser: the three pages render inside the frame, the current entry is marked, the tenant list, the account list and the settings load.

Not verified

  • The narrow-screen menu was not looked at in a browser.
  • Saving the settings from the page was not exercised; its code is unchanged from the dialog.

Next steps of #25

To review and Library pages with a document page, then Taxonomy, Extraction and Activity, then the tenant selector.

🤖 Generated with Claude Code

Refs #25 (step 2 of the interface redesign) ## What - **Frame** (`src/components/shell/AppFrame.tsx`): side menu with the name of the instance, the sections, the signed-in user and the sign-out entry; it collapses behind a menu button on narrow screens. - **Menu declared in one place** (`navigation.ts`): an entry names its page, its address and the role it needs. Entries a user may not open are not shown. - **Administration as pages**: `/admin/tenants`, `/admin/accounts` (new, read only), `/admin/settings`. The settings dialog is gone; its content is now `SettingsPanel`. - The workbench keeps its own screen for now; its gear button links to the administration. - `AGENTS.md` says how to add a screen. ## Access Each administration page redirects anyone but an administrator of the instance to the sign-in page, and is not served under a tenant URL. The routes behind them check again, as before. ## Verified - `yarn test`: 77 tests pass, 3 new on the menu. - On the production build with a throwaway PostgreSQL: the three pages answer 200 to an administrator, and redirect a curator and an anonymous visitor. - In a browser: the three pages render inside the frame, the current entry is marked, the tenant list, the account list and the settings load. ## Not verified - The narrow-screen menu was not looked at in a browser. - Saving the settings from the page was not exercised; its code is unchanged from the dialog. ## Next steps of #25 To review and Library pages with a document page, then Taxonomy, Extraction and Activity, then the tenant selector. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: side menu and administration pages (#25)
All checks were successful
Build and Publish OCI Image / Build & Push ARM64 OCI Image (pull_request) Successful in 3m31s
1cd9c402c0
First step of the interface redesign: a frame with a side menu, and the
administration of the instance as pages (Tenants, Accounts, Settings) instead of
a dialog with tabs. The menu is declared in one place; adding a page is adding
an entry and its Astro page. The workbench keeps its screen for now and links
to the administration.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merge branch 'develop' into feat/25-app-shell
All checks were successful
Build and Publish OCI Image / Build & Push ARM64 OCI Image (pull_request) Successful in 4m35s
7c30bb1eb4
crapougnax merged commit 14add1f9b6 into develop 2026-11-17 09:09:08 +00:00
crapougnax deleted branch feat/25-app-shell 2026-11-17 09:09:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
modaka/studio!27
No description provided.