Show the remote area on the Roles badge and offer Remote · <place> suggestions on the Place rail
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
593c351037
commit
c99e91f5b9
2 files changed
+6
-4
No files matched your search
+5
-4
@@ -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 ? `<span class="badge closed">closed</span>` : "")
|
||||
+ (pay ? `<span class="badge">${esc(pay)}</span>` : "")
|
||||
|
||||
Reference in new issue
Block a user