pandorga 2.2.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cf384ae0f120222917d96350dcd6dd3684eb02a934b6d99e94c4f192879e593
4
- data.tar.gz: 27a388b1949be3dd9523f6340898f2faa30a1e703a76c0ce808c4b4d4894973a
3
+ metadata.gz: c61cd9d37c273404f3e342efdf5391c89a076bd16b023f3e0e19729cba867067
4
+ data.tar.gz: b119bd7b5637821f6ca9ca6c72daae680862dd173d8422c218e86920743deb6a
5
5
  SHA512:
6
- metadata.gz: 360253e7ea32816a540d825f67ef67d831bba649e39ece2009e0e35825ce63c6674f28b4544fc6fbaa1df4cace99f818a4f9792d413bb94d3fd3b8c3e6edcde7
7
- data.tar.gz: 38588659d956444db1aacb643f2eb0ac878d282f52a1e1be62674cd5d81813e8933514410370c7ac8ab43eab63960b03f19d3db819f73c5bc62a376bd5e4c3f6
6
+ metadata.gz: 1a06a5de81d97b6ae343c7aa33273c293dcfc28cfb6ecf5fe01cbc6e65be0e5f844179cc7384c3bad3c8ff4af41c99bc0130f005a7278b129555c3ccbaed2499
7
+ data.tar.gz: 143cb446e764ddf43a4d2187e902e543f7318ad3f3325d2bbdbbbe7c87504bd70d974d9b13a6c7112475cd1bea7ee36c385ece5e176d875a48c71a029c8a1a71
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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
+
5
11
  ## [2.2.3] — 2026-10-29
6
12
 
7
13
  ### 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 width = specimenSlot.getBoundingClientRect().width;
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');
@@ -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
- /* Two classes: the Material Symbols sheet loads after this one and resets
1178
- the glyph size on a single class. */
1179
- .home-project-inventory-row .home-project-inventory-glyph {
1180
- font-size: calc(1.375rem + 2pt);
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
- .home-project-inventory-row .home-project-inventory-glyph--initial {
1184
- font-size: var(--type-card);
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-ink);
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,10 @@ button.home-project-inventory-row {
1341
1345
 
1342
1346
  @media (min-width: 900px) {
1343
1347
 
1344
- /* The inventory logo-button stack sits on the left (shrink-to-fit), and the specimen on the right. */
1348
+ /* Inventory logo-button stack left (shrink-to-fit); specimen capped and
1349
+ left-aligned so it stays proportionate beside the column (CR-21b). */
1345
1350
  .home-projects-bench {
1351
+ --home-specimen-max-width: 680px;
1346
1352
  display: grid;
1347
1353
  grid-template-columns: max-content minmax(0, 1fr);
1348
1354
  column-gap: var(--space-xl);
@@ -1377,6 +1383,20 @@ button.home-project-inventory-row {
1377
1383
  height: var(--home-icon-btn-size);
1378
1384
  flex: 0 0 auto;
1379
1385
  }
1386
+
1387
+ .home-project-specimen {
1388
+ max-width: var(--home-specimen-max-width);
1389
+ width: 100%;
1390
+ justify-self: start;
1391
+ }
1392
+
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;
1399
+ }
1380
1400
  }
1381
1401
 
1382
1402
  /* ── 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.3"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.2.4"
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.3"
4
+ VERSION = "2.2.4"
5
5
  end
@@ -247,17 +247,47 @@ const ASSERT_EXPRESSION = `
247
247
  }
248
248
 
249
249
  // 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
250
- if (window.innerWidth >= 900) {
250
+ // 6. CR-21b mobile-identical glyph/border + specimen cap (PLT-AC-75)
251
+ {
251
252
  const bench = document.querySelector('.home-projects-bench');
252
- if (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) {
253
285
  const rawSize = getComputedStyle(bench).getPropertyValue('--home-icon-btn-size').trim();
254
286
  let iconSizePx = parseFloat(rawSize);
255
287
  if (rawSize.endsWith('rem')) {
256
- const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
257
288
  iconSizePx = iconSizePx * rootFs;
258
289
  }
259
290
 
260
- const rows = document.querySelectorAll('.home-project-inventory-row');
261
291
  if (rows.length > 0) {
262
292
  let firstRowWidth = null;
263
293
  rows.forEach((row, idx) => {
@@ -282,7 +312,22 @@ const ASSERT_EXPRESSION = `
282
312
  errors.push('.home-project-inventory width (' + invWidth.toFixed(2) + 'px) > first row width + 12 (' + (firstRowWidth + 12).toFixed(2) + 'px)');
283
313
  }
284
314
  }
315
+ }
285
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
+ }
286
331
  }
287
332
  }
288
333
  }
@@ -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-ink)"
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"
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.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors