pandorga 2.2.2 → 2.2.4
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 +41 -91
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-css-structure.rb +2 -2
- data/scripts/test/test-regression-gate.mjs +86 -0
- 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: c61cd9d37c273404f3e342efdf5391c89a076bd16b023f3e0e19729cba867067
|
|
4
|
+
data.tar.gz: b119bd7b5637821f6ca9ca6c72daae680862dd173d8422c218e86920743deb6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a06a5de81d97b6ae343c7aa33273c293dcfc28cfb6ecf5fe01cbc6e65be0e5f844179cc7384c3bad3c8ff4af41c99bc0130f005a7278b129555c3ccbaed2499
|
|
7
|
+
data.tar.gz: 143cb446e764ddf43a4d2187e902e543f7318ad3f3325d2bbdbbbe7c87504bd70d974d9b13a6c7112475cd1bea7ee36c385ece5e176d875a48c71a029c8a1a71
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.2.4] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- 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).
|
|
10
|
+
|
|
11
|
+
## [2.2.3] — 2026-10-29
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- CR-21: Desktop Explore projects inventory (≥900px) updated to a shrink-to-fit vertical stack of logo-only square buttons using the exact mobile button chrome, borders, hover, and selected states without wide bands or contrast panel surrounds (PLT-AC-74).
|
|
16
|
+
|
|
5
17
|
## [2.2.2] — 2026-10-28
|
|
6
18
|
|
|
7
19
|
### Added
|
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),
|
|
@@ -1301,6 +1305,10 @@ button.home-project-inventory-row {
|
|
|
1301
1305
|
display: none;
|
|
1302
1306
|
}
|
|
1303
1307
|
|
|
1308
|
+
.home-project-inventory-media {
|
|
1309
|
+
aspect-ratio: 1 / 1;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1304
1312
|
.home-project-inventory-glyph {
|
|
1305
1313
|
display: inline-flex;
|
|
1306
1314
|
align-items: center;
|
|
@@ -1337,115 +1345,57 @@ button.home-project-inventory-row {
|
|
|
1337
1345
|
|
|
1338
1346
|
@media (min-width: 900px) {
|
|
1339
1347
|
|
|
1340
|
-
/*
|
|
1348
|
+
/* Inventory logo-button stack left (shrink-to-fit); specimen capped and
|
|
1349
|
+
left-aligned so it stays proportionate beside the column (CR-21b). */
|
|
1341
1350
|
.home-projects-bench {
|
|
1342
|
-
--home-
|
|
1343
|
-
--home-inventory-row-min: calc(
|
|
1344
|
-
var(--home-inventory-mark-size) + 2 * var(--space-sm) + 2px
|
|
1345
|
-
);
|
|
1346
|
-
/* Rows share the specimen height, but a short rack must not stretch a
|
|
1347
|
-
single row to the full plate. */
|
|
1348
|
-
--home-inventory-row-max: calc(1.6 * var(--home-inventory-row-min));
|
|
1351
|
+
--home-specimen-max-width: 680px;
|
|
1349
1352
|
display: grid;
|
|
1350
|
-
grid-template-columns: max
|
|
1353
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1351
1354
|
column-gap: var(--space-xl);
|
|
1352
1355
|
justify-content: start;
|
|
1353
|
-
align-items:
|
|
1356
|
+
align-items: start;
|
|
1354
1357
|
}
|
|
1355
1358
|
|
|
1356
1359
|
.home-projects-inventory-wrap {
|
|
1357
1360
|
display: flex;
|
|
1358
1361
|
flex-direction: column;
|
|
1359
1362
|
gap: var(--space-xs);
|
|
1360
|
-
width:
|
|
1363
|
+
width: max-content;
|
|
1361
1364
|
}
|
|
1362
1365
|
|
|
1363
1366
|
.home-project-inventory {
|
|
1364
1367
|
order: 0;
|
|
1365
1368
|
display: flex;
|
|
1366
1369
|
flex-direction: column;
|
|
1367
|
-
gap: var(--space-
|
|
1370
|
+
gap: var(--space-xs);
|
|
1368
1371
|
box-sizing: border-box;
|
|
1369
|
-
width:
|
|
1370
|
-
min-height:
|
|
1372
|
+
width: max-content;
|
|
1373
|
+
min-height: 0;
|
|
1371
1374
|
min-width: 0;
|
|
1372
|
-
overflow:
|
|
1373
|
-
padding:
|
|
1374
|
-
background:
|
|
1375
|
+
overflow: visible;
|
|
1376
|
+
padding: 0;
|
|
1377
|
+
background: transparent;
|
|
1375
1378
|
}
|
|
1376
1379
|
|
|
1377
|
-
|
|
1380
|
+
button.home-project-inventory-row,
|
|
1378
1381
|
.home-project-inventory-row {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
justify-content: center;
|
|
1382
|
-
gap: var(--space-md);
|
|
1383
|
-
height: auto;
|
|
1384
|
-
min-height: var(--home-inventory-row-min);
|
|
1385
|
-
max-height: var(--home-inventory-row-max);
|
|
1386
|
-
box-sizing: border-box;
|
|
1387
|
-
padding: var(--space-sm) var(--space-md);
|
|
1388
|
-
border: 1px solid var(--border-ink);
|
|
1389
|
-
background: var(--color-surface-card);
|
|
1390
|
-
outline: none;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
.home-project-inventory-row.is-selected {
|
|
1394
|
-
background: var(--color-surface-high);
|
|
1395
|
-
border-color: var(--border-gentle-divider);
|
|
1396
|
-
outline: none;
|
|
1397
|
-
box-shadow: inset 3px 0 0 var(--color-primary);
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
/* Logo-only buttons on desktop: hide text body visually. */
|
|
1401
|
-
.home-project-inventory-body {
|
|
1402
|
-
display: none;
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
/* Square icon mark enlarged. */
|
|
1406
|
-
.home-project-inventory-media {
|
|
1407
|
-
display: block;
|
|
1382
|
+
width: var(--home-icon-btn-size);
|
|
1383
|
+
height: var(--home-icon-btn-size);
|
|
1408
1384
|
flex: 0 0 auto;
|
|
1409
|
-
width: var(--home-inventory-mark-size);
|
|
1410
|
-
height: var(--home-inventory-mark-size);
|
|
1411
|
-
aspect-ratio: 1 / 1;
|
|
1412
|
-
overflow: hidden;
|
|
1413
|
-
background: var(--color-surface-high);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
.home-project-inventory-row.is-selected .home-project-inventory-media {
|
|
1417
|
-
outline: 1px solid var(--color-primary);
|
|
1418
|
-
outline-offset: 2px;
|
|
1419
1385
|
}
|
|
1420
1386
|
|
|
1421
|
-
.home-project-
|
|
1422
|
-
|
|
1423
|
-
align-items: center;
|
|
1424
|
-
justify-content: center;
|
|
1387
|
+
.home-project-specimen {
|
|
1388
|
+
max-width: var(--home-specimen-max-width);
|
|
1425
1389
|
width: 100%;
|
|
1426
|
-
|
|
1427
|
-
aspect-ratio: auto;
|
|
1428
|
-
overflow: hidden;
|
|
1429
|
-
background: var(--color-surface-high);
|
|
1430
|
-
color: var(--color-primary);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
.home-project-inventory-mark .material-symbols-outlined {
|
|
1434
|
-
font-size: calc(1.75rem + 2pt);
|
|
1390
|
+
justify-self: start;
|
|
1435
1391
|
}
|
|
1436
1392
|
|
|
1437
|
-
.home-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/* Two classes: the glyph also carries .material-symbols-outlined, whose
|
|
1446
|
-
font stylesheet loads after this one and sets display. */
|
|
1447
|
-
.home-project-inventory-row .home-project-inventory-glyph {
|
|
1448
|
-
display: none;
|
|
1393
|
+
.home-specimen-figure > .ledger-poster,
|
|
1394
|
+
.home-specimen-figure > .projects-plate {
|
|
1395
|
+
max-height: 45vh;
|
|
1396
|
+
width: min(100%, calc(45vh * 16 / 9));
|
|
1397
|
+
height: auto;
|
|
1398
|
+
aspect-ratio: 16 / 9;
|
|
1449
1399
|
}
|
|
1450
1400
|
}
|
|
1451
1401
|
|
|
@@ -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.4"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -247,7 +247,7 @@ require_declarations(
|
|
|
247
247
|
)
|
|
248
248
|
require_declarations(
|
|
249
249
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
250
|
-
".home-projects-bench", ["grid-template-columns: max
|
|
250
|
+
".home-projects-bench", ["grid-template-columns: max-content minmax(0, 1fr)", "column-gap: var(--space-xl)", "justify-content: start"]
|
|
251
251
|
)
|
|
252
252
|
require_declarations(
|
|
253
253
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
@@ -313,7 +313,7 @@ require_declarations(
|
|
|
313
313
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
314
314
|
".home-project-inventory-glyph", ["font-size: calc(1.25rem + 2pt)"]
|
|
315
315
|
)
|
|
316
|
-
unless home_sheet.include?("calc(1.375rem + 2pt)") && home_sheet.include?("calc(1.
|
|
316
|
+
unless home_sheet.include?("calc(1.375rem + 2pt)") && home_sheet.include?("calc(1.25rem + 2pt)")
|
|
317
317
|
errors << "assets/css/ledger/home.css: inventory icon sizes must be +2pt larger than 2.2.1 rem values (PLT-AC-69)"
|
|
318
318
|
end
|
|
319
319
|
|
|
@@ -246,6 +246,92 @@ const ASSERT_EXPRESSION = `
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
// 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
|
|
250
|
+
// 6. CR-21b mobile-identical glyph/border + specimen cap (PLT-AC-75)
|
|
251
|
+
{
|
|
252
|
+
const bench = document.querySelector('.home-projects-bench');
|
|
253
|
+
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
254
|
+
const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
255
|
+
// calc(1.375rem + 2pt) — 1pt = 96/72 px
|
|
256
|
+
const expectedGlyphPx = 1.375 * rootFs + 2 * (96 / 72);
|
|
257
|
+
|
|
258
|
+
if (rows.length > 0) {
|
|
259
|
+
const first = rows[0];
|
|
260
|
+
const glyph = first.querySelector('.home-project-inventory-glyph');
|
|
261
|
+
if (glyph) {
|
|
262
|
+
const gfs = parseFloat(getComputedStyle(glyph).fontSize);
|
|
263
|
+
const isInitial = glyph.classList.contains('home-project-inventory-glyph--initial');
|
|
264
|
+
let expectFs = expectedGlyphPx;
|
|
265
|
+
if (isInitial) {
|
|
266
|
+
const rawCard = getComputedStyle(document.documentElement).getPropertyValue('--type-card').trim();
|
|
267
|
+
expectFs = parseFloat(rawCard) || expectedGlyphPx;
|
|
268
|
+
if (rawCard.endsWith('rem')) expectFs = expectFs * rootFs;
|
|
269
|
+
}
|
|
270
|
+
if (Math.abs(gfs - expectFs) > 1.5) {
|
|
271
|
+
errors.push('Inventory glyph font-size (' + gfs.toFixed(2) + 'px) not within 1.5px of expected ' + expectFs.toFixed(2) + 'px (PLT-AC-75)');
|
|
272
|
+
}
|
|
273
|
+
// Desktop Material Symbols must not fall back to body inherit (~18px)
|
|
274
|
+
if (!isInitial && window.innerWidth >= 900 && gfs < 22) {
|
|
275
|
+
errors.push('Desktop inventory icon glyph too small (' + gfs.toFixed(2) + 'px); Material Symbols inherit must not win (PLT-AC-75)');
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const rcs = getComputedStyle(first);
|
|
279
|
+
if (Math.abs(parseFloat(rcs.borderTopWidth) - 1) > 0.5 || rcs.borderTopStyle !== 'solid') {
|
|
280
|
+
errors.push('Inventory row border is ' + rcs.borderTopWidth + ' ' + rcs.borderTopStyle + ', expected 1px solid (PLT-AC-75)');
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (window.innerWidth >= 900 && bench) {
|
|
285
|
+
const rawSize = getComputedStyle(bench).getPropertyValue('--home-icon-btn-size').trim();
|
|
286
|
+
let iconSizePx = parseFloat(rawSize);
|
|
287
|
+
if (rawSize.endsWith('rem')) {
|
|
288
|
+
iconSizePx = iconSizePx * rootFs;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (rows.length > 0) {
|
|
292
|
+
let firstRowWidth = null;
|
|
293
|
+
rows.forEach((row, idx) => {
|
|
294
|
+
const rect = row.getBoundingClientRect();
|
|
295
|
+
if (idx === 0) firstRowWidth = rect.width;
|
|
296
|
+
|
|
297
|
+
if (Math.abs(rect.width - iconSizePx) > 1.5) {
|
|
298
|
+
errors.push('Row ' + idx + ' width (' + rect.width.toFixed(2) + 'px) not within 1.5px of icon size (' + iconSizePx + 'px)');
|
|
299
|
+
}
|
|
300
|
+
if (Math.abs(rect.height - iconSizePx) > 1.5) {
|
|
301
|
+
errors.push('Row ' + idx + ' height (' + rect.height.toFixed(2) + 'px) not within 1.5px of icon size (' + iconSizePx + 'px)');
|
|
302
|
+
}
|
|
303
|
+
if (rect.width > iconSizePx + 8) {
|
|
304
|
+
errors.push('Row ' + idx + ' width (' + rect.width.toFixed(2) + 'px) exceeds icon size + 8 (' + (iconSizePx + 8) + 'px)');
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
const inventory = document.querySelector('.home-project-inventory');
|
|
309
|
+
if (inventory && firstRowWidth !== null) {
|
|
310
|
+
const invWidth = inventory.getBoundingClientRect().width;
|
|
311
|
+
if (invWidth > firstRowWidth + 12) {
|
|
312
|
+
errors.push('.home-project-inventory width (' + invWidth.toFixed(2) + 'px) > first row width + 12 (' + (firstRowWidth + 12).toFixed(2) + 'px)');
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const specimen = document.querySelector('.home-project-specimen');
|
|
318
|
+
if (specimen) {
|
|
319
|
+
const sw = specimen.getBoundingClientRect().width;
|
|
320
|
+
if (sw > 682) {
|
|
321
|
+
errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds 680px cap (PLT-AC-75)');
|
|
322
|
+
}
|
|
323
|
+
const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate, .home-specimen-figure img');
|
|
324
|
+
if (plate) {
|
|
325
|
+
const ph = plate.getBoundingClientRect().height;
|
|
326
|
+
const cap = 0.45 * window.innerHeight + 2;
|
|
327
|
+
if (ph > cap) {
|
|
328
|
+
errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) exceeds 45vh cap (' + cap.toFixed(2) + 'px) (PLT-AC-75)');
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
249
335
|
return { errors };
|
|
250
336
|
})()
|
|
251
337
|
`;
|
|
@@ -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"
|