feat(shell): every operation inside a tenant, the instance as a System entry of the selector #50

Merged
crapougnax merged 1 commit from feat/49-tenant-context-frame into develop 2026-11-18 20:37:16 +00:00
Owner

Step 1 of #49. Part of #25 and #38.

A tenant is a workbench: every operation happens inside one, and the administration of the instance is the System context.

Changes

  • Context selector (ContextSwitcher), always on show at the top of the side menu: the tenants of the account, even a single one, then System for the administrators of the instance. No "outside any tenant" entry any more; an account with nowhere to go sees it empty and disabled.
  • Menu by context: in a tenant, a Workbench section (overview, library) and a Configuration section for its administrators (resources); in System, tenants, accounts, settings.
  • Home (/): opens the context worked in last (cookie studio-context, HTTP-only), while the user may still enter it; else the first tenant by name; else System for an administrator of the instance; else a page saying the account belongs to no tenant.
  • Workbench of the instance removed (CurationWorkbench): it read instance-wide resources under a header and a selector of its own, which was the main source of confusion. Its functions (drop zone, curation, extraction, activity, themes) come back inside the tenant with step 4 of #38; until then staging has none of them.
  • RBAC: a guest role (signed-in account without instance role) may read the home; curator inherits it.
  • locals.worksOutsideTenants becomes locals.instanceAdmin.
  • Docs: multi-tenancy (section 7) and accounts, EN/FR.

Verification

  • yarn test: 180 tests pass (selector entries, menu by context, home redirections, remembered context, guest role).
  • yarn build passes; tsc shows no new error (11 pre-existing, down from 18).
  • Not checked in a browser: no local stack, and yarn dev fails (#9).

Follow-ups

  • Step 2 of #49: Members page in the configuration of a tenant.
  • The Settings page of System still carries the storage and repository of the instance; they go with step 4 of #38.

🤖 Generated with Claude Code

Step 1 of #49. Part of #25 and #38. A tenant is a workbench: every operation happens inside one, and the administration of the instance is the System context. ## Changes - **Context selector** (`ContextSwitcher`), always on show at the top of the side menu: the tenants of the account, even a single one, then **System** for the administrators of the instance. No "outside any tenant" entry any more; an account with nowhere to go sees it empty and disabled. - **Menu by context**: in a tenant, a Workbench section (overview, library) and a Configuration section for its administrators (resources); in System, tenants, accounts, settings. - **Home** (`/`): opens the context worked in last (cookie `studio-context`, HTTP-only), while the user may still enter it; else the first tenant by name; else System for an administrator of the instance; else a page saying the account belongs to no tenant. - **Workbench of the instance removed** (`CurationWorkbench`): it read instance-wide resources under a header and a selector of its own, which was the main source of confusion. Its functions (drop zone, curation, extraction, activity, themes) come back inside the tenant with step 4 of #38; until then staging has none of them. - **RBAC**: a `guest` role (signed-in account without instance role) may read the home; `curator` inherits it. - `locals.worksOutsideTenants` becomes `locals.instanceAdmin`. - Docs: multi-tenancy (section 7) and accounts, EN/FR. ## Verification - `yarn test`: 180 tests pass (selector entries, menu by context, home redirections, remembered context, guest role). - `yarn build` passes; `tsc` shows no new error (11 pre-existing, down from 18). - Not checked in a browser: no local stack, and `yarn dev` fails (#9). ## Follow-ups - Step 2 of #49: Members page in the configuration of a tenant. - The Settings page of System still carries the storage and repository of the instance; they go with step 4 of #38. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(shell): every operation inside a tenant, the instance as a System entry of the selector (#49)
All checks were successful
Build and Publish OCI Image / Build & Push ARM64 OCI Image (pull_request) Successful in 1m12s
8725305b1a
A tenant is a workbench. The selector at the top of the side menu is always on
show and names the context the user is in: the tenants of the account, even a
single one, and System, the administration of the instance, for its
administrators only. Nothing is offered outside a context any more.

- The home opens the context worked in last (cookie studio-context), else the
  first tenant, else System for an administrator of the instance, else a page
  saying the account belongs to no tenant.
- The workbench of the instance is removed: it read instance-wide resources
  under a header of its own. Its functions come back inside the tenant with
  step 4 of #38.
- The menu of a tenant has a Workbench section and a Configuration section
  for its administrators.
- A signed-in account without instance role may read the home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crapougnax merged commit 4196acbe09 into develop 2026-11-18 20:37:16 +00:00
crapougnax deleted branch feat/49-tenant-context-frame 2026-11-18 20:37:16 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
modaka/studio!50
No description provided.