From c99e91f5b9f352f383e2a332311e5fd064d04b03 Mon Sep 17 00:00:00 2001 From: Wolf Date: Wed, 30 Sep 2026 15:23:04 +0200 Subject: [PATCH] =?UTF-8?q?Show=20the=20remote=20area=20on=20the=20Roles?= =?UTF-8?q?=20badge=20and=20offer=20Remote=20=C2=B7=20=20suggestion?= =?UTF-8?q?s=20on=20the=20Place=20rail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- app/static/roles.js | 9 +++++---- app/templates/roles.html | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/static/roles.js b/app/static/roles.js index 8c597a5..d1a0b50 100644 --- a/app/static/roles.js +++ b/app/static/roles.js @@ -85,7 +85,7 @@ "use strict"; const { api, esc, debounce, safeUrl, companies, loadCompanies, affinityControl, overridesControl, - judgeButtons, loadTracked, chipInput } = window; + judgeButtons, loadTracked, chipInput, remoteHelpers } = window; const $ = (sel, root = document) => root.querySelector(sel); // Below this the rail is over the feed rather than beside it, and the reader @@ -128,8 +128,9 @@ }; // The place suggestion's kind, as its hint says it: a `place:` token is a - // town (`places.suggest`). - const PLACE_KINDS = { country: "country", region: "region", place: "town" }; + // town, a `remote:` token the remote roles a person there can take, its + // count the roles it would find (`places.suggest`). + const PLACE_KINDS = { country: "country", region: "region", place: "town", remote: "remote" }; // Everything `clearFilters` has to put back, in one place, so a new filter // added here cannot be forgotten there. `company` and `place` are the @@ -889,7 +890,7 @@ /** Closed, pay, remote, function and seniority, as the row and the reader both show them. */ function badges(role) { - const words = [role.remote, role.function, role.seniority].filter(Boolean); + const words = [remoteHelpers.remoteBadge(role), role.function, role.seniority].filter(Boolean); const pay = payBadge(role); return (role.closed_at ? `closed` : "") + (pay ? `${esc(pay)}` : "") diff --git a/app/templates/roles.html b/app/templates/roles.html index 1e191d0..39ff2ae 100644 --- a/app/templates/roles.html +++ b/app/templates/roles.html @@ -166,6 +166,7 @@ applies all the same, and chips.css only adds to app.css. #} + {% endblock %}