An organization's admin, and forms only for those who may send them

C1. A membership of an organization may be admin as well as member and
manager. An admin sees /org as a manager does and changes the
organization from it: its teams and projects, who of the approved
accounts is in them, its members' roles, and the keys spent in its
projects. Every id a form names is checked against the organization;
limits, accounts, the organization's name and the cluster stay with the
cluster's staff, and an admin cannot take their own role away.

A group from OIDC, SCIM or a directory no longer rewrites a membership
it names as a plain member at every sign-in, which took a manager's role
away (EnsureMembership).

Pages draw a form only for someone who may send it: Nav.May asks the
staff rule staffMay keeps, and a page whose forms a person may not send
gets no form token. A viewer sees the people, limits and mirror pages
without forms; an operator the mirror's.

Forms are compact: labels close to their fields, fields as wide as what
goes in them, smaller buttons, and the short forms on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-11-08 11:38:06 +01:00
1 parent 2cb1afda55
commit 102ca9556f
37 files changed
+1204 -212

No files matched your search

+36 -10
View File
@@ -52,19 +52,30 @@ footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line);
button {
font: inherit; font-weight: 600; cursor: pointer;
background: var(--accent); color: var(--bg); border: none;
border-radius: 6px; padding: .55rem 1.1rem;
border-radius: 6px; padding: .4rem .9rem; font-size: .875rem;
}
button:hover { filter: brightness(1.1); }
ul { padding-left: 1.2rem; }
li { margin: .25rem 0; }
a { color: var(--accent); }
.wrap.narrow { max-width: 30rem; }
label { display: block; margin: .9rem 0; font-size: .9rem; font-weight: 600; }
/* Forms are compact: a label sits close to its field, a field is as wide as
what goes in it rather than the page, and a short form fits on one line
(form.row). The simplest form used to take a screen's height. */
label { display: block; margin: .5rem 0; font-size: .85rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number] {
display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400;
padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px;
display: block; width: 100%; max-width: 30rem; margin-top: .2rem; font: inherit; font-size: .9rem;
font-weight: 400; padding: .32rem .5rem; border: 1px solid var(--line); border-radius: 6px;
background: var(--card); color: var(--fg);
}
input[type=number] { max-width: 10rem; }
form.row { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: flex-end; margin: .5rem 0; }
form.row label { margin: 0; }
form.row input[type=text], form.row input[type=email], form.row input[type=password],
form.row input[type=number], form.row select { width: auto; min-width: 12rem; margin: 0; }
form.row input[type=number] { min-width: 6rem; width: 7rem; }
form.row > button, form.row label > button { margin: 0; }
form.row .grow { flex: 1 1 16rem; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { color: var(--bad); border: 1px solid var(--bad); border-radius: 6px;
padding: .6rem .8rem; background: var(--card); }
@@ -74,7 +85,7 @@ button.link { background: none; color: var(--accent); padding: 0;
button.link.danger { color: var(--bad); }
.ok { color: var(--ok); border: 1px solid var(--ok); border-radius: 6px;
padding: .6rem .8rem; background: var(--card); }
select { font: inherit; padding: .35rem .4rem; border: 1px solid var(--line);
select { font: inherit; font-size: .9rem; padding: .28rem .4rem; border: 1px solid var(--line);
border-radius: 6px; background: var(--card); color: var(--fg); }
.chart-wrap { position: relative; margin: .5rem 0 1.5rem; }
.chart { width: 100%; height: 120px; display: block;
@@ -277,8 +288,11 @@ tr:has(+ .url-row) td, tr:has(+ .error-row) td { border-bottom: none; }
/* The fetch form's three short fields sit on one line on a wide screen and
stack on a narrow one, because two of them are a word long and a full-width
input for "2026-09" reads as though more is wanted. */
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row label { flex: 1 1 12rem; }
.field-row { display: flex; gap: .4rem .75rem; flex-wrap: wrap; align-items: flex-end; }
.field-row label { flex: 0 1 12rem; margin: .3rem 0; }
.field-row label.short { flex: 0 0 7.5rem; }
.field-row label.grow { flex: 1 1 14rem; }
.field-row .field-gap { flex: 0 0 1rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
/* The row whose quota form is open. Tinted rather than outlined: a border
@@ -334,6 +348,8 @@ details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] > summary { color: var(--muted); }
details.edit form { display: flex; gap: .4rem; align-items: center; margin: .35rem 0; }
details.edit input[type=text] { width: 14rem; }
details.edit form.q-form { display: block; }
details.edit form.q-form input[type=text] { width: 100%; }
details.project { margin: .45rem 0; border: 1px solid var(--line); border-radius: 6px;
background: var(--bg); }
details.project > summary { cursor: pointer; padding: .45rem .7rem; display: flex;
@@ -418,10 +434,11 @@ table.quota-tree tr.q-depth-0 .q-name { font-weight: 600; }
.q-meter.hot i { background: var(--bad); }
.q-pct { font-size: .78rem; color: var(--muted); }
.q-act { text-align: right; white-space: nowrap; }
.q-form { max-width: 46rem; }
.q-form { max-width: 62rem; }
.q-form .field-row { align-items: flex-end; }
.q-form .field-row label { flex: 1 1 8rem; }
.q-form .field-row label { flex: 0 1 8rem; }
.q-form .field-row label.q-period { flex: 0 0 auto; }
.q-form .field-row label.grow { flex: 1 1 14rem; }
.q-form-title { margin: .2rem 0 .4rem; font-size: .88rem; }
.q-form-actions { display: flex; gap: 1rem; align-items: center; margin-top: .6rem; }
.q-form-actions .danger { margin-left: auto; }
@@ -757,6 +774,7 @@ table.gpu-list { width: auto; flex: 1 1 22rem; }
form.add-to { display: flex; gap: .35rem; align-items: center; flex-wrap: nowrap; }
form.add-to select { width: auto; max-width: 13rem; margin: 0; padding: .25rem .4rem; font-size: .8rem; }
form.add-to button { padding: .25rem .6rem; font-size: .78rem; }
form.add-to input[type=text] { width: 11rem; margin: 0; padding: .22rem .45rem; font-size: .8rem; }
details.row-menu { position: relative; display: inline-block; }
details.row-menu > summary { list-style: none; cursor: pointer; padding: .1rem .55rem; border-radius: 6px;
color: var(--muted); font-weight: 700; letter-spacing: .05em; user-select: none; }
@@ -813,7 +831,8 @@ details.chat-settings output { font-variant-numeric: tabular-nums; font-weight:
.copyable { position: relative; }
.copyable pre { margin-bottom: .25rem; overflow-x: auto; }
.copyable button { margin-right: .75rem; font-size: .8rem; }
.connect-form .field-row label { flex: 1 1 12rem; }
.connect-form .field-row label { flex: 0 1 auto; }
.connect-form .field-row > button { margin: .3rem 0; }
table.connect-fields th { white-space: nowrap; }
/* The card opened beneath a held version on the mirror page. */
@@ -941,3 +960,10 @@ a.sel-link.small { font-size: .78rem; color: var(--muted); margin-left: .4rem; }
.meshes-picture input { display: block; margin-top: .3rem; font-weight: 400; }
.meshes-preview { max-width: min(100%, 16rem); max-height: 16rem; border: 1px solid var(--line); border-radius: 6px; }
.meshes-viewer { display: block; width: 100%; height: 22rem; background: var(--card); }
/* A role chosen inside a membership chip. */
select.chip-sel { font-size: .75rem; padding: 0 .2rem; margin-left: .3rem; border-radius: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: .3rem .8rem .5rem; margin: .5rem 0; }
legend { font-size: .82rem; font-weight: 600; padding: 0 .3rem; }
fieldset label.check { margin: .2rem 0; font-weight: 400; font-size: .85rem; }