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>
40 lines
2.1 KiB
HTML
40 lines
2.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Ranking — roledesk{% endblock %}
|
|
|
|
{# One ranking in the UI, whatever the `agents` table holds: `static/ranking.js`
|
|
edits the first enabled agent and makes one on the first save if there is
|
|
none. No list, no New, no Delete. #}
|
|
{% block content %}
|
|
<h1>Settings</h1>
|
|
{% include "settings/_tabs.html" %}
|
|
|
|
<p class="lede">Describe the role you want. Best match on the Roles tab puts the postings closest to this first, and saving reorders them all.</p>
|
|
|
|
<form id="ranking-form" class="agent-form" autocomplete="off">
|
|
<p id="ranking-others" class="count" hidden></p>
|
|
<label>What you are looking for
|
|
<textarea id="a-intent" rows="7" placeholder="Senior backend engineer. Python and Go services, PostgreSQL, APIs on Kubernetes. Wants ownership of production systems in a product company."></textarea>
|
|
<span class="hint">A paragraph of your CV, or the role in your own words: the work, the stack, the level.</span></label>
|
|
<fieldset class="weights">
|
|
<legend>How much each counts</legend>
|
|
<label>Fit to the text <input type="number" id="a-fit" min="0" step="0.05" value="0.6"></label>
|
|
<label>Newness <input type="number" id="a-recency" min="0" step="0.05" value="0.2"></label>
|
|
<label>Companies you like <input type="number" id="a-affinity" min="0" step="0.05" value="0.2"></label>
|
|
</fieldset>
|
|
<details class="advanced">
|
|
<summary>Advanced</summary>
|
|
<label>Gates
|
|
<textarea id="a-gates" class="code" rows="6" spellcheck="false">[]</textarea>
|
|
<span class="hint">Rules a role must meet (require) or that lift it (prefer), as JSON: <code>[{"field": "country", "values": ["DK"], "mode": "require"}, {"field": "remote", "values": ["remote"], "mode": "prefer", "weight": 0.05}]</code>. Fields: place, country, remote, seniority, function, salary_min, currency, permit, languages, company. EU is a role open anywhere in Europe.</span></label>
|
|
</details>
|
|
<div class="agent-actions">
|
|
<button type="submit">Save and score</button>
|
|
</div>
|
|
<p id="ranking-status" class="count" role="status"></p>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="{{ asset('ranking.js') }}"></script>
|
|
{% endblock %}
|