Rebuild the agent form as the fetch gate, the feed order, the cut and summarise, and name fetch text and the overrides as built
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fbc0f16c4a
commit
61aadff681
7 files changed
+185
-198
No files matched your search
+27
-31
@@ -188,38 +188,34 @@
|
||||
|
||||
/* The two fetch overrides, one more pair of toggles in the affinity
|
||||
buttons' fragment beside them, in a group of their own since they are
|
||||
global rather than an agent's stance (app/jobs/reach.py). Fetching has
|
||||
two filters, and by default a company follows the agents on both:
|
||||
- All countries reads its big boards (300 roles or more) with the
|
||||
agents' wide reach, Europe today, rather than their places.
|
||||
- All roles reads them with no role-type narrowing: none of the agents'
|
||||
fetch terms, which only apply with the wide reach, and none of the
|
||||
role filters that may come later.
|
||||
On queues a pull on the server, as the other reopening switches do; off
|
||||
asks nothing, since no role closes until the next pull reads the board
|
||||
with its filters again. `company` is the shared list's row;
|
||||
`onChange` runs after the server accepted a switch, with the company it
|
||||
answered. */
|
||||
global rather than an agent's stance (app/jobs/reach.py). The fetch gate
|
||||
has three parts, region, place and role, and a company follows every
|
||||
agent's on all three unless it is set to:
|
||||
- All countries: the place part is skipped. The company's roles are
|
||||
fetched and kept from the whole region (Europe), not only the agents'
|
||||
places, for every agent. The region itself still holds.
|
||||
- All roles: the role part is skipped: no fetch terms and no titles to
|
||||
leave out.
|
||||
Turning either on or off queues a rescore on the server, as the other
|
||||
switches that change what passes do, and a pull reads the board anew.
|
||||
`company` is the shared list's row; `onChange` runs after the server
|
||||
accepted a switch, with the company it answered. */
|
||||
const OVERRIDES = [
|
||||
{ value: "countries", field: "all_countries", path: "all-countries", text: "All countries",
|
||||
on: "All countries is on: this company's big boards are read across the agents' wide "
|
||||
+ "reach (Europe), not only the agents' places. The default is the agents' places. "
|
||||
+ "Boards under 300 roles are read whole either way. Turning it off asks nothing "
|
||||
+ "first: no role closes until the next pull reads the board again.",
|
||||
off: "All countries: read this company's big boards across the agents' wide reach "
|
||||
+ "(Europe) instead of the agents' places, the default. Boards under 300 roles are "
|
||||
+ "read whole already. Turning it on queues a pull.",
|
||||
said: (on) => (on ? "all countries in the agents' wide reach" : "the agents' places") },
|
||||
on: "All countries is on: this company's roles are fetched and kept from the whole "
|
||||
+ "region (Europe), not only the agents' places, for every agent. The region still "
|
||||
+ "holds. Turning it off puts the agents' places back and rescores.",
|
||||
off: "All countries: fetch and keep this company's roles from the whole region "
|
||||
+ "(Europe) instead of only the agents' places, for every agent. Turning it on "
|
||||
+ "rescores.",
|
||||
said: (on) => (on ? "all countries in the region" : "the agents' places") },
|
||||
{ value: "roles", field: "all_roles", path: "all-roles", text: "All roles",
|
||||
on: "All roles is on: this company's boards are read with no role-type narrowing, "
|
||||
+ "none of the agents' fetch terms. The default follows the terms, which only apply "
|
||||
+ "with All countries or on a host that cannot ask for each country. Turning it off "
|
||||
+ "asks nothing first.",
|
||||
off: "All roles: no role-type narrowing for this company, none of the agents' fetch "
|
||||
+ "terms, the default, nor later role filters. The terms only apply with All "
|
||||
+ "countries or on a host that cannot ask for each country, so on its own this "
|
||||
+ "changes nothing today. Turning it on queues a pull.",
|
||||
said: (on) => (on ? "every role type" : "the agents' terms") },
|
||||
on: "All roles is on: this company's roles are fetched with no fetch terms and kept "
|
||||
+ "whatever their title, for every agent. Turning it off puts the agents' fetch "
|
||||
+ "terms and titles to leave out back and rescores.",
|
||||
off: "All roles: fetch this company's roles with no fetch terms and no titles to "
|
||||
+ "leave out, for every agent. Turning it on rescores.",
|
||||
said: (on) => (on ? "every role type" : "the agents' fetch terms and titles") },
|
||||
];
|
||||
|
||||
function overridesControl(companyKey, company, onChange) {
|
||||
@@ -258,8 +254,8 @@
|
||||
company.all_roles = Boolean(updated.all_roles);
|
||||
}
|
||||
window.toast.info(on
|
||||
? `${updated.name}: ${o.said(true)}. Reading now, or with the pull right after.`
|
||||
: `${updated.name}: back to ${o.said(false)} from the next pull.`);
|
||||
? `${updated.name}: ${o.said(true)}. Rescoring now, and a pull reads the board right after.`
|
||||
: `${updated.name}: back to ${o.said(false)}. Rescoring now, and the next pull reads the board anew.`);
|
||||
if (onChange) await onChange(updated);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user