The top bar is Roles and Applications plus health's cog. Behind the cog,
/settings/{ranking,searches,companies,pulls,messages,account} share one row
of sub-tabs, an underlined row on a desktop and pills on a phone. The old
paths answer 301 with their query string.
Ranking edits the first enabled agent, or creates one, with the intent,
the weights and the gates under Advanced. The order menu on Roles reads
Newest and Best match with one enabled agent, and names them with several.
config.yaml keeps the Copenhagen starter; the other two are commented
examples in config.example.yaml.
roles.js is split into roles.js, applications.js, ranking.js and
companies.js; count, cell, debounce, the company list and the affinity
control live once in app.js. app.css gets the phone frame after health and
newsdesk: one-row bar, edge-to-edge panels, 44px targets and 16px fields on
a coarse pointer, hover only where there is one, safe areas. The app is
installable from a manifest and roledesk-coloured icons. Every lede touched
is written for the person using the app.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
112 lines
5.1 KiB
HTML
112 lines
5.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Searches — roledesk{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Settings</h1>
|
|
{% include "settings/_tabs.html" %}
|
|
|
|
{# Still the old Sources page whole, company boards and prune included, until
|
|
the Companies page takes those over. #}
|
|
<div class="row-between">
|
|
<p class="lede">Where roles come from: saved searches find them at any company, and a followed company's board lists every role it has. Switching one off closes its roles until you switch it back on.</p>
|
|
<button type="button" id="pull-now" class="secondary">Pull now</button>
|
|
</div>
|
|
<p id="pull-status" class="count" role="status"></p>
|
|
|
|
<section class="section">
|
|
<h2>Searches</h2>
|
|
<p id="searches-count" class="count" role="status"></p>
|
|
<table class="list">
|
|
<thead>
|
|
<tr><th>Search</th><th>Query</th><th class="num">Open roles</th><th>Countries</th><th>On</th><th></th></tr>
|
|
</thead>
|
|
<tbody id="searches-list"></tbody>
|
|
</table>
|
|
|
|
<form id="search-form" class="agent-form source-form" autocomplete="off">
|
|
<h2 id="search-form-title">New search</h2>
|
|
<div class="form-row">
|
|
<label>Board
|
|
<select id="s-provider">
|
|
<option value="jobindex">Jobindex (Denmark)</option>
|
|
<option value="adzuna">Adzuna (UK and EU)</option>
|
|
</select></label>
|
|
<label class="grow">Name <input type="text" id="s-name" required placeholder="Copenhagen backend"></label>
|
|
</div>
|
|
<label>Query
|
|
<span class="hint" data-provider="jobindex">Jobindex syntax: words are OR, <code>"a b"</code> is a phrase, <code>+word</code> is required.</span>
|
|
<span class="hint" data-provider="adzuna" hidden>Every word must appear.</span>
|
|
<input type="text" id="s-q" required spellcheck="false"></label>
|
|
<div class="form-row">
|
|
<label data-provider="jobindex">Area
|
|
<select id="s-area">
|
|
{% for value, label in areas %}<option value="{{ value }}"{% if value == 1 %} selected{% endif %}>{{ label }}</option>{% endfor %}
|
|
</select></label>
|
|
<label data-provider="adzuna" hidden>Country
|
|
<select id="s-country">
|
|
{% for value, label in countries %}<option value="{{ value }}">{{ label }}</option>{% endfor %}
|
|
</select></label>
|
|
<label data-provider="adzuna" hidden class="grow">Place <input type="text" id="s-where" placeholder="Berlin"></label>
|
|
<label>Pages <span class="hint">per pull, up to 10</span>
|
|
<input type="number" id="s-pages" min="1" max="10" value="10"></label>
|
|
</div>
|
|
<p id="adzuna-key" class="note" hidden>No Adzuna key is set. Get a free one at developer.adzuna.com and set <code>ADZUNA_APP_ID</code> and <code>ADZUNA_APP_KEY</code> before starting the app.</p>
|
|
<div class="agent-actions">
|
|
<button type="button" id="s-try" class="secondary">Try it</button>
|
|
<button type="submit">Save</button>
|
|
<button type="button" id="s-new" class="secondary">New</button>
|
|
</div>
|
|
<p id="search-status" class="count" role="status"></p>
|
|
<ol id="search-sample" class="sample"></ol>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<h2>Company boards</h2>
|
|
<form class="filters" autocomplete="off" onsubmit="return false">
|
|
<input type="search" id="b-q" placeholder="Filter by company or board" aria-label="Filter boards">
|
|
<select id="b-on" aria-label="On or off">
|
|
<option value="">On and off</option>
|
|
<option value="on">On</option>
|
|
<option value="off">Off</option>
|
|
</select>
|
|
</form>
|
|
<p id="boards-count" class="count" role="status"></p>
|
|
<table class="list">
|
|
<thead>
|
|
<tr><th>Company</th><th>Board</th><th class="num">Open roles</th><th>Countries</th><th>On</th></tr>
|
|
</thead>
|
|
<tbody id="boards-list"></tbody>
|
|
</table>
|
|
|
|
<form id="board-form" class="agent-form source-form" autocomplete="off">
|
|
<h2>Follow a company</h2>
|
|
<div class="form-row">
|
|
<label class="grow">Board <span class="hint">host:slug, from its careers page URL: greenhouse, lever, ashby, workable, smartrecruiters, recruitee, personio</span>
|
|
<input type="text" id="b-board" required placeholder="ashby:acme" spellcheck="false"></label>
|
|
<label class="grow">Company <input type="text" id="b-name" required placeholder="Acme"></label>
|
|
</div>
|
|
<div class="agent-actions"><button type="submit">Follow</button></div>
|
|
<p id="board-status" class="count" role="status"></p>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<h2>Prune boards by region</h2>
|
|
<form id="prune-form" class="agent-form source-form" autocomplete="off">
|
|
<label>Region <span class="hint"><code>europe</code>, or country codes such as <code>DK,SE,NO,EU</code>. EU is a role open anywhere in Europe.</span>
|
|
<input type="text" id="p-region" value="europe" spellcheck="false"></label>
|
|
<div class="agent-actions">
|
|
<button type="submit" class="secondary">Preview</button>
|
|
<button type="button" id="p-apply" disabled>Switch them off</button>
|
|
</div>
|
|
<p id="prune-status" class="count" role="status"></p>
|
|
<ul id="prune-list" class="sample"></ul>
|
|
</form>
|
|
</section>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="{{ asset('sources.js') }}"></script>
|
|
{% endblock %}
|