counterparts 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/docs/module-map.md +2 -0
- package/package.json +2 -1
- package/src/adapters/claude-code/CONTRACT.md +2 -1
- package/src/adapters/claude-code/NOTES.md +90 -2
- package/src/adapters/claude-code/bin/hook.ts +17 -2
- package/src/adapters/claude-code/bin/runner.ts +4 -1
- package/src/adapters/claude-code/config.ts +23 -0
- package/src/adapters/claude-code/doctor.ts +148 -26
- package/src/adapters/claude-code/hooks.ts +37 -12
- package/src/adapters/claude-code/index.ts +2 -0
- package/src/adapters/claude-code/standdown.ts +12 -1
- package/src/adapters/claude-code/transcript.ts +79 -6
- package/src/adapters/cli/INTERFACE-GAPS.md +4 -0
- package/src/adapters/cli/commands.ts +209 -61
- package/src/adapters/cli/export.ts +27 -3
- package/src/adapters/cli/help.ts +22 -8
- package/src/adapters/cli/install.ts +3 -5
- package/src/adapters/cli/mechanisms.ts +295 -0
- package/src/adapters/cli/repair-dates.ts +3 -1
- package/src/adapters/cli/snapshot.ts +4 -27
- package/src/adapters/dashboard/CONTRACT.md +13 -9
- package/src/adapters/dashboard/INTERFACE-GAPS.md +4 -0
- package/src/adapters/dashboard/NOTES.md +3 -2
- package/src/adapters/dashboard/activity.ts +2 -1
- package/src/adapters/dashboard/bin/dashboard.ts +18 -3
- package/src/adapters/dashboard/upgrade.ts +23 -0
- package/src/adapters/dashboard/web/README.md +153 -0
- package/src/adapters/dashboard/web/actions.ts +631 -0
- package/src/adapters/dashboard/web/app.html +40 -1703
- package/src/adapters/dashboard/web/app.js +55 -0
- package/src/adapters/dashboard/web/mechanisms/association/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/association/panel.js +17 -0
- package/src/adapters/dashboard/web/mechanisms/consolidation/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/consolidation/panel.js +23 -0
- package/src/adapters/dashboard/web/mechanisms/decay/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/decay/panel.js +45 -0
- package/src/adapters/dashboard/web/mechanisms/emotional/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/episodic-semantic/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/index.js +60 -0
- package/src/adapters/dashboard/web/mechanisms/interference/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/picture.js +28 -0
- package/src/adapters/dashboard/web/mechanisms/prospective/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/reconsolidation/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/reconsolidation/panel.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/regions.js +30 -0
- package/src/adapters/dashboard/web/mechanisms/retrieval/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/retrieval/panel.js +20 -0
- package/src/adapters/dashboard/web/mechanisms/salience/index.js +15 -0
- package/src/adapters/dashboard/web/mechanisms/salience/panel.js +14 -0
- package/src/adapters/dashboard/web/mechanisms/schema/index.js +15 -0
- package/src/adapters/dashboard/web/narrate.ts +10 -10
- package/src/adapters/dashboard/web/pages/flow/flow.css +38 -0
- package/src/adapters/dashboard/web/pages/flow/index.js +117 -0
- package/src/adapters/dashboard/web/pages/flow/sections/blind.js +12 -0
- package/src/adapters/dashboard/web/pages/flow/sections/detail.js +45 -0
- package/src/adapters/dashboard/web/pages/flow/sections/diagram.js +291 -0
- package/src/adapters/dashboard/web/pages/flow/sections/feed.js +11 -0
- package/src/adapters/dashboard/web/pages/flow/sections/fired.js +41 -0
- package/src/adapters/dashboard/web/pages/flow/sections/heatmap.js +25 -0
- package/src/adapters/dashboard/web/pages/flow/sections/records.js +24 -0
- package/src/adapters/dashboard/web/pages/flow/sections/symmetry.js +17 -0
- package/src/adapters/dashboard/web/pages/flow/state.js +3 -0
- package/src/adapters/dashboard/web/pages/health/health.css +93 -0
- package/src/adapters/dashboard/web/pages/health/index.js +41 -0
- package/src/adapters/dashboard/web/pages/health/sections/archive.js +84 -0
- package/src/adapters/dashboard/web/pages/health/sections/checks.js +172 -0
- package/src/adapters/dashboard/web/pages/health/sections/cycle.js +37 -0
- package/src/adapters/dashboard/web/pages/health/sections/verify.js +54 -0
- package/src/adapters/dashboard/web/pages/home/brain.js +375 -0
- package/src/adapters/dashboard/web/pages/home/home.css +134 -0
- package/src/adapters/dashboard/web/pages/home/index.js +84 -0
- package/src/adapters/dashboard/web/pages/home/sections/explorer.js +206 -0
- package/src/adapters/dashboard/web/pages/home/sections/hero.js +22 -0
- package/src/adapters/dashboard/web/pages/home/sections/live-activity.js +25 -0
- package/src/adapters/dashboard/web/pages/home/sections/recent-chapters.js +13 -0
- package/src/adapters/dashboard/web/pages/home/sections/tiles.js +52 -0
- package/src/adapters/dashboard/web/pages/memories/index.js +75 -0
- package/src/adapters/dashboard/web/pages/memories/memories.css +143 -0
- package/src/adapters/dashboard/web/pages/memories/sections/constellation.js +178 -0
- package/src/adapters/dashboard/web/pages/memories/sections/kinds.js +42 -0
- package/src/adapters/dashboard/web/pages/memories/sections/list.js +114 -0
- package/src/adapters/dashboard/web/pages/memories/sections/search.js +102 -0
- package/src/adapters/dashboard/web/pages/memories/sections/tools.js +155 -0
- package/src/adapters/dashboard/web/pages/memories/state.js +22 -0
- package/src/adapters/dashboard/web/pages/self/diff.js +79 -0
- package/src/adapters/dashboard/web/pages/self/index.js +43 -0
- package/src/adapters/dashboard/web/pages/self/markdown.js +61 -0
- package/src/adapters/dashboard/web/pages/self/sections/journal.js +32 -0
- package/src/adapters/dashboard/web/pages/self/sections/page.js +149 -0
- package/src/adapters/dashboard/web/pages/self/sections/settling.js +150 -0
- package/src/adapters/dashboard/web/pages/self/sections/stories.js +47 -0
- package/src/adapters/dashboard/web/pages/self/sections/wake.js +74 -0
- package/src/adapters/dashboard/web/pages/self/self.css +182 -0
- package/src/adapters/dashboard/web/server.ts +305 -28
- package/src/adapters/dashboard/web/shared/absence.js +14 -0
- package/src/adapters/dashboard/web/shared/actions.js +48 -0
- package/src/adapters/dashboard/web/shared/api.js +17 -0
- package/src/adapters/dashboard/web/shared/base.css +34 -0
- package/src/adapters/dashboard/web/shared/canvas.js +68 -0
- package/src/adapters/dashboard/web/shared/colors.js +6 -0
- package/src/adapters/dashboard/web/shared/dom.js +4 -0
- package/src/adapters/dashboard/web/shared/event-modal.js +25 -0
- package/src/adapters/dashboard/web/shared/fonts/OFL-courier-prime.txt +93 -0
- package/src/adapters/dashboard/web/shared/fonts/OFL-outfit.txt +93 -0
- package/src/adapters/dashboard/web/shared/fonts/courier-prime-latin-400.woff2 +0 -0
- package/src/adapters/dashboard/web/shared/fonts/courier-prime-latin-700.woff2 +0 -0
- package/src/adapters/dashboard/web/shared/fonts/outfit-latin-wght.woff2 +0 -0
- package/src/adapters/dashboard/web/shared/format.js +31 -0
- package/src/adapters/dashboard/web/shared/layout.css +32 -0
- package/src/adapters/dashboard/web/shared/memory-modal.js +124 -0
- package/src/adapters/dashboard/web/shared/modal.css +24 -0
- package/src/adapters/dashboard/web/shared/modal.js +22 -0
- package/src/adapters/dashboard/web/shared/state.js +12 -0
- package/src/adapters/dashboard/web/shared/tip.css +4 -0
- package/src/adapters/dashboard/web/shared/tip.js +12 -0
- package/src/adapters/dashboard/web/shared/tokens.css +50 -0
- package/src/adapters/dashboard/web/shared/type.css +52 -0
- package/src/adapters/dashboard/web/shared/utilities.css +5 -0
- package/src/adapters/dashboard/web/shared/vendor/MIT-three.txt +21 -0
- package/src/adapters/dashboard/web/shared/vendor/three.module.min.js +6 -0
- package/src/adapters/dashboard/web/shared/widgets/bar.css +9 -0
- package/src/adapters/dashboard/web/shared/widgets/card.css +6 -0
- package/src/adapters/dashboard/web/shared/widgets/chapters.js +15 -0
- package/src/adapters/dashboard/web/shared/widgets/chart.css +4 -0
- package/src/adapters/dashboard/web/shared/widgets/confirm.css +31 -0
- package/src/adapters/dashboard/web/shared/widgets/confirm.js +52 -0
- package/src/adapters/dashboard/web/shared/widgets/feed.css +13 -0
- package/src/adapters/dashboard/web/shared/widgets/feed.js +41 -0
- package/src/adapters/dashboard/web/shared/widgets/light.css +4 -0
- package/src/adapters/dashboard/web/shared/widgets/light.js +15 -0
- package/src/adapters/dashboard/web/shared/widgets/rows.css +7 -0
- package/src/adapters/dashboard/web/shared/widgets/table.css +17 -0
- package/src/adapters/dashboard/web/shared/widgets/tiles.css +14 -0
- package/src/adapters/dashboard/web/shell/pages.js +15 -0
- package/src/adapters/dashboard/web/shell/pulse.js +86 -0
- package/src/adapters/dashboard/web/shell/tabs.js +49 -0
- package/src/adapters/dashboard/web/static.ts +76 -0
- package/src/adapters/dashboard/web/views/activity.ts +80 -0
- package/src/adapters/dashboard/web/views/archive-words.ts +57 -0
- package/src/adapters/dashboard/web/views/flow-view.ts +217 -0
- package/src/adapters/dashboard/web/views/health.ts +328 -0
- package/src/adapters/dashboard/web/views/mechanism-panel.ts +370 -0
- package/src/adapters/dashboard/web/views/mechanisms.ts +302 -0
- package/src/adapters/dashboard/web/views/memories.ts +342 -0
- package/src/adapters/dashboard/web/views/memory.ts +210 -0
- package/src/adapters/dashboard/web/views/meta.ts +64 -0
- package/src/adapters/dashboard/web/views/mind.ts +729 -0
- package/src/adapters/dashboard/web/views/overview.ts +282 -0
- package/src/adapters/dashboard/web/views/pulse.ts +19 -0
- package/src/adapters/dashboard/web/views/rows.ts +207 -0
- package/src/adapters/dashboard/web/views/search.ts +62 -0
- package/src/adapters/dashboard/web/views/shared.ts +161 -0
- package/src/adapters/dashboard/web/views.ts +34 -1724
- package/src/adapters/fired.ts +138 -31
- package/src/adapters/mcp/INTERFACE-GAPS.md +4 -1
- package/src/adapters/mcp/NOTES.md +43 -0
- package/src/adapters/mcp/bin/serve.ts +9 -1
- package/src/adapters/mcp/index.ts +7 -0
- package/src/adapters/mcp/server.ts +167 -6
- package/src/adapters/mcp/tools.ts +42 -0
- package/src/adapters/mcp/write-up.ts +1 -1
- package/src/adapters/sessions.ts +18 -1
- package/src/adapters/snapshots.ts +71 -39
- package/src/core/associate/INTERFACE-GAPS.md +8 -0
- package/src/core/counterpart.ts +86 -7
- package/src/core/encode/INTERFACE-GAPS.md +12 -0
- package/src/core/feelings-wheel.ts +218 -0
- package/src/core/handoff/INTERFACE-GAPS.md +2 -0
- package/src/core/mint.ts +14 -2
- package/src/core/prospective/INTERFACE-GAPS.md +14 -0
- package/src/core/prospective/windows.ts +10 -48
- package/src/core/recall/INTERFACE-GAPS.md +6 -0
- package/src/core/remember/INTERFACE-GAPS.md +10 -0
- package/src/core/schemas/INTERFACE-GAPS.md +8 -0
- package/src/core/schemas/NOTES.md +118 -1
- package/src/core/schemas/index.ts +330 -40
- package/src/core/schemas/tunables.ts +23 -0
- package/src/core/schemas/types.ts +64 -1
- package/src/core/self/CONTRACT.md +3 -0
- package/src/core/self/INTERFACE-GAPS.md +10 -0
- package/src/core/self/NOTES.md +33 -2
- package/src/core/self/calendar.ts +7 -78
- package/src/core/self/episodes.ts +52 -12
- package/src/core/self/index.ts +40 -12
- package/src/core/self/writer.ts +22 -22
- package/src/core/sleep/NOTES.md +36 -0
- package/src/core/sleep/cycle.ts +38 -3
- package/src/core/sleep/fade.ts +76 -0
- package/src/core/sleep/index.ts +4 -1
- package/src/core/sleep/prune.ts +8 -1
- package/src/core/sleep/tunables.ts +5 -0
- package/src/core/sleep/types.ts +24 -0
- package/src/core/store/CONTRACT.md +36 -7
- package/src/core/store/NOTES.md +197 -0
- package/src/core/store/errors.ts +22 -0
- package/src/core/store/feelings.ts +182 -0
- package/src/core/store/index.ts +339 -45
- package/src/core/store/operational.ts +240 -22
- package/src/core/store/owner-op-seam.ts +13 -3
- package/src/core/store/paths.ts +15 -1
- package/src/core/store/pre-migration.ts +258 -0
- package/src/core/store/prose.ts +8 -1
- package/src/core/store/render.ts +3 -0
- package/src/core/time.ts +374 -0
- package/src/core/types.ts +13 -0
- package/src/adapters/dashboard/web/brain.html +0 -463
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/* The mechanism panel, under the hero — the site's Explorer, with this store in
|
|
2
|
+
it. Eleven pills in the site's four families, each with its light (from
|
|
3
|
+
`/api/mechanisms`) and, where the site marks it so, an "in dev" tag. Picking
|
|
4
|
+
one (here, or on the brain) shows it INLINE: what it is, what the store says
|
|
5
|
+
it did, a small picture of this store's own data where one exists
|
|
6
|
+
(`mechanisms/<id>/panel.js`, fed by `/api/mechanism?id=`), what is built and
|
|
7
|
+
what is still in development, and its last few firings.
|
|
8
|
+
|
|
9
|
+
The pick survives the page's four-second refresh: it lives here, in module
|
|
10
|
+
scope, and a refresh repaints the lights and the picked panel's data under it. */
|
|
11
|
+
import { FAMILIES, MECHANISMS, PANELS, guideUrl } from "../../../mechanisms/index.js";
|
|
12
|
+
import { REGIONS, regionOf } from "../../../mechanisms/regions.js";
|
|
13
|
+
import { api, fail } from "../../../shared/api.js";
|
|
14
|
+
import { $, esc } from "../../../shared/dom.js";
|
|
15
|
+
import "../../../shared/memory-modal.js"; // window.openMemory, for the pictures' rows
|
|
16
|
+
import { renderFeed } from "../../../shared/widgets/feed.js";
|
|
17
|
+
import { LIGHT_WORD, light } from "../../../shared/widgets/light.js";
|
|
18
|
+
|
|
19
|
+
export const markup = `
|
|
20
|
+
<section class="home-panel" id="mech-panel" aria-labelledby="mech-title">
|
|
21
|
+
<div class="mechs" id="mech-strip" role="group" aria-label="Memory mechanisms, by stage"></div>
|
|
22
|
+
<div class="mech-body" id="mech-body"></div>
|
|
23
|
+
</section>`;
|
|
24
|
+
|
|
25
|
+
const ORDER = MECHANISMS.map((m) => m.id);
|
|
26
|
+
const byIdStatic = Object.fromEntries(MECHANISMS.map((m) => [m.id, m]));
|
|
27
|
+
const familyOf = (m) => FAMILIES.find((f) => f.key === m.family) || FAMILIES[0];
|
|
28
|
+
const hexRgb = (hex) => [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16) / 255);
|
|
29
|
+
|
|
30
|
+
let brain = { select() {}, levels() {}, pulse() {} };
|
|
31
|
+
let lights = {}; // id → { status, evidence, events }
|
|
32
|
+
let lastSeen = null; // id → newest backing seq, as of the previous paint
|
|
33
|
+
let selected = null;
|
|
34
|
+
let panelData = {}; // id → the /api/mechanism payload last read
|
|
35
|
+
let asked = 0;
|
|
36
|
+
|
|
37
|
+
const lightOf = (id) => lights[id] || { status: "grey", evidence: "", events: [] };
|
|
38
|
+
|
|
39
|
+
/** Hand the explorer the brain it drives (and that drives it). */
|
|
40
|
+
export function attachBrain(b) {
|
|
41
|
+
brain = b;
|
|
42
|
+
if (selected) pushSelectionToBrain();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** A region was clicked on the brain: pick its first mechanism, or step to the
|
|
46
|
+
* next one if one of its mechanisms is already picked. */
|
|
47
|
+
export function pickRegion(key) {
|
|
48
|
+
const region = REGIONS.find((r) => r.key === key);
|
|
49
|
+
if (!region || region.mechanisms.length === 0) return;
|
|
50
|
+
const at = region.mechanisms.indexOf(selected);
|
|
51
|
+
select(region.mechanisms[at < 0 ? 0 : (at + 1) % region.mechanisms.length], true);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function pushSelectionToBrain() {
|
|
55
|
+
const m = byIdStatic[selected];
|
|
56
|
+
const region = regionOf(selected);
|
|
57
|
+
if (!m || !region) return;
|
|
58
|
+
brain.select(region.key, hexRgb(familyOf(m).color), m.short);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function paintStrip() {
|
|
62
|
+
$("mech-strip").innerHTML = FAMILIES.map((f) =>
|
|
63
|
+
'<div class="mech-group" style="--pin:' + f.color + '">' +
|
|
64
|
+
'<span class="mech-fam">' + esc(f.label) + "</span>" +
|
|
65
|
+
'<div class="mech-row">' +
|
|
66
|
+
MECHANISMS.filter((m) => m.family === f.key).map((m) =>
|
|
67
|
+
'<button type="button" class="mech-pill' + (m.id === selected ? " is-on" : "") + '" data-id="' + esc(m.id) + '"' +
|
|
68
|
+
' aria-pressed="' + (m.id === selected ? "true" : "false") + '" title="' + esc(m.name) + '">' +
|
|
69
|
+
light(lightOf(m.id).status) + esc(m.short) + (m.inDev ? '<span class="mech-tag">in dev</span>' : "") + "</button>"
|
|
70
|
+
).join("") +
|
|
71
|
+
"</div></div>"
|
|
72
|
+
).join("");
|
|
73
|
+
for (const el of document.querySelectorAll("#mech-strip .mech-pill")) {
|
|
74
|
+
el.addEventListener("click", () => select(el.dataset.id, false));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const bullets = (xs) => xs.length === 0 ? "" : '<ul class="mech-list">' + xs.map((x) => "<li>" + esc(x) + "</li>").join("") + "</ul>";
|
|
79
|
+
|
|
80
|
+
/** The picked mechanism's panel. The words are the client module's; the light,
|
|
81
|
+
* the picture and the activity are this store's. */
|
|
82
|
+
function paintBody() {
|
|
83
|
+
const m = byIdStatic[selected];
|
|
84
|
+
if (!m) return;
|
|
85
|
+
const l = lightOf(m.id);
|
|
86
|
+
const grey = l.status === "grey";
|
|
87
|
+
const panel = PANELS[m.id];
|
|
88
|
+
const data = panelData[m.id];
|
|
89
|
+
$("mech-panel").style.setProperty("--reg", familyOf(m).color);
|
|
90
|
+
let picture;
|
|
91
|
+
if (grey) {
|
|
92
|
+
picture = '<div class="mech-notbuilt"><b>Not built yet.</b> ' + esc(l.evidence || "") + "</div>";
|
|
93
|
+
} else if (!panel) {
|
|
94
|
+
picture = "";
|
|
95
|
+
} else if (data === undefined) {
|
|
96
|
+
picture = '<p class="pic-none">reading this store…</p>';
|
|
97
|
+
} else {
|
|
98
|
+
picture = '<div class="mech-picture">' + panel.picture(data.picture) + "</div>";
|
|
99
|
+
}
|
|
100
|
+
$("mech-body").innerHTML =
|
|
101
|
+
'<div class="mech-grid">' +
|
|
102
|
+
'<div class="mech-text">' +
|
|
103
|
+
'<p class="mech-eyebrow">' + esc(m.name) + (m.inDev ? ' <span class="mech-dev">in development</span>' : "") + "</p>" +
|
|
104
|
+
'<h2 class="mech-title" id="mech-title">' + esc(m.tagline) + "</h2>" +
|
|
105
|
+
'<p class="mech-explainer">' + esc(m.explainer) + "</p>" +
|
|
106
|
+
'<p class="mech-evidence">' + light(l.status) + " <b>" + esc(LIGHT_WORD[l.status] || "") + "</b> — " + esc(l.evidence) + "</p>" +
|
|
107
|
+
'<p class="mech-guide"><a href="' + esc(guideUrl(m.id)) + '" target="_blank" rel="noopener">see how it works →</a></p>' +
|
|
108
|
+
"</div>" +
|
|
109
|
+
'<div class="mech-side">' + picture + "</div>" +
|
|
110
|
+
"</div>" +
|
|
111
|
+
'<div class="mech-foot">' +
|
|
112
|
+
'<div><h3 class="mech-h">What’s built</h3>' + (bullets(m.built) || '<p class="pic-none">Nothing yet.</p>') + "</div>" +
|
|
113
|
+
'<div><h3 class="mech-h">Still in development</h3>' + (bullets(m.inDevelopment) || '<p class="pic-none">Nothing outstanding for this one.</p>') + "</div>" +
|
|
114
|
+
"</div>" +
|
|
115
|
+
(grey ? "" : '<h3 class="mech-h">Lately</h3><div class="card feed mech-feed" id="mech-feed"></div>');
|
|
116
|
+
if (!grey) {
|
|
117
|
+
const feed = $("mech-feed");
|
|
118
|
+
if (data === undefined) feed.innerHTML = '<p class="pic-none" style="padding:10px 14px">reading this store…</p>';
|
|
119
|
+
else if (data.activity.length === 0) feed.innerHTML = '<p class="pic-none" style="padding:10px 14px">No firing of this one is on record yet.</p>';
|
|
120
|
+
else renderFeed(feed, data.activity);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
async function loadPanel(id) {
|
|
125
|
+
if (lightOf(id).status === "grey") return;
|
|
126
|
+
const ticket = ++asked;
|
|
127
|
+
let d;
|
|
128
|
+
try { d = await api("/api/mechanism?id=" + encodeURIComponent(id)); } catch (e) { return fail("The " + id + " panel", e); }
|
|
129
|
+
panelData[id] = d;
|
|
130
|
+
if (ticket === asked && id === selected) paintBody();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** Pick a mechanism. `fromBrain`: on a phone the panel sits below the brain,
|
|
134
|
+
* often off screen, so bring it into view or the tap looks like it did nothing. */
|
|
135
|
+
export function select(id, fromBrain) {
|
|
136
|
+
if (!byIdStatic[id]) return;
|
|
137
|
+
selected = id;
|
|
138
|
+
for (const el of document.querySelectorAll("#mech-strip .mech-pill")) {
|
|
139
|
+
const on = el.dataset.id === id;
|
|
140
|
+
el.classList.toggle("is-on", on);
|
|
141
|
+
el.setAttribute("aria-pressed", on ? "true" : "false");
|
|
142
|
+
}
|
|
143
|
+
pushSelectionToBrain();
|
|
144
|
+
paintBody();
|
|
145
|
+
loadPanel(id);
|
|
146
|
+
if (fromBrain && matchMedia("(max-width: 900px)").matches) {
|
|
147
|
+
const panel = $("mech-panel");
|
|
148
|
+
if (panel && panel.getBoundingClientRect().top > innerHeight * 0.45) {
|
|
149
|
+
panel.scrollIntoView({ behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth", block: "start" });
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** Lights in: repaint the strip, the brain's steady glow, and — for every
|
|
155
|
+
* mechanism whose newest backing row moved since the last paint — a flare on
|
|
156
|
+
* its region. The first paint flares each working region once, staggered. */
|
|
157
|
+
function paint(view) {
|
|
158
|
+
lights = Object.fromEntries(view.mechanisms.map((l) => [l.id, l]));
|
|
159
|
+
if (selected === null) {
|
|
160
|
+
selected = ORDER.find((id) => lightOf(id).status === "green") || ORDER[0];
|
|
161
|
+
}
|
|
162
|
+
paintStrip();
|
|
163
|
+
const levels = {};
|
|
164
|
+
for (const r of REGIONS) {
|
|
165
|
+
levels[r.key] = Math.max(0, ...r.mechanisms.map((id) => {
|
|
166
|
+
const s = lightOf(id).status;
|
|
167
|
+
return s === "green" ? 1 : s === "amber" ? 0.25 : 0;
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
brain.levels(levels);
|
|
171
|
+
const newest = Object.fromEntries(view.mechanisms.map((l) => [l.id, l.events[0] ?? null]));
|
|
172
|
+
if (lastSeen === null) {
|
|
173
|
+
let k = 0;
|
|
174
|
+
for (const r of REGIONS) {
|
|
175
|
+
if (levels[r.key] === 1) setTimeout(() => brain.pulse(r.key), 400 + 450 * k++);
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
for (const id of ORDER) {
|
|
179
|
+
if (newest[id] !== null && newest[id] !== lastSeen[id]) {
|
|
180
|
+
const r = regionOf(id);
|
|
181
|
+
if (r) brain.pulse(r.key);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
lastSeen = newest;
|
|
186
|
+
pushSelectionToBrain();
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export async function render() {
|
|
190
|
+
let view;
|
|
191
|
+
try { view = await api("/api/mechanisms"); } catch (e) { return fail("The mechanisms", e); }
|
|
192
|
+
paint(view);
|
|
193
|
+
paintBody();
|
|
194
|
+
await loadPanel(selected);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** The store moved: new lights, and the picked panel's data read again (the
|
|
198
|
+
* others are dropped, so picking one later reads it fresh). */
|
|
199
|
+
export async function refresh() {
|
|
200
|
+
let view;
|
|
201
|
+
try { view = await api("/api/mechanisms"); } catch (e) { return; }
|
|
202
|
+
paint(view);
|
|
203
|
+
const keep = panelData[selected];
|
|
204
|
+
panelData = keep === undefined ? {} : { [selected]: keep };
|
|
205
|
+
await loadPanel(selected);
|
|
206
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* The hero: one plain line about this memory and a few counts on the left, the
|
|
2
|
+
brain on the right (`../brain.js`). The brain is mounted once; the words are
|
|
3
|
+
repainted whenever the store moves. */
|
|
4
|
+
import { $ } from "../../../shared/dom.js";
|
|
5
|
+
import * as tiles from "./tiles.js";
|
|
6
|
+
|
|
7
|
+
export const markup = `
|
|
8
|
+
<section class="home-hero" aria-label="This memory, today">
|
|
9
|
+
<div class="home-copy">
|
|
10
|
+
<p class="home-eyebrow">This memory, today</p>
|
|
11
|
+
<p class="home-headline" id="home-headline"></p>
|
|
12
|
+
${tiles.markup}
|
|
13
|
+
</div>
|
|
14
|
+
<div class="home-brain" id="home-brain"></div>
|
|
15
|
+
</section>`;
|
|
16
|
+
|
|
17
|
+
export function mount() { tiles.mount(); }
|
|
18
|
+
|
|
19
|
+
export function paint(d) {
|
|
20
|
+
$("home-headline").textContent = d.hero.headline;
|
|
21
|
+
tiles.paint(d);
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Live activity — the durable log in my own words. The one overview panel the
|
|
2
|
+
pulse owns: it is registered as a live feed, so new events are prepended. */
|
|
3
|
+
import { $ } from "../../../shared/dom.js";
|
|
4
|
+
import { registerLiveFeed, renderFeed } from "../../../shared/widgets/feed.js";
|
|
5
|
+
|
|
6
|
+
export const markup = `
|
|
7
|
+
<h2>Live activity <small style="color:var(--purple)">— in my own words · click any line for the record behind it</small></h2>
|
|
8
|
+
<div class="card feed" id="ov-feed"></div>
|
|
9
|
+
<p class="foot" id="ov-feednote"></p>`;
|
|
10
|
+
|
|
11
|
+
export function mount() { registerLiveFeed("ov-feed"); }
|
|
12
|
+
|
|
13
|
+
export function paint(d) {
|
|
14
|
+
renderFeed($("ov-feed"), d.feed, d);
|
|
15
|
+
$("ov-feednote").textContent =
|
|
16
|
+
"Payloads are ids, counts and bytes — never a memory's words, and never a turn of yours. " +
|
|
17
|
+
"The names above are resolved at the moment this page was drawn.";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** True while the feed still shows its absence line — nothing of the pulse's
|
|
21
|
+
* to lose by repainting it. */
|
|
22
|
+
export function showingAbsence() {
|
|
23
|
+
const feedEl = $("ov-feed");
|
|
24
|
+
return !!(feedEl && feedEl.querySelector(".empty"));
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* The latest three chapters — the journal, in the first person. The rest are
|
|
2
|
+
on the self tab. */
|
|
3
|
+
import { $ } from "../../../shared/dom.js";
|
|
4
|
+
import { chapterRows } from "../../../shared/widgets/chapters.js";
|
|
5
|
+
|
|
6
|
+
export const markup = `
|
|
7
|
+
<h2>Latest chapters <small>— the journal, in the first person; these do not decay</small></h2>
|
|
8
|
+
<div class="card rows" id="ov-chapters"></div>
|
|
9
|
+
<p class="foot"><a href="#self" class="home-more">every chapter, on the self tab →</a></p>`;
|
|
10
|
+
|
|
11
|
+
export function paint(d) {
|
|
12
|
+
$("ov-chapters").innerHTML = chapterRows((d.chapters || []).slice(0, 3), d.chaptersAbsent);
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* The few plain counts under the home page's headline (`/api/overview`'s
|
|
2
|
+
`hero.counts`). Drawn with the tile classes, so the page reads its numbers
|
|
3
|
+
the way it always did. Each is a link to where that number is shown in full
|
|
4
|
+
(a hash route: `shell/tabs.js#parseRoute`). */
|
|
5
|
+
import { $, esc } from "../../../shared/dom.js";
|
|
6
|
+
|
|
7
|
+
const GOES_TO = {
|
|
8
|
+
"memories held": "memories?state=live",
|
|
9
|
+
"core memories": "self/settling",
|
|
10
|
+
"chapters written": "self/journal",
|
|
11
|
+
"archived": "memories?state=archived",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const markup = `<div class="tiles home-counts" id="ov-tiles"></div>`;
|
|
15
|
+
|
|
16
|
+
export function paint(d) {
|
|
17
|
+
$("ov-tiles").innerHTML = d.hero.counts.map((t) => {
|
|
18
|
+
const to = GOES_TO[t.label];
|
|
19
|
+
const open = to ? '<a class="tile tile-link' + (t.absent ? " quiet" : "") + '" href="#' + esc(to) + '">'
|
|
20
|
+
: '<div class="tile' + (t.absent ? " quiet" : "") + '">';
|
|
21
|
+
return open +
|
|
22
|
+
'<div class="n">' + esc(t.value) + "</div>" +
|
|
23
|
+
'<div class="l">' + esc(t.label) + "</div>" +
|
|
24
|
+
'<div class="s">' + esc(t.note) + "</div>" + (to ? "</a>" : "</div>");
|
|
25
|
+
}).join("");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** A link changes the hash and the nav follows it (`shell/tabs.js`). A second
|
|
29
|
+
* click on the same card changes nothing, so it re-announces the hash itself. */
|
|
30
|
+
export function mount() {
|
|
31
|
+
$("ov-tiles").addEventListener("click", (e) => {
|
|
32
|
+
const a = e.target.closest("a.tile-link");
|
|
33
|
+
if (!a || location.hash !== a.getAttribute("href")) return;
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
dispatchEvent(new HashChangeEvent("hashchange"));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** One home count's number, READ OFF THE PAGE rather than out of a variable:
|
|
40
|
+
* the flow diagram's counters were proved live while the tiles beside them
|
|
41
|
+
* were not, and a harness that asked the payload would have believed a page
|
|
42
|
+
* that never repainted. (`tools/visual-loop` calls this.) */
|
|
43
|
+
window.tileValue = (label) => {
|
|
44
|
+
for (const tile of document.querySelectorAll("#ov-tiles .tile")) {
|
|
45
|
+
const l = tile.querySelector(".l");
|
|
46
|
+
if (l && l.textContent === label) {
|
|
47
|
+
const n = tile.querySelector(".n");
|
|
48
|
+
return n ? n.textContent : "";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return "";
|
|
52
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* The memories tab: find (search + ask), the page's buttons (note, back up,
|
|
2
|
+
export), one picture of everything held, the kinds in words, and every
|
|
3
|
+
memory as a paged list. `/api/memories` feeds the picture and the kinds;
|
|
4
|
+
the list fetches its own page (`/api/memories/list`). */
|
|
5
|
+
import { api, fail } from "../../shared/api.js";
|
|
6
|
+
import * as constellation from "./sections/constellation.js";
|
|
7
|
+
import * as kinds from "./sections/kinds.js";
|
|
8
|
+
import * as list from "./sections/list.js";
|
|
9
|
+
import * as search from "./sections/search.js";
|
|
10
|
+
import * as tools from "./sections/tools.js";
|
|
11
|
+
import { setFilter } from "./state.js";
|
|
12
|
+
|
|
13
|
+
const markup = `
|
|
14
|
+
<div class="mem-top">
|
|
15
|
+
<p class="mem-lede" id="mem-lede">Everything I remember, and why it is where it is.</p>${tools.markup}
|
|
16
|
+
</div>${tools.notePanel}${search.markup}
|
|
17
|
+
${constellation.markup}
|
|
18
|
+
${kinds.markup}
|
|
19
|
+
${list.markup}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
let MEM = null;
|
|
23
|
+
|
|
24
|
+
async function render() {
|
|
25
|
+
let d;
|
|
26
|
+
try { d = await api("/api/memories"); } catch (e) { return fail("The memories page", e); }
|
|
27
|
+
MEM = d;
|
|
28
|
+
document.getElementById("mem-lede").textContent = lede(d);
|
|
29
|
+
constellation.paint(d);
|
|
30
|
+
kinds.paint(d);
|
|
31
|
+
constellation.draw();
|
|
32
|
+
await list.render();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** "121 memories and 24 entities and beliefs" — the census counts both, and
|
|
36
|
+
* `counterparts status` prints them apart, so this page does too. */
|
|
37
|
+
function heldWords(d) {
|
|
38
|
+
const m = d.memories + (d.memories === 1 ? " memory" : " memories");
|
|
39
|
+
return d.schemas ? m + " and " + d.schemas + (d.schemas === 1 ? " entity or belief" : " entities and beliefs") : m;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function lede(d) {
|
|
43
|
+
if (d.total === 0) return "Nothing held yet. Write a note, or just talk — what matters settles here.";
|
|
44
|
+
if (d.total < 20) return "A young memory: " + heldWords(d) + " so far. Every one is below, with its words; it fills in as we talk.";
|
|
45
|
+
return heldWords(d) + ". Search by words, ask a question, or browse every one below, newest first.";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
name: "memories",
|
|
50
|
+
mount(section) {
|
|
51
|
+
section.innerHTML = markup;
|
|
52
|
+
constellation.mount();
|
|
53
|
+
kinds.mount();
|
|
54
|
+
list.mount();
|
|
55
|
+
search.mount();
|
|
56
|
+
tools.mount();
|
|
57
|
+
// A note or a removal made on purpose: re-read now rather than on the next poll.
|
|
58
|
+
addEventListener("counterparts:changed", () => { render(); });
|
|
59
|
+
},
|
|
60
|
+
render,
|
|
61
|
+
/** The store moved (the pulse): re-read everything this page shows. */
|
|
62
|
+
refresh: render,
|
|
63
|
+
/** Coming back to the tab: the canvas may have been laid out at zero width. */
|
|
64
|
+
show() { constellation.draw(); },
|
|
65
|
+
resize() { if (MEM) constellation.draw(); },
|
|
66
|
+
/** `#memories?state=archived` (or live/all): open the list at that filter. */
|
|
67
|
+
route({ params }) {
|
|
68
|
+
const state = params.get("state");
|
|
69
|
+
if (!["live", "archived", "all"].includes(state)) return;
|
|
70
|
+
setFilter({ state, kind: null, band: null });
|
|
71
|
+
document.getElementById("mlist-h").scrollIntoView({ block: "start" });
|
|
72
|
+
},
|
|
73
|
+
/** After boot, when this is the tab showing. */
|
|
74
|
+
redraw() { constellation.draw(); },
|
|
75
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* The memories tab. */
|
|
2
|
+
|
|
3
|
+
/* ── the top: lede + the page's buttons ── */
|
|
4
|
+
.mem-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
|
|
5
|
+
.mem-lede{color:var(--dim);font-size:14px;line-height:1.5;margin:0;flex:1 1 320px}
|
|
6
|
+
.tools{display:flex;gap:8px;flex-wrap:wrap}
|
|
7
|
+
.mbtn{background:none;border:1px solid var(--border);border-radius:6px;color:var(--ink);font:inherit;font-size:13px;
|
|
8
|
+
padding:8px 14px;cursor:pointer;white-space:nowrap;transition:border-color .2s,color .2s,box-shadow .2s}
|
|
9
|
+
.mbtn:hover:not(:disabled){color:var(--cyan);border-color:var(--glow);box-shadow:var(--hovershadow)}
|
|
10
|
+
.mbtn:disabled{opacity:.45;cursor:default}
|
|
11
|
+
.mbtn.primary{color:var(--cyan);border-color:rgba(0,229,255,.45)}
|
|
12
|
+
.linkbtn{background:none;border:none;color:var(--cyan);font:inherit;cursor:pointer;text-decoration:underline;padding:0 4px}
|
|
13
|
+
|
|
14
|
+
/* ── write a note ── */
|
|
15
|
+
.note-panel{margin-bottom:16px}
|
|
16
|
+
.np-head{font-size:14px;font-weight:600;color:var(--ink);margin-bottom:8px}
|
|
17
|
+
.note-panel textarea,.note-panel input{display:block;width:100%;background:var(--deep);color:var(--ink);
|
|
18
|
+
border:1px solid var(--border);border-radius:var(--radius);font:inherit;font-size:13px;padding:9px 11px}
|
|
19
|
+
.note-panel textarea:focus,.note-panel input:focus{outline:none;border-color:var(--cyan)}
|
|
20
|
+
.np-row{display:flex;gap:8px;margin-top:8px;align-items:center}
|
|
21
|
+
.np-row input{flex:1;width:auto}
|
|
22
|
+
.np-hint{color:var(--faint);font-size:11.5px;margin-top:8px}
|
|
23
|
+
.np-hint code{font-family:var(--mono)}
|
|
24
|
+
|
|
25
|
+
/* ── find: search + ask ── */
|
|
26
|
+
.find{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:8px;align-items:start}
|
|
27
|
+
.find>*{min-width:0}
|
|
28
|
+
.find-lab{display:block;font-size:13px;font-weight:600;color:var(--ink);margin-bottom:6px}
|
|
29
|
+
.find-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
|
|
30
|
+
#q,#ask-q{flex:1;min-width:0;background:var(--card);border:1px solid var(--border);border-radius:6px;
|
|
31
|
+
color:inherit;font:inherit;font-size:14px;padding:11px 14px;outline:none}
|
|
32
|
+
#q:focus,#ask-q:focus{border-color:var(--cyan);box-shadow:0 0 12px rgba(0,229,255,.12)}
|
|
33
|
+
#ask-q{border-color:rgba(179,136,255,.35)}
|
|
34
|
+
#ask-q:focus{border-color:var(--purple);box-shadow:0 0 12px rgba(179,136,255,.15)}
|
|
35
|
+
#qn{color:var(--dim);font-size:12px;white-space:nowrap}
|
|
36
|
+
#qout,#ask-out .rows{max-height:420px;overflow-y:auto}
|
|
37
|
+
.ask-head{color:var(--dim);font-size:12px;margin:2px 0 6px}
|
|
38
|
+
.rows .r b{color:var(--ink);font-weight:600}
|
|
39
|
+
.bdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:0}
|
|
40
|
+
.bdot.hollow{background:none;border:1.5px solid}
|
|
41
|
+
.tier{color:var(--dim)}
|
|
42
|
+
.tier-vivid{color:var(--cyan)}
|
|
43
|
+
|
|
44
|
+
/* ── the picture ── */
|
|
45
|
+
.glance{padding:0}
|
|
46
|
+
.bandkey{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 14px 0}
|
|
47
|
+
.bchip{display:inline-flex;align-items:center;gap:7px;background:var(--deep);border:1px solid var(--border);border-radius:20px;
|
|
48
|
+
color:var(--ink);font:inherit;font-size:12.5px;padding:6px 12px;cursor:pointer}
|
|
49
|
+
.bchip:hover:not(:disabled){border-color:var(--glow)}
|
|
50
|
+
.bchip.on{border-color:var(--cyan);box-shadow:0 0 10px rgba(0,229,255,.18)}
|
|
51
|
+
.bchip.none{cursor:default;color:var(--dim)}
|
|
52
|
+
.bchip .bn{font-family:var(--mono);font-weight:700}
|
|
53
|
+
.bchip .bw{color:var(--dim);font-size:12px}
|
|
54
|
+
.bchip .bdot{margin-right:0}
|
|
55
|
+
.bhint{color:var(--dim);font-size:12px}
|
|
56
|
+
.glance .chart{padding:8px 12px 2px}
|
|
57
|
+
.glance-foot{display:flex;gap:18px;flex-wrap:wrap;color:var(--faint);font-size:11.5px;padding:0 16px 12px}
|
|
58
|
+
|
|
59
|
+
/* ── kinds, in words ── */
|
|
60
|
+
.kindgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:8px}
|
|
61
|
+
.kcard{display:flex;flex-direction:column;gap:5px;text-align:left;background:var(--card);border:1px solid var(--border);
|
|
62
|
+
border-radius:var(--radius);color:var(--ink);font:inherit;padding:11px 12px;cursor:pointer;min-width:0}
|
|
63
|
+
.kcard:hover{border-color:var(--glow);box-shadow:var(--hovershadow)}
|
|
64
|
+
.kcard.on{border-color:var(--cyan)}
|
|
65
|
+
.kcard.none .kname,.kcard.none .kn{color:var(--dim)}
|
|
66
|
+
.kline{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
|
|
67
|
+
.kname{font-size:14px;font-weight:600}
|
|
68
|
+
.kn{font-family:var(--mono);font-size:15px;font-weight:700;white-space:nowrap}
|
|
69
|
+
.kcard.none .kn{font-family:var(--sans);font-size:11.5px;font-weight:400}
|
|
70
|
+
.kbar{display:block;height:4px;background:var(--deep);border-radius:2px;overflow:hidden}
|
|
71
|
+
.kbar span{display:block;height:100%;background:var(--cyan);border-radius:2px}
|
|
72
|
+
.kwhat{color:var(--dim);font-size:12px;line-height:1.35}
|
|
73
|
+
.kfade{color:var(--ink);font-size:12px;line-height:1.35}
|
|
74
|
+
.kspeed{display:flex;align-items:center;gap:3px;margin-top:auto;padding-top:3px}
|
|
75
|
+
.kspeed i{width:10px;height:4px;border-radius:2px;background:var(--deep);border:1px solid rgba(255,215,64,.25)}
|
|
76
|
+
.kspeed i.f{background:var(--amber);border-color:var(--amber)}
|
|
77
|
+
.kspeed em{font-style:normal;color:var(--faint);font-size:11px;margin-left:4px}
|
|
78
|
+
|
|
79
|
+
/* ── the list ── */
|
|
80
|
+
.mfilters{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:10px;align-items:center}
|
|
81
|
+
.fgroup{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
|
|
82
|
+
.fchip{background:none;border:1px solid var(--border);border-radius:20px;color:var(--ink);font:inherit;font-size:12.5px;
|
|
83
|
+
padding:5px 11px;cursor:pointer}
|
|
84
|
+
.fchip:hover{border-color:var(--glow)}
|
|
85
|
+
.fchip.on{border-color:var(--cyan);color:var(--cyan);background:rgba(0,229,255,.06)}
|
|
86
|
+
.fchip.zero{color:var(--dim)}
|
|
87
|
+
.fchip .fn{font-family:var(--mono);color:var(--dim);margin-left:2px}
|
|
88
|
+
.fchip.on .fn{color:var(--cyan)}
|
|
89
|
+
.fchip.clear{color:var(--dim);border-style:dashed}
|
|
90
|
+
.seggroup{gap:0}
|
|
91
|
+
.seggroup .fchip{border-radius:0;margin-left:-1px}
|
|
92
|
+
.seggroup .fchip:first-child{border-radius:20px 0 0 20px;margin-left:0}
|
|
93
|
+
.seggroup .fchip:last-child{border-radius:0 20px 20px 0}
|
|
94
|
+
.mlist{margin-bottom:10px}
|
|
95
|
+
.mlist .empty{margin:10px}
|
|
96
|
+
.mrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:11px 15px;
|
|
97
|
+
border-bottom:1px solid var(--border);cursor:pointer}
|
|
98
|
+
.mrow:last-child{border-bottom:none}
|
|
99
|
+
.mrow:hover,.mrow:focus{background:var(--hover);outline:none}
|
|
100
|
+
.mwords{font-size:13.5px;line-height:1.5;color:var(--ink);min-width:0;overflow-wrap:anywhere}
|
|
101
|
+
.mwords b{font-weight:600}
|
|
102
|
+
.mrow.arch .mwords{color:var(--dim)}
|
|
103
|
+
.mwhy{color:var(--amber);font-size:12px;margin-top:3px}
|
|
104
|
+
.mmeta{display:grid;grid-template-columns:78px 112px 64px 84px;gap:10px;align-items:center;font-size:12px;color:var(--dim)}
|
|
105
|
+
.mkind{white-space:nowrap}
|
|
106
|
+
.mstr{display:flex;align-items:center;gap:6px}
|
|
107
|
+
.strack{flex:1;height:5px;background:var(--deep);border-radius:3px;overflow:hidden;border:1px solid rgba(0,229,255,.06)}
|
|
108
|
+
.strack span{display:block;height:100%;border-radius:3px}
|
|
109
|
+
.spct{font-family:var(--mono);width:34px;text-align:right}
|
|
110
|
+
.mage,.mband{white-space:nowrap}
|
|
111
|
+
.mpager{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 20px}
|
|
112
|
+
.mpage{color:var(--dim);font-size:12.5px}
|
|
113
|
+
|
|
114
|
+
@media(max-width:1100px){.kindgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
|
|
115
|
+
@media(max-width:760px){
|
|
116
|
+
.find{grid-template-columns:1fr;gap:12px}
|
|
117
|
+
.kindgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
|
|
118
|
+
.mrow{grid-template-columns:1fr;gap:6px}
|
|
119
|
+
.mmeta{grid-template-columns:auto 1fr auto auto;gap:10px}
|
|
120
|
+
}
|
|
121
|
+
/* A thumb needs 44px on everything it presses. */
|
|
122
|
+
@media(max-width:720px){
|
|
123
|
+
.mbtn,.fchip,.bchip,#q,#ask-q{min-height:44px}
|
|
124
|
+
.kcard{min-height:44px}
|
|
125
|
+
.np-row{flex-wrap:wrap}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ── the back up / export dialog (the typed-confirm frame, not its red) ── */
|
|
129
|
+
.confirm.mdialog{border-color:var(--glow)}
|
|
130
|
+
.confirm.mdialog h3{color:var(--cyan);font-size:15px;font-weight:600;letter-spacing:.1px}
|
|
131
|
+
.fd-lede{color:var(--dim);font-size:13px;line-height:1.55;margin:0 0 12px}
|
|
132
|
+
.fd-lab{display:block;font-size:13px;color:var(--ink);margin-bottom:12px}
|
|
133
|
+
.fd-set{border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px 10px;margin:0 0 12px;font-size:13px}
|
|
134
|
+
.fd-set legend{color:var(--dim);font-size:12.5px;padding:0 4px}
|
|
135
|
+
.fd-set label{display:flex;align-items:center;gap:8px;min-height:32px;cursor:pointer}
|
|
136
|
+
.fd-set .confirm-input{margin:2px 0 6px 24px;width:calc(100% - 24px)}
|
|
137
|
+
.mdialog .act-out{font-size:12.5px}
|
|
138
|
+
.fd-more{margin-top:6px;color:var(--dim)}
|
|
139
|
+
.fd-more summary{cursor:pointer}
|
|
140
|
+
.mdialog .confirm-buttons button{font-size:13px;padding:8px 14px}
|
|
141
|
+
.fd-go{color:var(--cyan)!important;border-color:rgba(0,229,255,.45)!important}
|
|
142
|
+
@media(max-width:720px){.mdialog .confirm-buttons button,.fd-set label{min-height:44px}}
|
|
143
|
+
.bchip.none .bn{font-family:var(--sans);font-weight:400}
|