From 744d14160d2003fce7d7a238929ebdb8a9fcbb75 Mon Sep 17 00:00:00 2001 From: Wolf Date: Sun, 4 Oct 2026 21:33:31 +0200 Subject: [PATCH] Say All locations wherever the company switch is named Co-Authored-By: Claude Sonnet 5.5 --- app/static/app.js | 32 ++++++++++++++--------------- app/static/companies.js | 12 +++++------ app/templates/settings/sources.html | 4 ++-- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/static/app.js b/app/static/app.js index d91b468..b23bde7 100644 --- a/app/static/app.js +++ b/app/static/app.js @@ -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 " diff --git a/app/static/companies.js b/app/static/companies.js index 041cd9d..4e85538 100644 --- a/app/static/companies.js +++ b/app/static/companies.js @@ -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.", diff --git a/app/templates/settings/sources.html b/app/templates/settings/sources.html index 535f121..f61eb73 100644 --- a/app/templates/settings/sources.html +++ b/app/templates/settings/sources.html @@ -104,7 +104,7 @@

Company boards

-

Every company roledesk has seen, and how many of its roles are open. Switching a board off stops reading it and closes its roles; hiding a company keeps reading it but leaves its roles out of the list and unscored. Like or favourite raises a company's roles a little in the cut and in the feed order, in each search agent's own ranking (a liked company about 0.05, a favourite about 0.1), and passes nothing the fetch gate rejects. All countries and All roles are for every agent: the first skips the place part of the fetch gate, the second the fetch terms and the titles to leave out.

+

Every company roledesk has seen, and how many of its roles are open. Switching a board off stops reading it and closes its roles; hiding a company keeps reading it but leaves its roles out of the list and unscored. Like or favourite raises a company's roles a little in the cut and in the feed order, in each search agent's own ranking (a liked company about 0.05, a favourite about 0.1), and passes nothing the fetch gate rejects. All locations and All roles are for every agent: the first skips the location gate and keeps the world gate, the second skips the role exclusion and the fetch terms.

Follow a company

@@ -132,7 +132,7 @@ - +