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>
63 lines
3.7 KiB
HTML
63 lines
3.7 KiB
HTML
{# The frame every page is in. The top bar is `TABS` from app/web/pages.py
|
|
plus the cog, and the cog's sub-tabs are `SETTINGS` there: adding a page is
|
|
one entry in one of those lists, never a link here. #}
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<title>{% block title %}roledesk{% endblock %}</title>
|
|
{# Kept on the home screen rather than in a tab, as newsdesk is: `display:
|
|
standalone` in the manifest drops the browser's chrome, which is worth a
|
|
row of roles on a phone. `manifest.json` and not `.webmanifest`, because
|
|
StaticFiles guesses the content type from the extension and not every
|
|
machine knows the second one. Two `theme-color`s so the status bar is the
|
|
colour of the header right under it. No service worker: the app is no use
|
|
without the server. #}
|
|
<link rel="manifest" href="/static/manifest.json">
|
|
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
|
<link rel="icon" href="/static/icon-192.png" type="image/png" sizes="192x192">
|
|
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
|
|
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
|
|
<meta name="theme-color" content="#1b2126" media="(prefers-color-scheme: dark)">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
{# iOS reads neither the manifest nor the line above: standalone mode, the
|
|
home screen label and the status bar are still set from its own
|
|
`apple-` metas. #}
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-title" content="roledesk">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
<link rel="stylesheet" href="{{ asset('app.css') }}">
|
|
</head>
|
|
<body>
|
|
<header class="top">
|
|
<a class="brand" href="/">role<span>desk</span></a>
|
|
<nav>
|
|
{% for tab in TABS %}
|
|
<a href="{{ tab.path }}"
|
|
{% if request.url.path == tab.path %}class="active" aria-current="page"{% endif %}>{{ tab.label }}</a>
|
|
{% endfor %}
|
|
{# health's cog: an icon because it is not a place you go to often, and a
|
|
word would take a third of the bar on a phone. #}
|
|
<a href="/settings" class="icon{% if request.url.path.startswith('/settings') %} active{% endif %}"
|
|
title="Settings" aria-label="Settings"><svg viewBox="0 0 24 24" width="17" height="17"
|
|
aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
|
stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
{# toasts first, and the order is load-bearing: it owns `window.toast`, which
|
|
app.js calls on a failed fetch and live.js feeds server notices into, and
|
|
`window.esc`, which every page script below builds its HTML with. app.js
|
|
next, since every page script takes `api` and the shared helpers from it. #}
|
|
<script src="{{ asset('toasts.js') }}"></script>
|
|
<script src="{{ asset('app.js') }}"></script>
|
|
<script src="{{ asset('live.js') }}"></script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|