Merge branch 'worktree-agent-a8ed2a864305c4381'
# Conflicts: # app/web/api.py
This commit is contained in:
commit
fe83330c82
8 files changed
+418
-319
No files matched your search
@@ -5,26 +5,60 @@
|
||||
<h1>Settings</h1>
|
||||
{% include "settings/_tabs.html" %}
|
||||
|
||||
<p class="lede">Every company roledesk has seen, and how many of its roles are open. <strong>M</strong>ute keeps its roles out of the list, <strong>L</strong>ike lifts them in Best match, and <strong>F</strong>avourite puts them at the top.</p>
|
||||
<p class="lede">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, and favourite or like lifts one instead, in Best match.</p>
|
||||
|
||||
<form id="board-form" class="agent-form source-form" autocomplete="off">
|
||||
<h2>Follow a company</h2>
|
||||
<div class="form-row">
|
||||
<label>Host
|
||||
<select id="b-host">
|
||||
<option value="greenhouse">Greenhouse</option>
|
||||
<option value="lever">Lever</option>
|
||||
<option value="ashby">Ashby</option>
|
||||
<option value="workable">Workable</option>
|
||||
<option value="smartrecruiters">SmartRecruiters</option>
|
||||
<option value="recruitee">Recruitee</option>
|
||||
<option value="personio">Personio</option>
|
||||
</select></label>
|
||||
<label>Slug
|
||||
<input type="text" id="b-slug" required placeholder="acme" spellcheck="false">
|
||||
<span class="hint">The part after the host in the careers URL: boards.greenhouse.io/<strong>acme</strong>.</span></label>
|
||||
<label>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>
|
||||
|
||||
<form class="filters" autocomplete="off" onsubmit="return false">
|
||||
<input type="search" id="c-q" placeholder="Filter by name or board" aria-label="Filter companies">
|
||||
<select id="c-affinity" aria-label="Affinity">
|
||||
<option value="">Any affinity</option>
|
||||
<option value="2">Favourite</option>
|
||||
<option value="1">Like</option>
|
||||
<option value="0">Neutral</option>
|
||||
<option value="-1">Mute</option>
|
||||
<select id="c-filter" aria-label="Filter">
|
||||
<option value="">Any</option>
|
||||
<option value="favourite">Favourite</option>
|
||||
<option value="liked">Liked</option>
|
||||
<option value="hidden">Hidden</option>
|
||||
<option value="on">On</option>
|
||||
<option value="off">Off</option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
<p id="companies-count" class="count" role="status"></p>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr><th>Company</th><th>Board</th><th class="num">Open roles</th><th>Affinity</th></tr>
|
||||
</thead>
|
||||
<tbody id="companies-list"></tbody>
|
||||
</table>
|
||||
<div id="companies-list" class="crows"></div>
|
||||
|
||||
<details class="section prune">
|
||||
<summary>Switch off boards with no roles in a region</summary>
|
||||
<p class="lede">A board none of whose open roles is in the region is switched off; a board whose roles name no country is kept.</p>
|
||||
<form id="prune-form" class="agent-form source-form" autocomplete="off">
|
||||
<label>Region
|
||||
<input type="text" id="p-region" value="europe" spellcheck="false">
|
||||
<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></label>
|
||||
<div class="agent-actions">
|
||||
<button type="submit" class="secondary">Preview</button>
|
||||
<button type="button" id="p-apply" disabled>Switch off these boards</button>
|
||||
</div>
|
||||
<p id="prune-status" class="count" role="status"></p>
|
||||
<ul id="prune-list" class="sample"></ul>
|
||||
</form>
|
||||
</details>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
@@ -5,105 +5,48 @@
|
||||
<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>
|
||||
<p class="lede">Saved searches find roles at any company, on Jobindex or Adzuna. Switching one off closes its roles until you switch it back on.</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>Name <input type="text" id="s-name" required placeholder="Copenhagen backend"></label>
|
||||
</div>
|
||||
<label>Query
|
||||
<input type="text" id="s-q" required spellcheck="false">
|
||||
<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></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>Place <input type="text" id="s-where" placeholder="Berlin"></label>
|
||||
<label>Pages
|
||||
<input type="number" id="s-pages" min="1" max="10" value="10">
|
||||
<span class="hint">per pull, up to 10</span></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>
|
||||
|
||||
<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>
|
||||
<p id="searches-count" class="count" role="status"></p>
|
||||
<div id="searches-list" class="srows"></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
Reference in new issue
Block a user