Say All locations wherever the company switch is named
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6cad9713ac
commit
744d14160d
3 files changed
+24
-24
No files matched your search
+16
-16
@@ -16,7 +16,7 @@
|
||||
* Beside `api` on `window`, the few helpers more than one page script uses:
|
||||
* `count`, `cell`, `debounce`, `safeUrl`, and the company list with its
|
||||
* affinity control (`loadCompanies`, `companies`, `affinityControl`,
|
||||
* `setAffinity`) and the two fetch overrides beside it, All countries and
|
||||
* `setAffinity`) and the two fetch overrides beside it, All locations and
|
||||
* All roles (`overridesControl`). One
|
||||
* copy each, since two copies of a helper is one of them
|
||||
* being fixed.
|
||||
@@ -189,26 +189,26 @@
|
||||
/* 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). 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.
|
||||
has four parts, world, location, role exclusion and role fetch, and a
|
||||
company follows every agent's unless it is set to:
|
||||
- All locations: the location gate is skipped. The company's roles are
|
||||
fetched and kept from the whole world gate (Europe, say), not only the
|
||||
agents' locations, for every agent. The world gate itself still holds.
|
||||
- All roles: role exclusion and role fetch are skipped: no titles to
|
||||
leave out and no fetch terms.
|
||||
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 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: "countries", field: "all_countries", path: "all-countries", text: "All locations",
|
||||
on: "All locations is on: this company's roles are fetched and kept from the whole "
|
||||
+ "world gate (Europe, say), not only the agents' locations, for every agent. The "
|
||||
+ "world gate still holds. Turning it off puts the agents' locations back and rescores.",
|
||||
off: "All locations: fetch and keep this company's roles from the whole world gate "
|
||||
+ "(Europe, say) instead of only the agents' locations, for every agent. Turning it "
|
||||
+ "on rescores.",
|
||||
said: (on) => (on ? "all locations in the world gate" : "the agents' locations") },
|
||||
{ value: "roles", field: "all_roles", path: "all-roles", text: "All roles",
|
||||
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 "
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* joined with each company's board subscription — its id and whether it is
|
||||
* on — so nothing here fetches `/api/sources` as well. The affinity buttons
|
||||
* are `affinityControl`, the same ones the Roles tab and the read page draw,
|
||||
* and beside them `overridesControl`, the two fetch overrides All countries
|
||||
* and beside them `overridesControl`, the two fetch overrides All locations
|
||||
* and All roles, which are global and drawn with or without an agent.
|
||||
*
|
||||
* Liked and hidden are per search agent, so the `#c-agent` select above the
|
||||
@@ -25,10 +25,10 @@
|
||||
* from app/jobs/reach.py), so the row shows whether the company follows the
|
||||
* agents' filters or overrides them. Its editor has a second line that sets
|
||||
* the board's own reach: the agents', or its own countries and remote,
|
||||
* posted to `/api/sources/{id}/reach`. Fetching from the whole region (All
|
||||
* countries) and no fetch terms or titles to leave out (All roles) are the
|
||||
* posted to `/api/sources/{id}/reach`. Fetching from the whole world gate (All
|
||||
* locations) and no fetch terms or titles to leave out (All roles) are the
|
||||
* company's two overrides instead, and the board's own countries win over
|
||||
* All countries.
|
||||
* All locations.
|
||||
*
|
||||
* Beside that line stands the board's size, set when it was added and
|
||||
* changed only by a Recheck ("999 roles · checked 30 Sep"). Recheck, beside
|
||||
@@ -326,8 +326,8 @@
|
||||
note.className = "muted small";
|
||||
note.textContent = [
|
||||
company.all_countries
|
||||
? "All countries is on: roles are fetched and kept from the whole region, and countries set here win over it."
|
||||
: "All countries, beside the stars, fetches and keeps this company's roles from the whole region (Europe), not only the agents' places.",
|
||||
? "All locations is on: roles are fetched and kept from the whole world gate, and countries set here win over it."
|
||||
: "All locations, beside the stars, fetches and keeps this company's roles from the whole world gate (Europe, say), not only the agents' locations.",
|
||||
company.all_roles
|
||||
? "All roles is on: no fetch terms and no titles to leave out."
|
||||
: "All roles drops the fetch terms and the titles to leave out.",
|
||||
|
||||
Reference in new issue
Block a user