Repository navigation
Web UI for organisations: create one from Settings, manage members on its page - #17
Merged
Merged
Conversation
… on the org's namespace page impl-ds-lite run orgui (20260922-203522) Signed-off-by: Yutaka Nishimura <ytk.nishimura@gmail.com>
The first commit brought the script side of member management to
/ns/{org} (add, remove, reload) but never rendered it. This adds the
template: a notice line, an "Add or update" form with user and role,
and a remove button on every row except the caller's own, all shown
only when the roster loaded and the token names this organisation.
The hub still decides who is an admin; the UI only hides controls.
The settings page is re-wrapped by prettier.
Signed-off-by: Yutaka Nishimura <ytk.nishimura@gmail.com>
…ng an admin token to Playwright impl-ds-lite run orgtest (20260922-220315) Signed-off-by: Yutaka Nishimura <ytk.nishimura@gmail.com>
The spec file is re-wrapped by prettier; no behavioural change. Signed-off-by: Yutaka Nishimura <ytk.nishimura@gmail.com>
… exported EVALHUB_* variable The server's configuration loader rejects unknown EVALHUB_* keys, so an exported EVALHUB_E2E_TOKEN stopped from starting. The value now travels the way EVALHUB_E2E_BASE_URL already does. Signed-off-by: Yutaka Nishimura <ytk.nishimura@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #16.
The organisation API existed without a screen. This adds one, in the two places it belongs, and a browser test that drives it through the real binary.
What changed
web/src/lib/api/client.ts:createOrg,addMember,removeMember, each anapi.*call throughunwraplike the helpers around them./ns/{org}: when the roster loaded and the session token names this organisation withwriteoradmin, an Add or update form (user, role) and aremovebutton on every row but the caller's own. The hub still decides who is an admin; the UI only hides controls and shows the hub's refusal as it said it.e2e/smoke.sh: createsalice(admin) andbobaftermigrate, captures alice's token into a variable and passes it to Playwright on the command line only. It is never printed. An exportedEVALHUB_*variable would reach the server, whose configuration rejects unknown keys; that was found by runningjust e2eand is fixed in the last commit.web/tests/browser/orgs.spec.ts: sign in → create an org → issue a token naming it → sign out and in with that token → addbobaswrite→ removebob. Skipped when the harness did not provide a token.What did not change
GET /whoamistill does not report organisation roles, so the UI cannot know in advance whether the caller is an admin; it relies onsession.mayWrite(ns)(the token names the org) and on the hub's403.POST /orgsextend the issuing token, or by a UI shortcut that issues the token) is a separate decision, not taken here.Verification
just web-check: svelte-check 0 errors / 0 warnings; prettier clean.just e2e: 18 shell checks, 4 browser tests, all green on this branch.cargo fmt --check/ clippy / per-crate tests: unaffected (no Rust change); the full list was green onmainearlier today.just package(no Rust change; CI runs it).Notes for review
orgs.spec.tsdeclares a minimalprocesstype instead of adding@types/node;playwright.config.tsalready readsprocess.envunder the same tsconfig. If a global type is preferred, that is a one-line devDependency change.Signed-off-by.