Open the quota form on the branch, instead of asking which branch again
The tree was rendered and then, underneath it, a form with a dropdown asking which of those rows you meant. The tree already said. Picking a branch, reading its current numbers, scrolling past the tree and selecting the same branch from a list is three steps to do one thing, and two of them are a chance to pick the wrong row. A quota belongs to a branch, so the form opens on it: each row links to ?edit=scope:id, that row renders its form inline, pre-filled with what is set there now and naming the branch in full. By link rather than by disclosure on every row: a collapsed form per branch would put a form in the markup for every group on a page whose job is to be read as a tree. One is open at a time, and the rest keep their link. Clearing moved into that form as a second submit, so a row that is not being edited has one control and not two. Saving closes it. Re-rendering the form over the row it just changed hides the result and invites submitting the same thing twice. The note about a quota being shared came out of the footer: the open form says it, at the point where somebody is about to do it. The dropdown's parsing went with it rather than being left unreachable. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
55262418c9
commit
5726252825
4 files changed
+105
-73
No files matched your search
@@ -277,3 +277,8 @@ tr:has(+ .url-row) td, tr:has(+ .error-row) td { border-bottom: none; }
|
||||
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
|
||||
.field-row label { flex: 1 1 12rem; }
|
||||
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
|
||||
|
||||
/* The row whose quota form is open. Tinted rather than outlined: a border
|
||||
inside a table cell breaks the ruling of every column beside it. */
|
||||
tr.editing > td { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
|
||||
tr.editing form { margin: .4rem 0; }
|
||||
Reference in new issue
Block a user