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";
|
"use strict";
|
||||||
|
|
||||||
const { api, esc, debounce, safeUrl, companies, loadCompanies, affinityControl, overridesControl,
|
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);
|
const $ = (sel, root = document) => root.querySelector(sel);
|
||||||
|
|
||||||
// Below this the rail is over the feed rather than beside it, and the reader
|
// 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
|
// The place suggestion's kind, as its hint says it: a `place:` token is a
|
||||||
// town (`places.suggest`).
|
// town, a `remote:` token the remote roles a person there can take, its
|
||||||
const PLACE_KINDS = { country: "country", region: "region", place: "town" };
|
// 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
|
// Everything `clearFilters` has to put back, in one place, so a new filter
|
||||||
// added here cannot be forgotten there. `company` and `place` are the
|
// 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
|
/** Closed, pay, remote, function and seniority, as the row and the reader
|
||||||
both show them. */
|
both show them. */
|
||||||
function badges(role) {
|
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);
|
const pay = payBadge(role);
|
||||||
return (role.closed_at ? `<span class="badge closed">closed</span>` : "")
|
return (role.closed_at ? `<span class="badge closed">closed</span>` : "")
|
||||||
+ (pay ? `<span class="badge">${esc(pay)}</span>` : "")
|
+ (pay ? `<span class="badge">${esc(pay)}</span>` : "")
|
||||||
|
|||||||
@@ -166,6 +166,7 @@
|
|||||||
applies all the same, and chips.css only adds to app.css. #}
|
applies all the same, and chips.css only adds to app.css. #}
|
||||||
<link rel="stylesheet" href="{{ asset('chips.css') }}">
|
<link rel="stylesheet" href="{{ asset('chips.css') }}">
|
||||||
<script src="{{ asset('chips.js') }}"></script>
|
<script src="{{ asset('chips.js') }}"></script>
|
||||||
|
<script src="{{ asset('remote.js') }}"></script>
|
||||||
<script src="{{ asset('judge.js') }}"></script>
|
<script src="{{ asset('judge.js') }}"></script>
|
||||||
<script src="{{ asset('roles.js') }}"></script>
|
<script src="{{ asset('roles.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user