pandorga 2.2.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3509a9e64766a27810d07f6e992090283dfa4cd9d327dbddb1935a8e8a0f9200
4
- data.tar.gz: 645079629c94e08f1bcf2a862d848d399ad13c0dd469572f3a09fb245b5d82a3
3
+ metadata.gz: 1df146552579c2a65aeea261408554cacdb4e7f62fdb404a78855396b470b85e
4
+ data.tar.gz: 3bfd2c1479e7bd990173b19c2813e4c14aecec39eface05ad9d9175cf5ba8faf
5
5
  SHA512:
6
- metadata.gz: 5283fee4020d59f6280b0fc515cbcea4f9278da53531edb938b40243dfa7d68755cf312a23f8a783c58cb1e6e7b8f083f8ab09f115a39e121723d5e71522fbb8
7
- data.tar.gz: 418cf100b845984ed48811cdc6a65c85ca133dd6de7c030073c5a455470b5873eb93bb634f48cdd475a74fc6d0efdcce7e7cb7812b4b0d078af9a135d183f907
6
+ metadata.gz: 4c9fbe2f93d442131abe0cf95805cf7dca0adf85146a67ff4e346b4ca6904cf4f3810b6019a5a2ecfe31e7d6c8d668ccaea5cf10cfc7b91de0b9fa0c42782f9d
7
+ data.tar.gz: c35afcb7c7c72b11c369587fb79d6fb994134fad47bb030477ccb6bfdc8267fcc2d32580079809f96e0c1c0b0ad799674593082beaf291dfbfc8099175a31cef
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
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
+
11
+ ## [2.2.6] — 2026-10-29
12
+
13
+ ### Changed
14
+
15
+ - 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).
16
+
5
17
  ## [2.2.5] — 2026-10-29
6
18
 
7
19
  ### Changed
@@ -56,8 +56,7 @@
56
56
  data-tag-base="{{ _path }}"
57
57
  >
58
58
  <div class="home-projects-inventory-wrap">
59
- <span class="home-projects-inventory-label font-label">Explore projects</span>
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>
@@ -1004,13 +1004,16 @@ html[data-theme="light"] .home-hero-plate {
1004
1004
  }
1005
1005
 
1006
1006
  .home-projects-inventory-label {
1007
- display: block;
1008
- font-family: var(--font-label);
1009
- font-size: var(--type-label);
1010
- font-weight: var(--weight-label);
1011
- letter-spacing: 0.04em;
1012
- color: var(--color-on-surface-variant);
1013
- margin-bottom: var(--space-xs);
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, contents right-aligned toward the card;
1349
- specimen 680px; plate ~60% of 2.2.4 height with cover crop (CR-21c). */
1351
+ /* Inventory left of specimen, flush to card (gap ≤ 2× button gap);
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). */
1350
1354
  .home-projects-bench {
1351
- --home-specimen-max-width: 680px;
1352
- --home-specimen-plate-height: 12.25rem; /* ~217px at 17.6 root */
1355
+ --home-specimen-plate-height: 12.25rem; /* ~215.6px at 17.6 root (+25% vs 2.2.6) */
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: max-content minmax(0, 1fr);
1355
- column-gap: var(--space-xl);
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: flex-end;
1364
- gap: var(--space-xs);
1365
- width: max-content;
1366
- text-align: right;
1367
- }
1368
-
1369
- .home-projects-inventory-label {
1370
- text-align: right;
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: flex-end;
1382
+ align-items: stretch;
1379
1383
  gap: var(--space-xs);
1380
1384
  box-sizing: border-box;
1381
- width: max-content;
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: 100%;
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: auto;
1421
+ aspect-ratio: 16 / 9;
1415
1422
  overflow: hidden;
1416
1423
  }
1417
1424
 
@@ -1423,6 +1430,47 @@ 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
+ }
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
+ }
1426
1474
  }
1427
1475
 
1428
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.5"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.2.7"
28
28
  gem "csv"
29
29
  gem "base64"
30
30
  RUBY
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pandorga
4
- VERSION = "2.2.5"
4
+ VERSION = "2.2.7"
5
5
  end
@@ -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, two-line
229
- # code + title body, and no tagline preview or attached-resource icons; on
230
- # desktop the specimen (35%, min 20rem) and rack (45%, min 21rem) start at the
231
- # band's left edge across one --space-xl gap, the specimen sets the bench
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: max-content minmax(0, 1fr)", "column-gap: var(--space-xl)", "justify-content: start"]
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="Project inventory"')
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 + desktop plate/align (PLT-AC-75/76)
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,124 @@ 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 > 682) {
327
- errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds 680px cap (PLT-AC-75)');
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
- const ph = plate.getBoundingClientRect().height;
332
- // CR-21c: ~60% of prior ~361.6px → ~217px (allow 200–230)
331
+ const pr = plate.getBoundingClientRect();
332
+ const ph = pr.height;
333
+ const pw = pr.width;
334
+ // CR-21e: +25% vs 2.2.6 → ~215.6×383.3 (12.25rem), 16:9
333
335
  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)');
336
+ errors.push('Specimen plate height (' + ph.toFixed(2) + 'px) not in 200–230px band (~215.6 target) (PLT-AC-78)');
337
+ }
338
+ const expectW = ph * 16 / 9;
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)');
335
341
  }
336
342
  }
337
343
 
338
- // CR-21c: inventory wrap contents right-aligned toward specimen
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
+
375
+ // CR-21d: column flush to card; wrap/inventory width == button width
339
376
  const wrap = document.querySelector('.home-projects-inventory-wrap');
340
- const label = document.querySelector('.home-projects-inventory-label');
377
+ const inv = document.querySelector('.home-project-inventory');
341
378
  const firstRow = document.querySelector('.home-project-inventory-row');
342
379
  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)');
380
+ const wR = wrap.getBoundingClientRect();
381
+ const rR = firstRow.getBoundingClientRect();
382
+ if (Math.abs(wR.right - rR.right) > 2.5) {
383
+ errors.push('Inventory row right (' + rR.right.toFixed(2) + ') not aligned to wrap right (' + wR.right.toFixed(2) + ') (PLT-AC-76)');
384
+ }
385
+ if (wR.width - rR.width > 0.5) {
386
+ errors.push('Inventory column width (' + wR.width.toFixed(2) + ') > button width (' + rR.width.toFixed(2) + ') by >0.5px (PLT-AC-77)');
347
387
  }
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)');
388
+ if (inv) {
389
+ const iW = inv.getBoundingClientRect().width;
390
+ if (iW - rR.width > 0.5) {
391
+ errors.push('Inventory box width (' + iW.toFixed(2) + ') > button width (' + rR.width.toFixed(2) + ') by >0.5px (PLT-AC-77)');
352
392
  }
353
393
  }
394
+ const gap = specimen.getBoundingClientRect().left - wR.right;
395
+ if (gap > 16.5 || gap < -0.5) {
396
+ errors.push('Column-to-card gap (' + gap.toFixed(2) + 'px) not in 0–16px (PLT-AC-77)');
397
+ }
354
398
  }
355
399
  }
356
400
  }
357
401
  }
358
402
 
403
+ // CR-21d: Explore projects label not visible at any width; aria-label on group
404
+ {
405
+ const label = document.querySelector('.home-projects-inventory-label');
406
+ if (label) {
407
+ const cs = getComputedStyle(label);
408
+ const r = label.getBoundingClientRect();
409
+ const hidden = cs.display === 'none' || cs.visibility === 'hidden' || cs.opacity === '0'
410
+ || (r.width <= 1 && r.height <= 1) || cs.clip === 'rect(0px, 0px, 0px, 0px)'
411
+ || (cs.position === 'absolute' && r.width <= 1);
412
+ if (!hidden) {
413
+ errors.push('Explore projects label still visible (' + r.width.toFixed(1) + 'x' + r.height.toFixed(1) + ') (PLT-AC-77)');
414
+ }
415
+ }
416
+ const inv = document.querySelector('.home-project-inventory');
417
+ if (inv) {
418
+ const aria = (inv.getAttribute('aria-label') || '').trim().toLowerCase();
419
+ if (aria !== 'explore projects') {
420
+ errors.push('Inventory aria-label is "' + (inv.getAttribute('aria-label') || '') + '", expected "Explore projects" (PLT-AC-77)');
421
+ }
422
+ }
423
+ }
424
+
425
+ // CR-21d / PLT-AC-77: every home specimen / project / card poster plate is 16:9 ±1%
426
+ {
427
+ const plates = document.querySelectorAll(
428
+ '.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate, ' +
429
+ '.home-card-grid .ledger-poster, .home-card-grid .projects-plate, ' +
430
+ '.projects-page .ledger-system-card > .ledger-poster, .projects-page .ledger-system-card > .projects-plate, ' +
431
+ '.projects-page .projects-plate--mark'
432
+ );
433
+ plates.forEach((el, idx) => {
434
+ const r = el.getBoundingClientRect();
435
+ if (r.width < 8 || r.height < 8) return;
436
+ const ratio = r.width / r.height;
437
+ const target = 16 / 9;
438
+ if (Math.abs(ratio - target) / target > 0.01) {
439
+ errors.push('Plate #' + idx + ' ratio ' + ratio.toFixed(4) + ' not within 1% of 16:9 (PLT-AC-77)');
440
+ }
441
+ });
442
+ }
443
+
359
444
  return { errors };
360
445
  })()
361
446
  `;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandorga
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors