pandorga 2.2.5 → 2.2.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/_includes/home/band-listing.html +1 -2
- data/assets/css/ledger/home.css +50 -27
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-css-structure.rb +5 -7
- data/scripts/test/test-lighthouse-policy.rb +1 -1
- data/scripts/test/test-regression-gate.mjs +71 -17
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef6153a25ab7b1fa90afeb9854f638af617c7a7e2469e642c44e997444a285e2
|
|
4
|
+
data.tar.gz: 0c58e4df254adb1aa931699004999afce2a09d282ef902d6ebf6f2c355d461a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea9144c3180afbb419a78e50295897b902365f867a00a2413b97be5eef8051126fbfed085a2f9a3409e01cedb2fd7ba707dceb8cd861c4a175ae5d7d777f6cdf
|
|
7
|
+
data.tar.gz: 8318504a597f7baace4fe7591e5d617507040c79c08cd45854c1c627c336d57cd24a27799c95eb0700c420ffa3298c9716528cc4b474414e968d170f6b971531
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.2.6] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- CR-21d: Desktop Explore projects (≥900px) specimen plate is 16:9 at ~172.5×306.7; card hugs plate + padding with clean wrap; inventory column width equals button width; column-to-card gap ≤ 2× button gap; visible "Explore projects" label removed (aria-label on the inventory group) on desktop and mobile. CR-21c glyphs (+6pt, ≥70% fill) kept. Gate: 16:9 ±1% on plates, label hidden, column width/gap asserts (PLT-AC-77).
|
|
10
|
+
|
|
5
11
|
## [2.2.5] — 2026-10-29
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -56,8 +56,7 @@
|
|
|
56
56
|
data-tag-base="{{ _path }}"
|
|
57
57
|
>
|
|
58
58
|
<div class="home-projects-inventory-wrap">
|
|
59
|
-
<
|
|
60
|
-
<div class="home-project-inventory" data-home-inventory role="region" aria-label="Project inventory"></div>
|
|
59
|
+
<div class="home-project-inventory" data-home-inventory role="region" aria-label="Explore projects"></div>
|
|
61
60
|
</div>
|
|
62
61
|
<div class="home-project-specimen-slot" data-home-specimen></div>
|
|
63
62
|
</div>
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -1004,13 +1004,16 @@ html[data-theme="light"] .home-hero-plate {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
.home-projects-inventory-label {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1007
|
+
/* CR-21d: visible label removed; group uses aria-label="Explore projects". */
|
|
1008
|
+
position: absolute;
|
|
1009
|
+
width: 1px;
|
|
1010
|
+
height: 1px;
|
|
1011
|
+
padding: 0;
|
|
1012
|
+
margin: -1px;
|
|
1013
|
+
overflow: hidden;
|
|
1014
|
+
clip: rect(0, 0, 0, 0);
|
|
1015
|
+
white-space: nowrap;
|
|
1016
|
+
border: 0;
|
|
1014
1017
|
}
|
|
1015
1018
|
|
|
1016
1019
|
.home-project-inventory {
|
|
@@ -1345,14 +1348,16 @@ button.home-project-inventory-row {
|
|
|
1345
1348
|
|
|
1346
1349
|
@media (min-width: 900px) {
|
|
1347
1350
|
|
|
1348
|
-
/* Inventory left of specimen,
|
|
1349
|
-
|
|
1351
|
+
/* Inventory left of specimen, flush to card (gap ≤ 2× button gap);
|
|
1352
|
+
column width = button width; plate 16:9 at ~172.5×306.7; card hugs
|
|
1353
|
+
plate + padding; visible Explore label removed (CR-21d). */
|
|
1350
1354
|
.home-projects-bench {
|
|
1351
|
-
--home-specimen-
|
|
1352
|
-
--home-specimen-plate-
|
|
1355
|
+
--home-specimen-plate-height: 9.8rem; /* ~172.5px at 17.6 root */
|
|
1356
|
+
--home-specimen-plate-width: calc(var(--home-specimen-plate-height) * 16 / 9);
|
|
1357
|
+
--home-specimen-max-width: calc(var(--home-specimen-plate-width) + 2 * var(--space-md));
|
|
1353
1358
|
display: grid;
|
|
1354
|
-
grid-template-columns:
|
|
1355
|
-
column-gap: var(--space-
|
|
1359
|
+
grid-template-columns: var(--home-icon-btn-size) minmax(0, 1fr);
|
|
1360
|
+
column-gap: calc(var(--space-xs) * 2); /* ≤ 2× stacked button gap (~8.8px) */
|
|
1356
1361
|
justify-content: start;
|
|
1357
1362
|
align-items: start;
|
|
1358
1363
|
}
|
|
@@ -1360,29 +1365,30 @@ button.home-project-inventory-row {
|
|
|
1360
1365
|
.home-projects-inventory-wrap {
|
|
1361
1366
|
display: flex;
|
|
1362
1367
|
flex-direction: column;
|
|
1363
|
-
align-items:
|
|
1364
|
-
gap:
|
|
1365
|
-
width:
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
width: 100%;
|
|
1368
|
+
align-items: stretch;
|
|
1369
|
+
gap: 0;
|
|
1370
|
+
width: var(--home-icon-btn-size);
|
|
1371
|
+
max-width: var(--home-icon-btn-size);
|
|
1372
|
+
min-width: var(--home-icon-btn-size);
|
|
1373
|
+
box-sizing: border-box;
|
|
1374
|
+
padding: 0;
|
|
1375
|
+
margin: 0;
|
|
1372
1376
|
}
|
|
1373
1377
|
|
|
1374
1378
|
.home-project-inventory {
|
|
1375
1379
|
order: 0;
|
|
1376
1380
|
display: flex;
|
|
1377
1381
|
flex-direction: column;
|
|
1378
|
-
align-items:
|
|
1382
|
+
align-items: stretch;
|
|
1379
1383
|
gap: var(--space-xs);
|
|
1380
1384
|
box-sizing: border-box;
|
|
1381
|
-
width:
|
|
1385
|
+
width: var(--home-icon-btn-size);
|
|
1386
|
+
max-width: var(--home-icon-btn-size);
|
|
1387
|
+
min-width: var(--home-icon-btn-size);
|
|
1382
1388
|
min-height: 0;
|
|
1383
|
-
min-width: 0;
|
|
1384
1389
|
overflow: visible;
|
|
1385
1390
|
padding: 0;
|
|
1391
|
+
margin: 0;
|
|
1386
1392
|
background: transparent;
|
|
1387
1393
|
}
|
|
1388
1394
|
|
|
@@ -1408,10 +1414,11 @@ button.home-project-inventory-row {
|
|
|
1408
1414
|
|
|
1409
1415
|
.home-specimen-figure > .ledger-poster,
|
|
1410
1416
|
.home-specimen-figure > .projects-plate {
|
|
1411
|
-
width:
|
|
1417
|
+
width: var(--home-specimen-plate-width);
|
|
1418
|
+
max-width: 100%;
|
|
1412
1419
|
height: var(--home-specimen-plate-height);
|
|
1413
1420
|
max-height: var(--home-specimen-plate-height);
|
|
1414
|
-
aspect-ratio:
|
|
1421
|
+
aspect-ratio: 16 / 9;
|
|
1415
1422
|
overflow: hidden;
|
|
1416
1423
|
}
|
|
1417
1424
|
|
|
@@ -1423,6 +1430,22 @@ button.home-project-inventory-row {
|
|
|
1423
1430
|
object-fit: cover;
|
|
1424
1431
|
object-position: center;
|
|
1425
1432
|
}
|
|
1433
|
+
|
|
1434
|
+
/* Narrower card: footer actions may wrap to two lines cleanly. */
|
|
1435
|
+
.home-specimen-foot {
|
|
1436
|
+
flex-wrap: wrap;
|
|
1437
|
+
row-gap: var(--space-sm);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.home-specimen-foot .ledger-card-links {
|
|
1441
|
+
flex: 1 1 auto;
|
|
1442
|
+
min-width: 0;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.home-specimen-open {
|
|
1446
|
+
margin-left: auto;
|
|
1447
|
+
flex: 0 1 auto;
|
|
1448
|
+
}
|
|
1426
1449
|
}
|
|
1427
1450
|
|
|
1428
1451
|
/* ── Reference band: Sources + Network of Ideas ──────────────────────────
|
|
@@ -24,7 +24,7 @@ module Pandorga
|
|
|
24
24
|
|
|
25
25
|
gem "pandorga", "~> 2.0"
|
|
26
26
|
# Local checkout: gem "pandorga", path: "../pandorga"
|
|
27
|
-
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.2.
|
|
27
|
+
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.2.6"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -225,12 +225,10 @@ sheets.each do |path|
|
|
|
225
225
|
end
|
|
226
226
|
end
|
|
227
227
|
|
|
228
|
-
# PLT-AC-41. Home project inventory rows use the square icon mark
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
# height, rack titles use --type-card, the specimen strip wraps instead of
|
|
233
|
-
# clipping, and below 900px the rack tile glyphs are 1.375rem.
|
|
228
|
+
# PLT-AC-41 / CR-21d. Home project inventory rows use the square icon mark;
|
|
229
|
+
# desktop bench is a button-width track + specimen with column-gap ≤ 2×
|
|
230
|
+
# button gap; specimen plate is 16:9; rack titles use --type-card; below
|
|
231
|
+
# 900px the rack tile glyphs are calc(1.375rem + 2pt).
|
|
234
232
|
home_sheet = strip_comments(File.read(CSS_ROOT.join("ledger/home.css")))
|
|
235
233
|
%w[
|
|
236
234
|
home-project-inventory-copy
|
|
@@ -247,7 +245,7 @@ require_declarations(
|
|
|
247
245
|
)
|
|
248
246
|
require_declarations(
|
|
249
247
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
250
|
-
".home-projects-bench", ["grid-template-columns:
|
|
248
|
+
".home-projects-bench", ["grid-template-columns: var(--home-icon-btn-size) minmax(0, 1fr)", "column-gap: calc(var(--space-xs) * 2)", "justify-content: start"]
|
|
251
249
|
)
|
|
252
250
|
require_declarations(
|
|
253
251
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
@@ -98,7 +98,7 @@ fail!("content runtime still precedes the page") unless shell.index("{{ content
|
|
|
98
98
|
band = File.read(File.expand_path("../../_includes/home/band-listing.html", __dir__))
|
|
99
99
|
fail!("band title is still painted by script") unless band.include?('data-content-section-title>{{ _title }}')
|
|
100
100
|
fail!("band note is still painted by script") unless band.include?("page_headers")
|
|
101
|
-
fail!("project inventory has a name and no role") unless band.include?('role="region"') && band.include?('aria-label="
|
|
101
|
+
fail!("project inventory has a name and no role") unless band.include?('role="region"') && band.include?('aria-label="Explore projects"')
|
|
102
102
|
headers = File.read(File.expand_path("../../_plugins/content_headers.rb", __dir__))
|
|
103
103
|
fail!("page headers are not loaded at build time") unless headers.include?('site.data["page_headers"]')
|
|
104
104
|
page_header = File.read(File.expand_path("../../_includes/page/page-header.html", __dir__))
|
|
@@ -247,7 +247,7 @@ const ASSERT_EXPRESSION = `
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
|
|
250
|
-
// 6. CR-21b/c glyph/border/specimen +
|
|
250
|
+
// 6. CR-21b/c/d glyph/border/specimen + 16:9/label/gap (PLT-AC-75/76/77)
|
|
251
251
|
{
|
|
252
252
|
const bench = document.querySelector('.home-projects-bench');
|
|
253
253
|
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
@@ -323,39 +323,93 @@ const ASSERT_EXPRESSION = `
|
|
|
323
323
|
const specimen = document.querySelector('.home-project-specimen');
|
|
324
324
|
if (specimen) {
|
|
325
325
|
const sw = specimen.getBoundingClientRect().width;
|
|
326
|
-
if (sw >
|
|
327
|
-
errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds
|
|
326
|
+
if (sw > 450) {
|
|
327
|
+
errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds ~plate+padding cap (~450) (PLT-AC-77)');
|
|
328
328
|
}
|
|
329
329
|
const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate');
|
|
330
330
|
if (plate) {
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
331
|
+
const pr = plate.getBoundingClientRect();
|
|
332
|
+
const ph = pr.height;
|
|
333
|
+
const pw = pr.width;
|
|
334
|
+
// CR-21d: ~172.5px height (9.8rem), 16:9 → ~306.7 wide (allow ±12px)
|
|
335
|
+
if (ph < 160 || ph > 185) {
|
|
336
|
+
errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) not in 160–185px band (~172.5 target) (PLT-AC-77)');
|
|
337
|
+
}
|
|
338
|
+
const expectW = ph * 16 / 9;
|
|
339
|
+
if (Math.abs(pw - expectW) > 12 && Math.abs(pw - 306.7) > 12) {
|
|
340
|
+
errors.push('Specimen plate width (' + pw.toFixed(2) + 'px) not ~16:9 of height (expect ~' + expectW.toFixed(1) + ') (PLT-AC-77)');
|
|
335
341
|
}
|
|
336
342
|
}
|
|
337
343
|
|
|
338
|
-
// CR-
|
|
344
|
+
// CR-21d: column flush to card; wrap/inventory width == button width
|
|
339
345
|
const wrap = document.querySelector('.home-projects-inventory-wrap');
|
|
340
|
-
const
|
|
346
|
+
const inv = document.querySelector('.home-project-inventory');
|
|
341
347
|
const firstRow = document.querySelector('.home-project-inventory-row');
|
|
342
348
|
if (wrap && firstRow) {
|
|
343
|
-
const wR = wrap.getBoundingClientRect()
|
|
344
|
-
const rR = firstRow.getBoundingClientRect()
|
|
345
|
-
if (Math.abs(wR - rR) > 2.5) {
|
|
346
|
-
errors.push('Inventory row right (' + rR.toFixed(2) + ') not aligned to wrap right (' + wR.toFixed(2) + ') (PLT-AC-76)');
|
|
349
|
+
const wR = wrap.getBoundingClientRect();
|
|
350
|
+
const rR = firstRow.getBoundingClientRect();
|
|
351
|
+
if (Math.abs(wR.right - rR.right) > 2.5) {
|
|
352
|
+
errors.push('Inventory row right (' + rR.right.toFixed(2) + ') not aligned to wrap right (' + wR.right.toFixed(2) + ') (PLT-AC-76)');
|
|
353
|
+
}
|
|
354
|
+
if (wR.width - rR.width > 0.5) {
|
|
355
|
+
errors.push('Inventory column width (' + wR.width.toFixed(2) + ') > button width (' + rR.width.toFixed(2) + ') by >0.5px (PLT-AC-77)');
|
|
347
356
|
}
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
errors.push('Inventory
|
|
357
|
+
if (inv) {
|
|
358
|
+
const iW = inv.getBoundingClientRect().width;
|
|
359
|
+
if (iW - rR.width > 0.5) {
|
|
360
|
+
errors.push('Inventory box width (' + iW.toFixed(2) + ') > button width (' + rR.width.toFixed(2) + ') by >0.5px (PLT-AC-77)');
|
|
352
361
|
}
|
|
353
362
|
}
|
|
363
|
+
const gap = specimen.getBoundingClientRect().left - wR.right;
|
|
364
|
+
if (gap > 16.5 || gap < -0.5) {
|
|
365
|
+
errors.push('Column-to-card gap (' + gap.toFixed(2) + 'px) not in 0–16px (PLT-AC-77)');
|
|
366
|
+
}
|
|
354
367
|
}
|
|
355
368
|
}
|
|
356
369
|
}
|
|
357
370
|
}
|
|
358
371
|
|
|
372
|
+
// CR-21d: Explore projects label not visible at any width; aria-label on group
|
|
373
|
+
{
|
|
374
|
+
const label = document.querySelector('.home-projects-inventory-label');
|
|
375
|
+
if (label) {
|
|
376
|
+
const cs = getComputedStyle(label);
|
|
377
|
+
const r = label.getBoundingClientRect();
|
|
378
|
+
const hidden = cs.display === 'none' || cs.visibility === 'hidden' || cs.opacity === '0'
|
|
379
|
+
|| (r.width <= 1 && r.height <= 1) || cs.clip === 'rect(0px, 0px, 0px, 0px)'
|
|
380
|
+
|| (cs.position === 'absolute' && r.width <= 1);
|
|
381
|
+
if (!hidden) {
|
|
382
|
+
errors.push('Explore projects label still visible (' + r.width.toFixed(1) + 'x' + r.height.toFixed(1) + ') (PLT-AC-77)');
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
const inv = document.querySelector('.home-project-inventory');
|
|
386
|
+
if (inv) {
|
|
387
|
+
const aria = (inv.getAttribute('aria-label') || '').trim().toLowerCase();
|
|
388
|
+
if (aria !== 'explore projects') {
|
|
389
|
+
errors.push('Inventory aria-label is "' + (inv.getAttribute('aria-label') || '') + '", expected "Explore projects" (PLT-AC-77)');
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// CR-21d / PLT-AC-77: every home specimen / project / card poster plate is 16:9 ±1%
|
|
395
|
+
{
|
|
396
|
+
const plates = document.querySelectorAll(
|
|
397
|
+
'.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate, ' +
|
|
398
|
+
'.home-card-grid .ledger-poster, .home-card-grid .projects-plate, ' +
|
|
399
|
+
'.projects-page .ledger-system-card > .ledger-poster, .projects-page .ledger-system-card > .projects-plate, ' +
|
|
400
|
+
'.projects-page .projects-plate--mark'
|
|
401
|
+
);
|
|
402
|
+
plates.forEach((el, idx) => {
|
|
403
|
+
const r = el.getBoundingClientRect();
|
|
404
|
+
if (r.width < 8 || r.height < 8) return;
|
|
405
|
+
const ratio = r.width / r.height;
|
|
406
|
+
const target = 16 / 9;
|
|
407
|
+
if (Math.abs(ratio - target) / target > 0.01) {
|
|
408
|
+
errors.push('Plate #' + idx + ' ratio ' + ratio.toFixed(4) + ' not within 1% of 16:9 (PLT-AC-77)');
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
|
|
359
413
|
return { errors };
|
|
360
414
|
})()
|
|
361
415
|
`;
|