pandorga 2.2.3 → 2.2.5
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 +12 -0
- data/_layouts/home.html +19 -1
- data/assets/css/ledger/home.css +56 -10
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-regression-gate.mjs +73 -4
- data/scripts/test/test-v3-layout.rb +1 -1
- 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: 3509a9e64766a27810d07f6e992090283dfa4cd9d327dbddb1935a8e8a0f9200
|
|
4
|
+
data.tar.gz: 645079629c94e08f1bcf2a862d848d399ad13c0dd469572f3a09fb245b5d82a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5283fee4020d59f6280b0fc515cbcea4f9278da53531edb938b40243dfa7d68755cf312a23f8a783c58cb1e6e7b8f083f8ab09f115a39e121723d5e71522fbb8
|
|
7
|
+
data.tar.gz: 418cf100b845984ed48811cdc6a65c85ca133dd6de7c030073c5a455470b5873eb93bb634f48cdd475a74fc6d0efdcce7e7cb7812b4b0d078af9a135d183f907
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.2.5] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- CR-21c: Desktop Explore projects (≥900px) plate height ~60% of 2.2.4 (~217px) with `object-fit: cover`; inventory glyphs +6pt (`calc(1.375rem + 8pt)`, ≥70% of button height); inventory label and button stack right-aligned toward the specimen. Mobile unchanged (PLT-AC-76).
|
|
10
|
+
|
|
11
|
+
## [2.2.4] — 2026-10-29
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- CR-21b: Desktop Explore projects inventory glyphs use the mobile CR-16 size (`calc(1.375rem + 2pt)` via the two-class selector at every breakpoint) so Material Symbols cannot inherit the body size; inventory buttons use a visible `--border-gentle` frame on every state; desktop specimen capped at 680px wide with plate `max-height: 45vh`, and the height-lock probe respects `--home-specimen-max-width` (PLT-AC-75).
|
|
16
|
+
|
|
5
17
|
## [2.2.3] — 2026-10-29
|
|
6
18
|
|
|
7
19
|
### Changed
|
data/_layouts/home.html
CHANGED
|
@@ -348,7 +348,25 @@ layout: shell
|
|
|
348
348
|
async function measureTallestSpecimen() {
|
|
349
349
|
var bench = specimenSlot.closest('.home-projects-bench');
|
|
350
350
|
if (!bench) return 0;
|
|
351
|
-
var
|
|
351
|
+
var slotWidth = specimenSlot.getBoundingClientRect().width;
|
|
352
|
+
if (slotWidth < 1) return 0;
|
|
353
|
+
var benchEl = specimenSlot.closest('.home-projects-bench');
|
|
354
|
+
var maxW = 680;
|
|
355
|
+
if (benchEl) {
|
|
356
|
+
var rawMax = getComputedStyle(benchEl).getPropertyValue('--home-specimen-max-width').trim();
|
|
357
|
+
if (rawMax) {
|
|
358
|
+
var parsed = parseFloat(rawMax);
|
|
359
|
+
if (rawMax.endsWith('rem')) {
|
|
360
|
+
var rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
361
|
+
parsed = parsed * rootFs;
|
|
362
|
+
}
|
|
363
|
+
if (parsed > 0) maxW = parsed;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
/* Below 900px the max-width token is unset; use the full slot. */
|
|
367
|
+
var width = benchEl && getComputedStyle(benchEl).getPropertyValue('--home-specimen-max-width').trim()
|
|
368
|
+
? Math.min(slotWidth, maxW)
|
|
369
|
+
: slotWidth;
|
|
352
370
|
if (width < 1) return 0;
|
|
353
371
|
|
|
354
372
|
var probe = document.createElement('div');
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -1173,16 +1173,20 @@ html[data-theme="light"] .home-hero-plate {
|
|
|
1173
1173
|
.home-specimen-figure:has(> .ledger-poster)>.home-specimen-badge {
|
|
1174
1174
|
font-size: calc(1.375rem + 2pt);
|
|
1175
1175
|
}
|
|
1176
|
+
}
|
|
1176
1177
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1178
|
+
/* Two/three classes at every breakpoint: beat Material Symbols
|
|
1179
|
+
`font-size: inherit` so desktop inventory glyphs match mobile CR-16 (~26.9px). */
|
|
1180
|
+
.home-project-inventory-row .home-project-inventory-glyph {
|
|
1181
|
+
font-size: calc(1.375rem + 2pt);
|
|
1182
|
+
}
|
|
1182
1183
|
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
.home-project-inventory-row .home-project-inventory-glyph.material-symbols-outlined {
|
|
1185
|
+
font-size: calc(1.375rem + 2pt);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.home-project-inventory-row .home-project-inventory-glyph--initial {
|
|
1189
|
+
font-size: var(--type-card);
|
|
1186
1190
|
}
|
|
1187
1191
|
|
|
1188
1192
|
.home-project-specimen .home-specimen-title {
|
|
@@ -1289,7 +1293,7 @@ button.home-project-inventory-row {
|
|
|
1289
1293
|
min-width: 0;
|
|
1290
1294
|
height: var(--home-icon-btn-size);
|
|
1291
1295
|
padding: 0;
|
|
1292
|
-
border: 1px solid var(--border-
|
|
1296
|
+
border: 1px solid var(--border-gentle);
|
|
1293
1297
|
background: var(--color-surface-card);
|
|
1294
1298
|
cursor: pointer;
|
|
1295
1299
|
transition: background-color var(--motion-duration-fast) var(--motion-ease-default),
|
|
@@ -1341,8 +1345,11 @@ button.home-project-inventory-row {
|
|
|
1341
1345
|
|
|
1342
1346
|
@media (min-width: 900px) {
|
|
1343
1347
|
|
|
1344
|
-
/*
|
|
1348
|
+
/* Inventory left of specimen, contents right-aligned toward the card;
|
|
1349
|
+
specimen 680px; plate ~60% of 2.2.4 height with cover crop (CR-21c). */
|
|
1345
1350
|
.home-projects-bench {
|
|
1351
|
+
--home-specimen-max-width: 680px;
|
|
1352
|
+
--home-specimen-plate-height: 12.25rem; /* ~217px at 17.6 root */
|
|
1346
1353
|
display: grid;
|
|
1347
1354
|
grid-template-columns: max-content minmax(0, 1fr);
|
|
1348
1355
|
column-gap: var(--space-xl);
|
|
@@ -1353,14 +1360,22 @@ button.home-project-inventory-row {
|
|
|
1353
1360
|
.home-projects-inventory-wrap {
|
|
1354
1361
|
display: flex;
|
|
1355
1362
|
flex-direction: column;
|
|
1363
|
+
align-items: flex-end;
|
|
1356
1364
|
gap: var(--space-xs);
|
|
1357
1365
|
width: max-content;
|
|
1366
|
+
text-align: right;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.home-projects-inventory-label {
|
|
1370
|
+
text-align: right;
|
|
1371
|
+
width: 100%;
|
|
1358
1372
|
}
|
|
1359
1373
|
|
|
1360
1374
|
.home-project-inventory {
|
|
1361
1375
|
order: 0;
|
|
1362
1376
|
display: flex;
|
|
1363
1377
|
flex-direction: column;
|
|
1378
|
+
align-items: flex-end;
|
|
1364
1379
|
gap: var(--space-xs);
|
|
1365
1380
|
box-sizing: border-box;
|
|
1366
1381
|
width: max-content;
|
|
@@ -1377,6 +1392,37 @@ button.home-project-inventory-row {
|
|
|
1377
1392
|
height: var(--home-icon-btn-size);
|
|
1378
1393
|
flex: 0 0 auto;
|
|
1379
1394
|
}
|
|
1395
|
+
|
|
1396
|
+
/* Desktop-only: +6pt over the shared CR-16 size (PLT-AC-76).
|
|
1397
|
+
Leave --initial on --type-card (fixture + letter marks). */
|
|
1398
|
+
.home-project-inventory-row .home-project-inventory-glyph:not(.home-project-inventory-glyph--initial),
|
|
1399
|
+
.home-project-inventory-row .home-project-inventory-glyph.material-symbols-outlined {
|
|
1400
|
+
font-size: calc(1.375rem + 8pt);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.home-project-specimen {
|
|
1404
|
+
max-width: var(--home-specimen-max-width);
|
|
1405
|
+
width: 100%;
|
|
1406
|
+
justify-self: start;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.home-specimen-figure > .ledger-poster,
|
|
1410
|
+
.home-specimen-figure > .projects-plate {
|
|
1411
|
+
width: 100%;
|
|
1412
|
+
height: var(--home-specimen-plate-height);
|
|
1413
|
+
max-height: var(--home-specimen-plate-height);
|
|
1414
|
+
aspect-ratio: auto;
|
|
1415
|
+
overflow: hidden;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.home-specimen-figure > .ledger-poster img,
|
|
1419
|
+
.home-specimen-figure > .ledger-poster video {
|
|
1420
|
+
width: 100%;
|
|
1421
|
+
height: 100%;
|
|
1422
|
+
max-width: none;
|
|
1423
|
+
object-fit: cover;
|
|
1424
|
+
object-position: center;
|
|
1425
|
+
}
|
|
1380
1426
|
}
|
|
1381
1427
|
|
|
1382
1428
|
/* ── 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.5"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -247,17 +247,53 @@ const ASSERT_EXPRESSION = `
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
|
|
250
|
-
|
|
250
|
+
// 6. CR-21b/c glyph/border/specimen + desktop plate/align (PLT-AC-75/76)
|
|
251
|
+
{
|
|
251
252
|
const bench = document.querySelector('.home-projects-bench');
|
|
252
|
-
|
|
253
|
+
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
254
|
+
const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
255
|
+
// Mobile / shared: calc(1.375rem + 2pt). Desktop (>=900): +8pt (CR-21c).
|
|
256
|
+
const expectedGlyphMobile = 1.375 * rootFs + 2 * (96 / 72);
|
|
257
|
+
const expectedGlyphDesktop = 1.375 * rootFs + 8 * (96 / 72);
|
|
258
|
+
|
|
259
|
+
if (rows.length > 0) {
|
|
260
|
+
const first = rows[0];
|
|
261
|
+
const glyph = first.querySelector('.home-project-inventory-glyph');
|
|
262
|
+
if (glyph) {
|
|
263
|
+
const gfs = parseFloat(getComputedStyle(glyph).fontSize);
|
|
264
|
+
const gr = glyph.getBoundingClientRect();
|
|
265
|
+
const rowH = first.getBoundingClientRect().height;
|
|
266
|
+
const isInitial = glyph.classList.contains('home-project-inventory-glyph--initial');
|
|
267
|
+
let expectFs = window.innerWidth >= 900 && !isInitial ? expectedGlyphDesktop : expectedGlyphMobile;
|
|
268
|
+
if (isInitial) {
|
|
269
|
+
const rawCard = getComputedStyle(document.documentElement).getPropertyValue('--type-card').trim();
|
|
270
|
+
expectFs = parseFloat(rawCard) || expectedGlyphMobile;
|
|
271
|
+
if (rawCard.endsWith('rem')) expectFs = expectFs * rootFs;
|
|
272
|
+
}
|
|
273
|
+
if (Math.abs(gfs - expectFs) > 1.5) {
|
|
274
|
+
errors.push('Inventory glyph font-size (' + gfs.toFixed(2) + 'px) not within 1.5px of expected ' + expectFs.toFixed(2) + 'px (PLT-AC-75/76)');
|
|
275
|
+
}
|
|
276
|
+
if (!isInitial && window.innerWidth >= 900 && gfs < 22) {
|
|
277
|
+
errors.push('Desktop inventory icon glyph too small (' + gfs.toFixed(2) + 'px); Material Symbols inherit must not win (PLT-AC-75)');
|
|
278
|
+
}
|
|
279
|
+
// CR-21c: glyph fills most of the button (>= ~70% of row height)
|
|
280
|
+
if (window.innerWidth >= 900 && !isInitial && gr.height + 1.5 < 0.70 * rowH) {
|
|
281
|
+
errors.push('Desktop glyph height (' + gr.height.toFixed(2) + 'px) < 70% of button (' + rowH.toFixed(2) + 'px) (PLT-AC-76)');
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
const rcs = getComputedStyle(first);
|
|
285
|
+
if (Math.abs(parseFloat(rcs.borderTopWidth) - 1) > 0.5 || rcs.borderTopStyle !== 'solid') {
|
|
286
|
+
errors.push('Inventory row border is ' + rcs.borderTopWidth + ' ' + rcs.borderTopStyle + ', expected 1px solid (PLT-AC-75)');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (window.innerWidth >= 900 && bench) {
|
|
253
291
|
const rawSize = getComputedStyle(bench).getPropertyValue('--home-icon-btn-size').trim();
|
|
254
292
|
let iconSizePx = parseFloat(rawSize);
|
|
255
293
|
if (rawSize.endsWith('rem')) {
|
|
256
|
-
const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
257
294
|
iconSizePx = iconSizePx * rootFs;
|
|
258
295
|
}
|
|
259
296
|
|
|
260
|
-
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
261
297
|
if (rows.length > 0) {
|
|
262
298
|
let firstRowWidth = null;
|
|
263
299
|
rows.forEach((row, idx) => {
|
|
@@ -282,7 +318,40 @@ const ASSERT_EXPRESSION = `
|
|
|
282
318
|
errors.push('.home-project-inventory width (' + invWidth.toFixed(2) + 'px) > first row width + 12 (' + (firstRowWidth + 12).toFixed(2) + 'px)');
|
|
283
319
|
}
|
|
284
320
|
}
|
|
321
|
+
}
|
|
285
322
|
|
|
323
|
+
const specimen = document.querySelector('.home-project-specimen');
|
|
324
|
+
if (specimen) {
|
|
325
|
+
const sw = specimen.getBoundingClientRect().width;
|
|
326
|
+
if (sw > 682) {
|
|
327
|
+
errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds 680px cap (PLT-AC-75)');
|
|
328
|
+
}
|
|
329
|
+
const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate');
|
|
330
|
+
if (plate) {
|
|
331
|
+
const ph = plate.getBoundingClientRect().height;
|
|
332
|
+
// CR-21c: ~60% of prior ~361.6px → ~217px (allow 200–230)
|
|
333
|
+
if (ph < 200 || ph > 230) {
|
|
334
|
+
errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) not in 200–230px band (~217 target) (PLT-AC-76)');
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// CR-21c: inventory wrap contents right-aligned toward specimen
|
|
339
|
+
const wrap = document.querySelector('.home-projects-inventory-wrap');
|
|
340
|
+
const label = document.querySelector('.home-projects-inventory-label');
|
|
341
|
+
const firstRow = document.querySelector('.home-project-inventory-row');
|
|
342
|
+
if (wrap && firstRow) {
|
|
343
|
+
const wR = wrap.getBoundingClientRect().right;
|
|
344
|
+
const rR = firstRow.getBoundingClientRect().right;
|
|
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)');
|
|
347
|
+
}
|
|
348
|
+
if (label) {
|
|
349
|
+
const lR = label.getBoundingClientRect().right;
|
|
350
|
+
if (Math.abs(lR - wR) > 2.5) {
|
|
351
|
+
errors.push('Inventory label right (' + lR.toFixed(2) + ') not aligned to wrap right (' + wR.toFixed(2) + ') (PLT-AC-76)');
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
286
355
|
}
|
|
287
356
|
}
|
|
288
357
|
}
|
|
@@ -448,7 +448,7 @@ end
|
|
|
448
448
|
item(10) do
|
|
449
449
|
h = "ledger/home.css"
|
|
450
450
|
expect(h, ".home-project-inventory-row", {
|
|
451
|
-
background: "var(--color-surface-card)", "border" => "1px solid var(--border-
|
|
451
|
+
background: "var(--color-surface-card)", "border" => "1px solid var(--border-gentle)"
|
|
452
452
|
})
|
|
453
453
|
no_contrast_surface(h, /home-project/)
|
|
454
454
|
p = "ledger/projects.css"
|