pandorga 2.2.6 → 2.2.7
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/assets/css/ledger/home.css +28 -3
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-regression-gate.mjs +38 -7
- 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: 1df146552579c2a65aeea261408554cacdb4e7f62fdb404a78855396b470b85e
|
|
4
|
+
data.tar.gz: 3bfd2c1479e7bd990173b19c2813e4c14aecec39eface05ad9d9175cf5ba8faf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c9fbe2f93d442131abe0cf95805cf7dca0adf85146a67ff4e346b4ca6904cf4f3810b6019a5a2ecfe31e7d6c8d668ccaea5cf10cfc7b91de0b9fa0c42782f9d
|
|
7
|
+
data.tar.gz: c35afcb7c7c72b11c369587fb79d6fb994134fad47bb030477ccb6bfdc8267fcc2d32580079809f96e0c1c0b0ad799674593082beaf291dfbfc8099175a31cef
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.2.7] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- CR-21e: Desktop Explore specimen (≥900px) plate +25% to ~383.3×215.6 (exact 16:9); card width follows plate + padding; specimen meta/title/copy/chips/footer type −2pt. Inventory glyphs and CR-21d column/label rules unchanged. Mobile unchanged (PLT-AC-78).
|
|
10
|
+
|
|
5
11
|
## [2.2.6] — 2026-10-29
|
|
6
12
|
|
|
7
13
|
### Changed
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -1349,10 +1349,10 @@ button.home-project-inventory-row {
|
|
|
1349
1349
|
@media (min-width: 900px) {
|
|
1350
1350
|
|
|
1351
1351
|
/* Inventory left of specimen, flush to card (gap ≤ 2× button gap);
|
|
1352
|
-
column width = button width; plate 16:9 at ~
|
|
1353
|
-
plate + padding; visible Explore label removed (CR-21d). */
|
|
1352
|
+
column width = button width; plate 16:9 at ~215.6×383.3 (+25% CR-21e);
|
|
1353
|
+
card hugs plate + padding; visible Explore label removed (CR-21d). */
|
|
1354
1354
|
.home-projects-bench {
|
|
1355
|
-
--home-specimen-plate-height:
|
|
1355
|
+
--home-specimen-plate-height: 12.25rem; /* ~215.6px at 17.6 root (+25% vs 2.2.6) */
|
|
1356
1356
|
--home-specimen-plate-width: calc(var(--home-specimen-plate-height) * 16 / 9);
|
|
1357
1357
|
--home-specimen-max-width: calc(var(--home-specimen-plate-width) + 2 * var(--space-md));
|
|
1358
1358
|
display: grid;
|
|
@@ -1446,6 +1446,31 @@ button.home-project-inventory-row {
|
|
|
1446
1446
|
margin-left: auto;
|
|
1447
1447
|
flex: 0 1 auto;
|
|
1448
1448
|
}
|
|
1449
|
+
|
|
1450
|
+
/* CR-21e: specimen card type −2pt (desktop only). Inventory glyphs untouched. */
|
|
1451
|
+
.home-specimen-strip .ledger-meta,
|
|
1452
|
+
.home-specimen-strip > .ledger-status {
|
|
1453
|
+
font-size: calc(var(--type-label-lg) - 2pt);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.home-project-specimen .home-specimen-title,
|
|
1457
|
+
.home-project-specimen .ledger-card-title {
|
|
1458
|
+
font-size: calc(var(--type-card-lg) - 2pt);
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
.home-project-specimen .ledger-card-copy {
|
|
1462
|
+
font-size: calc(var(--type-body) - 2pt);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.home-project-specimen .ledger-chip {
|
|
1466
|
+
font-size: calc(var(--type-cta) - 2pt);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.home-specimen-foot .ledger-cta,
|
|
1470
|
+
.home-specimen-foot .home-specimen-open,
|
|
1471
|
+
.home-project-specimen .home-specimen-open {
|
|
1472
|
+
font-size: calc(var(--type-cta) - 2pt);
|
|
1473
|
+
}
|
|
1449
1474
|
}
|
|
1450
1475
|
|
|
1451
1476
|
/* ── 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.7"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -323,24 +323,55 @@ 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 ~plate+padding cap (~
|
|
326
|
+
if (sw > 460) {
|
|
327
|
+
errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds ~plate+padding cap (~460) (PLT-AC-78)');
|
|
328
328
|
}
|
|
329
329
|
const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate');
|
|
330
330
|
if (plate) {
|
|
331
331
|
const pr = plate.getBoundingClientRect();
|
|
332
332
|
const ph = pr.height;
|
|
333
333
|
const pw = pr.width;
|
|
334
|
-
// CR-
|
|
335
|
-
if (ph <
|
|
336
|
-
errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) not in
|
|
334
|
+
// CR-21e: +25% vs 2.2.6 → ~215.6×383.3 (12.25rem), 16:9
|
|
335
|
+
if (ph < 200 || ph > 230) {
|
|
336
|
+
errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) not in 200–230px band (~215.6 target) (PLT-AC-78)');
|
|
337
337
|
}
|
|
338
338
|
const expectW = ph * 16 / 9;
|
|
339
|
-
if (Math.abs(pw - expectW) > 12 && Math.abs(pw -
|
|
340
|
-
errors.push('Specimen plate width (' + pw.toFixed(2) + 'px) not ~16:9 of height (expect ~' + expectW.toFixed(1) + ') (PLT-AC-
|
|
339
|
+
if (Math.abs(pw - expectW) > 12 && Math.abs(pw - 383.3) > 12) {
|
|
340
|
+
errors.push('Specimen plate width (' + pw.toFixed(2) + 'px) not ~16:9 of height (expect ~' + expectW.toFixed(1) + ') (PLT-AC-78)');
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
// CR-21e: specimen card type −2pt vs token baseline
|
|
345
|
+
{
|
|
346
|
+
const pt = 2 * (96 / 72);
|
|
347
|
+
const parseToken = (raw) => {
|
|
348
|
+
raw = (raw || '').trim();
|
|
349
|
+
let v = parseFloat(raw);
|
|
350
|
+
if (!isFinite(v)) return null;
|
|
351
|
+
if (raw.endsWith('rem')) v *= rootFs;
|
|
352
|
+
return v;
|
|
353
|
+
};
|
|
354
|
+
const checks = [
|
|
355
|
+
{ sel: '.home-specimen-strip .ledger-meta', token: '--type-label-lg', name: 'meta' },
|
|
356
|
+
{ sel: '.home-project-specimen .home-specimen-title, .home-project-specimen .ledger-card-title', token: '--type-card-lg', name: 'title' },
|
|
357
|
+
{ sel: '.home-project-specimen .ledger-card-copy', token: '--type-body', name: 'copy' },
|
|
358
|
+
{ sel: '.home-project-specimen .ledger-chip', token: '--type-cta', name: 'chip' },
|
|
359
|
+
{ sel: '.home-specimen-foot .ledger-cta, .home-project-specimen .home-specimen-open', token: '--type-cta', name: 'foot' }
|
|
360
|
+
];
|
|
361
|
+
const root = document.documentElement;
|
|
362
|
+
checks.forEach((c) => {
|
|
363
|
+
const el = document.querySelector(c.sel);
|
|
364
|
+
if (!el) return;
|
|
365
|
+
const base = parseToken(getComputedStyle(root).getPropertyValue(c.token));
|
|
366
|
+
if (base == null) return;
|
|
367
|
+
const expect = base - pt;
|
|
368
|
+
const got = parseFloat(getComputedStyle(el).fontSize);
|
|
369
|
+
if (Math.abs(got - expect) > 1.5) {
|
|
370
|
+
errors.push('Specimen ' + c.name + ' font-size (' + got.toFixed(2) + 'px) not within 1.5px of token−2pt (' + expect.toFixed(2) + 'px) (PLT-AC-78)');
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
|
|
344
375
|
// CR-21d: column flush to card; wrap/inventory width == button width
|
|
345
376
|
const wrap = document.querySelector('.home-projects-inventory-wrap');
|
|
346
377
|
const inv = document.querySelector('.home-project-inventory');
|