Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 7 additions & 9 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</p>

<p align="center">
<img src="docs/screenshots/10-requirements-fr.png" width="900" alt="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">
<img src="docs/screenshots/10-requirements-fr.png" width="900" alt="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">
</p>

<p align="center"><a href="README.md">Read in English</a></p>
Expand All @@ -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

Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</p>

<p align="center">
<img src="docs/screenshots/05-requirements.png" width="900" alt="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">
<img src="docs/screenshots/05-requirements.png" width="900" alt="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">
</p>

<p align="center"><a href="README.fr.md">Lire en français</a></p>
Expand Down Expand Up @@ -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.

<table>
<tr>
Expand Down
10 changes: 6 additions & 4 deletions docs/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified docs/screenshots/01-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/02-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/03-screening.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/04-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/05-requirements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/06-transfers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/07-risks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/08-conclusion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/09-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/10-requirements-fr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/11-verify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/12-risks-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/13-phone-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 3 additions & 16 deletions piano.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -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)}
Expand Down Expand Up @@ -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){
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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))))))),
Expand Down Expand Up @@ -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);
Expand Down
9 changes: 2 additions & 7 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -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)}
Expand Down Expand Up @@ -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){
Expand Down
2 changes: 1 addition & 1 deletion src/ui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 0 additions & 8 deletions src/ui/reqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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))))))),
Expand Down
Loading