Manage people and the tenancy tree, from the web and the CLI
Nothing in the tree could be renamed, moved or removed, and an approved person stayed in the project they were first put in — from the web or the CLI. Now: - /admin/users is the tree, each project opening onto its people and keys, with approve, move, suspend, reinstate and remove for people, revoke for keys, and add, rename, move and remove at every level, plus a search over every account. Forms post and get the page back, so it works with no script; htmx 2.0.11 (0BSD, embedded, checked against npm's integrity hash) swaps only the changed part, keeping open projects open. - llmgw org tree/add/rename/move/remove, users move/delete, and keys list --all. - Projects, teams and organizations are named by id, path (Acme/platform/gateway) or unique name; users by id or email. With a single project --project can be left out, instead of defaulting to "default", which a tree built from the web does not have. Moving a person moves the keys they made; operator keys stay with the project. Only empty things are removed, and never a project that had a key, since usage history refers to it. Also: keys init no longer reparents an existing team or project; reinstating an account with no project is refused (a rejected signup used to come back active and fail at its first key); rejecting a signup removes it; keys limits --budget takes whole units like the quotas page. Checked in headless Chrome: a move from an open project updates the page in place, keeps the project open, and the search still filters. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5141e4b138
commit
3104f4b706
21 files changed
+2081
-217
No files matched your search
@@ -317,3 +317,43 @@ tr.editing form { margin: .4rem 0; }
|
||||
difference has to survive a glance. */
|
||||
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg);
|
||||
font-weight: 600; }
|
||||
|
||||
/* People: the tenancy tree with its people and keys. Indented by level and
|
||||
ruled on the left, so which team a project is in reads at a glance without
|
||||
a table per level. */
|
||||
.org { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
|
||||
padding: .9rem 1rem; margin: 0 0 1rem; }
|
||||
.team { margin: .8rem 0 0 .4rem; padding-left: .9rem; border-left: 2px solid var(--line); }
|
||||
.node-head { display: flex; align-items: center; gap: .4rem .9rem; flex-wrap: wrap; }
|
||||
.node-name { font-weight: 600; }
|
||||
.org > .node-head .node-name { font-size: 1.05rem; }
|
||||
.node-meta { color: var(--muted); font-size: .82rem; font-weight: 400; }
|
||||
details.edit { display: inline-block; font-size: .85rem; }
|
||||
details.edit > summary { cursor: pointer; color: var(--accent); list-style: none;
|
||||
text-decoration: underline; }
|
||||
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.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;
|
||||
gap: .8rem; align-items: baseline; }
|
||||
details.project[open] > summary { border-bottom: 1px solid var(--line); }
|
||||
.project-body { padding: .6rem .7rem .8rem; display: grid; gap: .7rem; }
|
||||
table.compact { font-size: .83rem; }
|
||||
table.compact th, table.compact td { padding: .35rem .55rem; }
|
||||
form.add { display: flex; gap: .4rem; margin: .5rem 0 0; }
|
||||
form.add input[type=text], details.edit input[type=text] { margin: 0; padding: .35rem .55rem; }
|
||||
form.add input[type=text] { max-width: 18rem; }
|
||||
form.add button, button.small { padding: .3rem .7rem; font-size: .82rem; }
|
||||
form.org-add { margin: 0 0 1rem; }
|
||||
td.actions { white-space: nowrap; }
|
||||
td.actions form + form { margin-left: .6rem; }
|
||||
.tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
|
||||
color: var(--accent); border: 1px solid var(--accent); border-radius: 4px;
|
||||
padding: 0 .3rem; margin-left: .3rem; }
|
||||
input.search { width: 100%; max-width: 26rem; margin: 0 0 .7rem; padding: .45rem .6rem;
|
||||
font: inherit; border: 1px solid var(--line); border-radius: 6px;
|
||||
background: var(--card); color: var(--fg); }
|
||||
tr[hidden] { display: none; }
|
||||
Reference in new issue
Block a user