pandorga 2.2.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c61cd9d37c273404f3e342efdf5391c89a076bd16b023f3e0e19729cba867067
4
- data.tar.gz: b119bd7b5637821f6ca9ca6c72daae680862dd173d8422c218e86920743deb6a
3
+ metadata.gz: ef6153a25ab7b1fa90afeb9854f638af617c7a7e2469e642c44e997444a285e2
4
+ data.tar.gz: 0c58e4df254adb1aa931699004999afce2a09d282ef902d6ebf6f2c355d461a1
5
5
  SHA512:
6
- metadata.gz: 1a06a5de81d97b6ae343c7aa33273c293dcfc28cfb6ecf5fe01cbc6e65be0e5f844179cc7384c3bad3c8ff4af41c99bc0130f005a7278b129555c3ccbaed2499
7
- data.tar.gz: 143cb446e764ddf43a4d2187e902e543f7318ad3f3325d2bbdbbbe7c87504bd70d974d9b13a6c7112475cd1bea7ee36c385ece5e176d875a48c71a029c8a1a71
6
+ metadata.gz: ea9144c3180afbb419a78e50295897b902365f867a00a2413b97be5eef8051126fbfed085a2f9a3409e01cedb2fd7ba707dceb8cd861c4a175ae5d7d777f6cdf
7
+ data.tar.gz: 8318504a597f7baace4fe7591e5d617507040c79c08cd45854c1c627c336d57cd24a27799c95eb0700c420ffa3298c9716528cc4b474414e968d170f6b971531
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
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
+
11
+ ## [2.2.5] — 2026-10-29
12
+
13
+ ### Changed
14
+
15
+ - 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).
16
+
5
17
  ## [2.2.4] — 2026-10-29
6
18
 
7
19
  ### Fixed
@@ -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,13 +1348,16 @@ button.home-project-inventory-row {
1345
1348
 
1346
1349
  @media (min-width: 900px) {
1347
1350
 
1348
- /* Inventory logo-button stack left (shrink-to-fit); specimen capped and
1349
- left-aligned so it stays proportionate beside the column (CR-21b). */
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-max-width: 680px;
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));
1352
1358
  display: grid;
1353
- grid-template-columns: max-content minmax(0, 1fr);
1354
- 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) */
1355
1361
  justify-content: start;
1356
1362
  align-items: start;
1357
1363
  }
@@ -1359,21 +1365,30 @@ button.home-project-inventory-row {
1359
1365
  .home-projects-inventory-wrap {
1360
1366
  display: flex;
1361
1367
  flex-direction: column;
1362
- gap: var(--space-xs);
1363
- width: max-content;
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;
1364
1376
  }
1365
1377
 
1366
1378
  .home-project-inventory {
1367
1379
  order: 0;
1368
1380
  display: flex;
1369
1381
  flex-direction: column;
1382
+ align-items: stretch;
1370
1383
  gap: var(--space-xs);
1371
1384
  box-sizing: border-box;
1372
- 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);
1373
1388
  min-height: 0;
1374
- min-width: 0;
1375
1389
  overflow: visible;
1376
1390
  padding: 0;
1391
+ margin: 0;
1377
1392
  background: transparent;
1378
1393
  }
1379
1394
 
@@ -1384,6 +1399,13 @@ button.home-project-inventory-row {
1384
1399
  flex: 0 0 auto;
1385
1400
  }
1386
1401
 
1402
+ /* Desktop-only: +6pt over the shared CR-16 size (PLT-AC-76).
1403
+ Leave --initial on --type-card (fixture + letter marks). */
1404
+ .home-project-inventory-row .home-project-inventory-glyph:not(.home-project-inventory-glyph--initial),
1405
+ .home-project-inventory-row .home-project-inventory-glyph.material-symbols-outlined {
1406
+ font-size: calc(1.375rem + 8pt);
1407
+ }
1408
+
1387
1409
  .home-project-specimen {
1388
1410
  max-width: var(--home-specimen-max-width);
1389
1411
  width: 100%;
@@ -1392,10 +1414,37 @@ button.home-project-inventory-row {
1392
1414
 
1393
1415
  .home-specimen-figure > .ledger-poster,
1394
1416
  .home-specimen-figure > .projects-plate {
1395
- max-height: 45vh;
1396
- width: min(100%, calc(45vh * 16 / 9));
1397
- height: auto;
1417
+ width: var(--home-specimen-plate-width);
1418
+ max-width: 100%;
1419
+ height: var(--home-specimen-plate-height);
1420
+ max-height: var(--home-specimen-plate-height);
1398
1421
  aspect-ratio: 16 / 9;
1422
+ overflow: hidden;
1423
+ }
1424
+
1425
+ .home-specimen-figure > .ledger-poster img,
1426
+ .home-specimen-figure > .ledger-poster video {
1427
+ width: 100%;
1428
+ height: 100%;
1429
+ max-width: none;
1430
+ object-fit: cover;
1431
+ object-position: center;
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;
1399
1448
  }
1400
1449
  }
1401
1450
 
@@ -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.4"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.2.6"
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.4"
4
+ VERSION = "2.2.6"
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,33 +247,39 @@ const ASSERT_EXPRESSION = `
247
247
  }
248
248
 
249
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)
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');
254
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);
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);
257
258
 
258
259
  if (rows.length > 0) {
259
260
  const first = rows[0];
260
261
  const glyph = first.querySelector('.home-project-inventory-glyph');
261
262
  if (glyph) {
262
263
  const gfs = parseFloat(getComputedStyle(glyph).fontSize);
264
+ const gr = glyph.getBoundingClientRect();
265
+ const rowH = first.getBoundingClientRect().height;
263
266
  const isInitial = glyph.classList.contains('home-project-inventory-glyph--initial');
264
- let expectFs = expectedGlyphPx;
267
+ let expectFs = window.innerWidth >= 900 && !isInitial ? expectedGlyphDesktop : expectedGlyphMobile;
265
268
  if (isInitial) {
266
269
  const rawCard = getComputedStyle(document.documentElement).getPropertyValue('--type-card').trim();
267
- expectFs = parseFloat(rawCard) || expectedGlyphPx;
270
+ expectFs = parseFloat(rawCard) || expectedGlyphMobile;
268
271
  if (rawCard.endsWith('rem')) expectFs = expectFs * rootFs;
269
272
  }
270
273
  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)');
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)');
272
275
  }
273
- // Desktop Material Symbols must not fall back to body inherit (~18px)
274
276
  if (!isInitial && window.innerWidth >= 900 && gfs < 22) {
275
277
  errors.push('Desktop inventory icon glyph too small (' + gfs.toFixed(2) + 'px); Material Symbols inherit must not win (PLT-AC-75)');
276
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
+ }
277
283
  }
278
284
  const rcs = getComputedStyle(first);
279
285
  if (Math.abs(parseFloat(rcs.borderTopWidth) - 1) > 0.5 || rcs.borderTopStyle !== 'solid') {
@@ -317,21 +323,93 @@ const ASSERT_EXPRESSION = `
317
323
  const specimen = document.querySelector('.home-project-specimen');
318
324
  if (specimen) {
319
325
  const sw = specimen.getBoundingClientRect().width;
320
- if (sw > 682) {
321
- errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds 680px cap (PLT-AC-75)');
326
+ if (sw > 450) {
327
+ errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds ~plate+padding cap (~450) (PLT-AC-77)');
322
328
  }
323
- const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate, .home-specimen-figure img');
329
+ const plate = specimen.querySelector('.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate');
324
330
  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)');
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)');
341
+ }
342
+ }
343
+
344
+ // CR-21d: column flush to card; wrap/inventory width == button width
345
+ const wrap = document.querySelector('.home-projects-inventory-wrap');
346
+ const inv = document.querySelector('.home-project-inventory');
347
+ const firstRow = document.querySelector('.home-project-inventory-row');
348
+ if (wrap && firstRow) {
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)');
356
+ }
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)');
361
+ }
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)');
329
366
  }
330
367
  }
331
368
  }
332
369
  }
333
370
  }
334
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
+
335
413
  return { errors };
336
414
  })()
337
415
  `;
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.4
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors