Edit an agent's prompts as rows and its gates as a Where block and rules
The card lists each prompt and says the gates in words. The form edits prompts as name and text rows, and the gates as a Where block (countries required, then one of countries, remote or places, and prefer hybrid) over a row per remaining rule. A gate the Where block cannot say lands in a row, so a load and a save lose nothing. The gates JSON box stays under Advanced, read only, as a view of what Save sends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b6afe24eaa
commit
0996b03f8f
3 files changed
+434
-31
No files matched your search
+40
-1
@@ -1076,6 +1076,11 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
|
||||
white-space: pre-line; overflow-wrap: anywhere;
|
||||
}
|
||||
.agent-intent.empty { font-family: inherit; font-size: .9rem; color: var(--dim); font-style: italic; }
|
||||
/* A prompt's name is a small heading over its text, so three prompts read as
|
||||
three kinds of role rather than one long paragraph. */
|
||||
.agent-prompt-name { margin: .7rem 0 0; font-size: .8rem; font-weight: 600; color: var(--dim); }
|
||||
.agent-prompt-name + .agent-intent { margin-top: .2rem; }
|
||||
.agent-rules { margin: 0 0 .3rem; font-size: .9rem; color: var(--dim); overflow-wrap: anywhere; }
|
||||
.agent-weights, .agent-limits { margin: 0; font-size: .8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
|
||||
.agent-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; }
|
||||
.agent-card-actions a { font-size: .9rem; font-weight: 600; text-decoration: none; }
|
||||
@@ -1144,6 +1149,40 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
|
||||
.weights.limits label { flex: 1 1 40%; }
|
||||
.agent-form fieldset + .hint { margin-top: -.3rem; }
|
||||
.agent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
|
||||
.agent-form select {
|
||||
background: var(--bg); border: 1px solid var(--line);
|
||||
border-radius: .3rem; padding: .35rem .5rem;
|
||||
}
|
||||
/* The fieldsets that hold rows: a column, the Add button under the rows. */
|
||||
.agent-form fieldset.prompts, .agent-form fieldset.where, .agent-form fieldset.rules {
|
||||
display: flex; flex-direction: column; align-items: stretch; gap: .5rem; min-width: 0;
|
||||
border: 1px solid var(--line); border-radius: .3rem;
|
||||
}
|
||||
.agent-form fieldset > button { align-self: flex-start; }
|
||||
/* A prompt or a rule as a row of a list, after `.crow`: the name and Remove
|
||||
on line one, the text spanning the row under them. A rule row wraps like
|
||||
`.crow .board-edit`, so a phone takes it in two lines rather than scrolling. */
|
||||
.prompt-row {
|
||||
display: grid; grid-template-columns: 1fr auto; align-items: center;
|
||||
column-gap: .6rem; row-gap: .3rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.prompt-row textarea { grid-column: 1 / -1; }
|
||||
.rule-row {
|
||||
display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
|
||||
padding-bottom: .5rem; border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.rule-rows:empty, .prompt-rows:empty { display: none; }
|
||||
.agent-form .rule-row input[type="text"] { flex: 1 1 8rem; width: auto; min-width: 0; }
|
||||
.agent-form .rule-row input[type="number"], .agent-form .where input[type="number"] { width: 5rem; flex: none; }
|
||||
/* A Where line: its words, then its chips, which wrap under them on a phone. */
|
||||
.where-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; }
|
||||
.where-line > span { flex: none; }
|
||||
.where-line .chips { flex: 1 1 12rem; }
|
||||
/* Values as the rail's tags, each removed by its ×; the box to add one takes
|
||||
the rest of the line. */
|
||||
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-width: 0; }
|
||||
.agent-form .chips input[type="text"] { flex: 1 1 6rem; width: auto; min-width: 0; }
|
||||
.chips .tag span { color: var(--faint); }
|
||||
.agent-form details summary { cursor: pointer; color: var(--dim); font-size: .9rem; }
|
||||
.agent-form details[open] summary { margin-bottom: .5rem; }
|
||||
|
||||
@@ -1294,7 +1333,7 @@ table.list select { padding: .25rem .4rem; }
|
||||
button, .top nav a { min-height: 2.75rem; }
|
||||
.top nav a { display: inline-flex; align-items: center; justify-content: center; }
|
||||
.filters input[type="search"], .filters input[type="text"], .filters select,
|
||||
.agent-form input, .source-form select,
|
||||
.agent-form input:not([type="checkbox"]), .agent-form select, .source-form select,
|
||||
.crow .board-edit input, .crow .board-edit select { min-height: 2.75rem; }
|
||||
.affinity button { min-width: 2.75rem; }
|
||||
.check input { width: 1.25rem; height: 1.25rem; }
|
||||
|
||||
Reference in new issue
Block a user