diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d0be66..1094a36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +- Removed the keyboard strip under the header and the row of small keys on the + Requirements tab. The answered count stays. In the ivory theme the open tab + now runs into the page. + ## 0.5.0 - 2026-11-29 The piano look. Assessment, framework and record formats are unchanged, so diff --git a/README.fr.md b/README.fr.md index b4232f3..a70d177 100644 --- a/README.fr.md +++ b/README.fr.md @@ -18,7 +18,7 @@

- L'onglet Exigences de PIAno en français, sous l'en-tête noir et son clavier : les questions de la Loi 25 avec leurs articles, une rangée de petites touches qui se remplit au fil des réponses, les réponses Oui, En partie, Non et S. O., les notes et un bouton qui transforme un écart en risque + L'onglet Exigences de PIAno en français, sous l'en-tête noir : les questions de la Loi 25 avec leurs articles, les réponses Oui, En partie, Non et S. O., les notes et un bouton qui transforme un écart en risque

Read in English

@@ -44,14 +44,12 @@ Le guide complet, avec les captures d'écran, est en anglais dans [README.md](README.md). Cette page en reprend l'essentiel. -L'interface est construite comme un piano. Un en-tête en laque noire porte un -clavier sur son bord inférieur, et l'onglet ouvert est la touche allumée. Une -réponse choisie s'inverse comme une touche enfoncée, avec un petit point pour -Oui, En partie ou Non. Les cadres sont dessinés comme des touches, chaque cadre -remplit une rangée de petites touches à mesure que ses questions reçoivent une -réponse, et les matrices de risques vont de l'ivoire à l'ébène. Il y a deux -thèmes, ivoire et ébène, et en dehors de ces points la page est en noir et -blanc. +L'interface s'inspire du piano. L'en-tête est en laque noire dans les deux +thèmes, et l'onglet ouvert ressort en ivoire. Une réponse choisie s'inverse +comme une touche enfoncée, avec un petit point pour Oui, En partie ou Non. Les +cadres sont dessinés comme des touches, et les matrices de risques vont de +l'ivoire à l'ébène. Il y a deux thèmes, ivoire et ébène, et en dehors de ces +points la page est en noir et blanc. ## Pourquoi diff --git a/README.md b/README.md index f954f97..05344d1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@

- The PIAno Requirements tab under its black header and keyboard edge: the Quebec Law 25 questions with their section references, a row of small keys that fills as questions are answered, Yes, Partly, No and N.A. answers, notes, and a button that turns a gap into a risk + The PIAno Requirements tab under its black header: the Quebec Law 25 questions with their section references, Yes, Partly, No and N.A. answers, notes, and a button that turns a gap into a risk

Lire en français

@@ -121,13 +121,11 @@ page or the Report tab to keep it or move it to another machine. ## A tour -The interface is built like a piano. A black lacquer header carries a keyboard -along its lower edge, and the open tab is the key that is lit. Pressed answers -invert like keys, with a small dot for Yes, Partly or No. Framework packs are -drawn as keys, each framework fills a row of small keys as its questions are -answered, and the risk matrices are shaded from ivory to ebony. There are two -themes, ivory and ebony, and apart from those dots the page is black and -white. +The interface takes its look from a piano. The header is black lacquer in both +themes, and the open tab stands out in ivory. Pressed answers invert like keys, +with a small dot for Yes, Partly or No. Framework packs are drawn as keys, and +the risk matrices are shaded from ivory to ebony. There are two themes, ivory +and ebony, and apart from those dots the page is black and white. diff --git a/docs/DESIGN.md b/docs/DESIGN.md index 68f32cf..539d090 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -112,10 +112,12 @@ needed. ## The look -The interface is drawn as a piano, in black and white. The header is black -lacquer in both themes, with a keyboard along its lower edge drawn by one -inline SVG pattern, and the open tab is the lit key above it. The themes are -ivory and ebony. No meaning rests on hue alone: a pressed answer +The interface takes its look from a piano, in black and white. The header is +black lacquer in both themes, and the open tab stands out in ivory: in the +ivory theme it runs into the page like a folder tab. The themes are ivory and +ebony. A keyboard strip under the header and a row of small keys for answered +questions were tried in 0.5.0 and taken out: they were ornament, and the +answered count already says the same thing. No meaning rests on hue alone: a pressed answer inverts like a key and keeps a small dot for Yes, Partly or No, status chips use the same dots next to their words, and the risk matrices are shaded in grays from ivory to ebony. Headings use the system's serif (Palatino on diff --git a/docs/screenshots/01-home.png b/docs/screenshots/01-home.png index 03c0275..3044c29 100644 Binary files a/docs/screenshots/01-home.png and b/docs/screenshots/01-home.png differ diff --git a/docs/screenshots/02-project.png b/docs/screenshots/02-project.png index 8e311e6..7fb56ec 100644 Binary files a/docs/screenshots/02-project.png and b/docs/screenshots/02-project.png differ diff --git a/docs/screenshots/03-screening.png b/docs/screenshots/03-screening.png index e851dfb..3c072c5 100644 Binary files a/docs/screenshots/03-screening.png and b/docs/screenshots/03-screening.png differ diff --git a/docs/screenshots/04-data.png b/docs/screenshots/04-data.png index ed466fd..459caa9 100644 Binary files a/docs/screenshots/04-data.png and b/docs/screenshots/04-data.png differ diff --git a/docs/screenshots/05-requirements.png b/docs/screenshots/05-requirements.png index 62abd13..934bb64 100644 Binary files a/docs/screenshots/05-requirements.png and b/docs/screenshots/05-requirements.png differ diff --git a/docs/screenshots/06-transfers.png b/docs/screenshots/06-transfers.png index 31e181d..060fc0b 100644 Binary files a/docs/screenshots/06-transfers.png and b/docs/screenshots/06-transfers.png differ diff --git a/docs/screenshots/07-risks.png b/docs/screenshots/07-risks.png index 1b60bd9..d596f19 100644 Binary files a/docs/screenshots/07-risks.png and b/docs/screenshots/07-risks.png differ diff --git a/docs/screenshots/08-conclusion.png b/docs/screenshots/08-conclusion.png index 1e53a7c..9296230 100644 Binary files a/docs/screenshots/08-conclusion.png and b/docs/screenshots/08-conclusion.png differ diff --git a/docs/screenshots/09-report.png b/docs/screenshots/09-report.png index 3233fc3..bc0513d 100644 Binary files a/docs/screenshots/09-report.png and b/docs/screenshots/09-report.png differ diff --git a/docs/screenshots/10-requirements-fr.png b/docs/screenshots/10-requirements-fr.png index 413ee59..47c052a 100644 Binary files a/docs/screenshots/10-requirements-fr.png and b/docs/screenshots/10-requirements-fr.png differ diff --git a/docs/screenshots/11-verify.png b/docs/screenshots/11-verify.png index 9d00633..6d94dd1 100644 Binary files a/docs/screenshots/11-verify.png and b/docs/screenshots/11-verify.png differ diff --git a/docs/screenshots/12-risks-light.png b/docs/screenshots/12-risks-light.png index 7de572a..8e187a9 100644 Binary files a/docs/screenshots/12-risks-light.png and b/docs/screenshots/12-risks-light.png differ diff --git a/docs/screenshots/13-phone-home.png b/docs/screenshots/13-phone-home.png index 668c1b0..c7e49bc 100644 Binary files a/docs/screenshots/13-phone-home.png and b/docs/screenshots/13-phone-home.png differ diff --git a/piano.html b/piano.html index 1c4c3b7..23407c2 100644 --- a/piano.html +++ b/piano.html @@ -34,7 +34,7 @@ .warn{color:var(--warn)} .gap-top{margin-top:14px} -/* The fallboard: black lacquer in both themes, with a keyboard along its lower edge */ +/* The header is black lacquer in both themes */ .chrome{position:sticky;top:0;z-index:20;background:var(--lacquer);color:var(--lac-text)} .top{display:flex;align-items:center;gap:10px;padding:12px 28px 10px} .brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--lac-text);font:600 22px/1 var(--serif);letter-spacing:.01em;cursor:pointer;padding:4px 6px;border-radius:6px} @@ -54,10 +54,10 @@ .tab{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:10px 16px 11px;color:var(--lac-muted);cursor:pointer;white-space:nowrap;border-radius:8px 8px 0 0;font-weight:500;transition:background-color .12s,color .12s} .tab:hover{color:var(--lac-text);background:var(--lac-2)} .tab.on,.tab.on:hover{background:var(--ivory);color:var(--ebony)} +:root[data-theme=light] .tab.on{background:var(--bg)} .tab.on:focus-visible{outline-color:var(--ivory);outline-offset:-4px;box-shadow:inset 0 0 0 2px var(--ebony)} .badge{font-size:11px;line-height:18px;padding:0 7px;border-radius:999px;background:var(--lac-2);color:var(--lac-muted);border:1px solid var(--lac-line);font-variant-numeric:tabular-nums} .tab.on .badge{background:var(--ebony);color:var(--ivory);border-color:var(--ebony)} -.keys{height:26px;border-bottom:1px solid #a9a397;background:var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='26'%3E%3Cg fill='%23a9a397'%3E%3Crect x='15' width='1' height='26'/%3E%3Crect x='31' width='1' height='26'/%3E%3Crect x='47' width='1' height='26'/%3E%3Crect x='63' width='1' height='26'/%3E%3Crect x='79' width='1' height='26'/%3E%3Crect x='95' width='1' height='26'/%3E%3Crect x='111' width='1' height='26'/%3E%3C/g%3E%3Cg fill='%230c0c0d'%3E%3Crect x='11' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='27' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='59' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='75' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='91' y='-3' width='10' height='19' rx='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 28px 0} #main{max-width:1320px;margin:0 auto;padding:28px;outline:none} .stack{display:flex;flex-direction:column;gap:16px} @@ -143,10 +143,6 @@ .fwrow{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)} .fwrow .chips{margin-top:6px} -/* Answered questions fill a row of small keys */ -.keybar{display:flex;gap:2px;height:20px;margin:-2px 0 12px;max-width:100%} -.keybar .k{flex:1;max-width:14px;min-width:3px;border:1px solid var(--line2);border-top:0;border-radius:0 0 3px 3px;background:var(--panel2)} -.keybar .k.on{background:var(--ink);border-color:var(--ink)} .section{margin-top:4px} .reqs{display:flex;flex-direction:column} .req{padding:16px 0;border-bottom:1px solid var(--line)} @@ -216,7 +212,6 @@ #main{padding:14px} .top{padding:10px 14px 8px;gap:6px} .tabs{padding:4px 10px 0} - .keys{background-position:10px 0} .packs{grid-template-columns:1fr} } @media (max-width:560px){ @@ -2071,17 +2066,10 @@ if (el) put(el, riskAction(f, it)); } -function keybar(f, pg) { - return h('div', { class: 'keybar', id: 'kb-' + f.id, 'aria-hidden': 'true' }, - Array.from({ length: pg.total }, (_, i) => h('span', { class: 'k' + (i < pg.answered ? ' on' : '') }))); -} - function refreshProgress(f) { const el = document.getElementById('pg-' + f.id); const pg = P.progress(A)[f.id]; if (el && pg) el.textContent = t('answered', { a: pg.answered, t: pg.total }); - const bar = document.getElementById('kb-' + f.id); - if (bar && pg) bar.replaceWith(keybar(f, pg)); } function requirementItem(f, it) { @@ -2111,7 +2099,6 @@ h('div', { class: 'card-head' }, h('h2', null, tx(f.data.title)), h('span', { class: 'chips' }, chip(lbl('obligation', f.data.obligation), 'ob ' + f.data.obligation), appliesChip(A, f.id), h('span', { class: 'chip', id: 'pg-' + f.id }, t('answered', { a: prog[f.id].answered, t: prog[f.id].total })))), - keybar(f, prog[f.id]), h('p', { class: 'muted small' }, tx(f.data.law)), P.applicability(A, f.id) === 'unknown' ? h('p', { class: 'note' }, t('screeningOpen')) : null, f.data.sections.map((s) => h('div', { class: 'section' }, h('h3', null, tx(s.title)), h('div', { class: 'reqs' }, s.items.map((it) => requirementItem(f, it))))))), @@ -2512,7 +2499,7 @@ $header = h('header', { class: 'top' }); $tabs = h('nav', { class: 'tabs', role: 'tablist', 'aria-label': t('tabsLabel') }); $main = h('main', { id: 'main', tabindex: '-1' }); - const chrome = h('div', { class: 'chrome' }, $header, $tabs, h('div', { class: 'keys', 'aria-hidden': 'true' })); + const chrome = h('div', { class: 'chrome' }, $header, $tabs); $app.append(chrome, $main, h('div', { id: 'toasts', 'aria-live': 'polite' })); const fit = () => document.documentElement.style.setProperty('--chrome', chrome.offsetHeight + 'px'); if (window.ResizeObserver) new ResizeObserver(fit).observe(chrome); diff --git a/src/style.css b/src/style.css index 4a09164..9a63d0c 100644 --- a/src/style.css +++ b/src/style.css @@ -25,7 +25,7 @@ code{font:12px var(--mono);word-break:break-all} .warn{color:var(--warn)} .gap-top{margin-top:14px} -/* The fallboard: black lacquer in both themes, with a keyboard along its lower edge */ +/* The header is black lacquer in both themes */ .chrome{position:sticky;top:0;z-index:20;background:var(--lacquer);color:var(--lac-text)} .top{display:flex;align-items:center;gap:10px;padding:12px 28px 10px} .brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--lac-text);font:600 22px/1 var(--serif);letter-spacing:.01em;cursor:pointer;padding:4px 6px;border-radius:6px} @@ -45,10 +45,10 @@ code{font:12px var(--mono);word-break:break-all} .tab{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:10px 16px 11px;color:var(--lac-muted);cursor:pointer;white-space:nowrap;border-radius:8px 8px 0 0;font-weight:500;transition:background-color .12s,color .12s} .tab:hover{color:var(--lac-text);background:var(--lac-2)} .tab.on,.tab.on:hover{background:var(--ivory);color:var(--ebony)} +:root[data-theme=light] .tab.on{background:var(--bg)} .tab.on:focus-visible{outline-color:var(--ivory);outline-offset:-4px;box-shadow:inset 0 0 0 2px var(--ebony)} .badge{font-size:11px;line-height:18px;padding:0 7px;border-radius:999px;background:var(--lac-2);color:var(--lac-muted);border:1px solid var(--lac-line);font-variant-numeric:tabular-nums} .tab.on .badge{background:var(--ebony);color:var(--ivory);border-color:var(--ebony)} -.keys{height:26px;border-bottom:1px solid #a9a397;background:var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='26'%3E%3Cg fill='%23a9a397'%3E%3Crect x='15' width='1' height='26'/%3E%3Crect x='31' width='1' height='26'/%3E%3Crect x='47' width='1' height='26'/%3E%3Crect x='63' width='1' height='26'/%3E%3Crect x='79' width='1' height='26'/%3E%3Crect x='95' width='1' height='26'/%3E%3Crect x='111' width='1' height='26'/%3E%3C/g%3E%3Cg fill='%230c0c0d'%3E%3Crect x='11' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='27' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='59' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='75' y='-3' width='10' height='19' rx='2'/%3E%3Crect x='91' y='-3' width='10' height='19' rx='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 28px 0} #main{max-width:1320px;margin:0 auto;padding:28px;outline:none} .stack{display:flex;flex-direction:column;gap:16px} @@ -134,10 +134,6 @@ code{font:12px var(--mono);word-break:break-all} .fwrow{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)} .fwrow .chips{margin-top:6px} -/* Answered questions fill a row of small keys */ -.keybar{display:flex;gap:2px;height:20px;margin:-2px 0 12px;max-width:100%} -.keybar .k{flex:1;max-width:14px;min-width:3px;border:1px solid var(--line2);border-top:0;border-radius:0 0 3px 3px;background:var(--panel2)} -.keybar .k.on{background:var(--ink);border-color:var(--ink)} .section{margin-top:4px} .reqs{display:flex;flex-direction:column} .req{padding:16px 0;border-bottom:1px solid var(--line)} @@ -207,7 +203,6 @@ h2.badh .i{color:var(--bad)} #main{padding:14px} .top{padding:10px 14px 8px;gap:6px} .tabs{padding:4px 10px 0} - .keys{background-position:10px 0} .packs{grid-template-columns:1fr} } @media (max-width:560px){ diff --git a/src/ui/main.js b/src/ui/main.js index 93cecf8..0fce648 100644 --- a/src/ui/main.js +++ b/src/ui/main.js @@ -142,7 +142,7 @@ function init() { $header = h('header', { class: 'top' }); $tabs = h('nav', { class: 'tabs', role: 'tablist', 'aria-label': t('tabsLabel') }); $main = h('main', { id: 'main', tabindex: '-1' }); - const chrome = h('div', { class: 'chrome' }, $header, $tabs, h('div', { class: 'keys', 'aria-hidden': 'true' })); + const chrome = h('div', { class: 'chrome' }, $header, $tabs); $app.append(chrome, $main, h('div', { id: 'toasts', 'aria-live': 'polite' })); const fit = () => document.documentElement.style.setProperty('--chrome', chrome.offsetHeight + 'px'); if (window.ResizeObserver) new ResizeObserver(fit).observe(chrome); diff --git a/src/ui/reqs.js b/src/ui/reqs.js index a3db9eb..e422a08 100644 --- a/src/ui/reqs.js +++ b/src/ui/reqs.js @@ -13,17 +13,10 @@ function refreshRiskAction(f, it) { if (el) put(el, riskAction(f, it)); } -function keybar(f, pg) { - return h('div', { class: 'keybar', id: 'kb-' + f.id, 'aria-hidden': 'true' }, - Array.from({ length: pg.total }, (_, i) => h('span', { class: 'k' + (i < pg.answered ? ' on' : '') }))); -} - function refreshProgress(f) { const el = document.getElementById('pg-' + f.id); const pg = P.progress(A)[f.id]; if (el && pg) el.textContent = t('answered', { a: pg.answered, t: pg.total }); - const bar = document.getElementById('kb-' + f.id); - if (bar && pg) bar.replaceWith(keybar(f, pg)); } function requirementItem(f, it) { @@ -53,7 +46,6 @@ function requirementsView() { h('div', { class: 'card-head' }, h('h2', null, tx(f.data.title)), h('span', { class: 'chips' }, chip(lbl('obligation', f.data.obligation), 'ob ' + f.data.obligation), appliesChip(A, f.id), h('span', { class: 'chip', id: 'pg-' + f.id }, t('answered', { a: prog[f.id].answered, t: prog[f.id].total })))), - keybar(f, prog[f.id]), h('p', { class: 'muted small' }, tx(f.data.law)), P.applicability(A, f.id) === 'unknown' ? h('p', { class: 'note' }, t('screeningOpen')) : null, f.data.sections.map((s) => h('div', { class: 'section' }, h('h3', null, tx(s.title)), h('div', { class: 'reqs' }, s.items.map((it) => requirementItem(f, it))))))),