pandorga 2.2.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c61cd9d37c273404f3e342efdf5391c89a076bd16b023f3e0e19729cba867067
4
- data.tar.gz: b119bd7b5637821f6ca9ca6c72daae680862dd173d8422c218e86920743deb6a
3
+ metadata.gz: 3509a9e64766a27810d07f6e992090283dfa4cd9d327dbddb1935a8e8a0f9200
4
+ data.tar.gz: 645079629c94e08f1bcf2a862d848d399ad13c0dd469572f3a09fb245b5d82a3
5
5
  SHA512:
6
- metadata.gz: 1a06a5de81d97b6ae343c7aa33273c293dcfc28cfb6ecf5fe01cbc6e65be0e5f844179cc7384c3bad3c8ff4af41c99bc0130f005a7278b129555c3ccbaed2499
7
- data.tar.gz: 143cb446e764ddf43a4d2187e902e543f7318ad3f3325d2bbdbbbe7c87504bd70d974d9b13a6c7112475cd1bea7ee36c385ece5e176d875a48c71a029c8a1a71
6
+ metadata.gz: 5283fee4020d59f6280b0fc515cbcea4f9278da53531edb938b40243dfa7d68755cf312a23f8a783c58cb1e6e7b8f083f8ab09f115a39e121723d5e71522fbb8
7
+ data.tar.gz: 418cf100b845984ed48811cdc6a65c85ca133dd6de7c030073c5a455470b5873eb93bb634f48cdd475a74fc6d0efdcce7e7cb7812b4b0d078af9a135d183f907
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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
+
5
11
  ## [2.2.4] — 2026-10-29
6
12
 
7
13
  ### Fixed
@@ -1345,10 +1345,11 @@ button.home-project-inventory-row {
1345
1345
 
1346
1346
  @media (min-width: 900px) {
1347
1347
 
1348
- /* Inventory logo-button stack left (shrink-to-fit); specimen capped and
1349
- left-aligned so it stays proportionate beside the column (CR-21b). */
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). */
1350
1350
  .home-projects-bench {
1351
1351
  --home-specimen-max-width: 680px;
1352
+ --home-specimen-plate-height: 12.25rem; /* ~217px at 17.6 root */
1352
1353
  display: grid;
1353
1354
  grid-template-columns: max-content minmax(0, 1fr);
1354
1355
  column-gap: var(--space-xl);
@@ -1359,14 +1360,22 @@ button.home-project-inventory-row {
1359
1360
  .home-projects-inventory-wrap {
1360
1361
  display: flex;
1361
1362
  flex-direction: column;
1363
+ align-items: flex-end;
1362
1364
  gap: var(--space-xs);
1363
1365
  width: max-content;
1366
+ text-align: right;
1367
+ }
1368
+
1369
+ .home-projects-inventory-label {
1370
+ text-align: right;
1371
+ width: 100%;
1364
1372
  }
1365
1373
 
1366
1374
  .home-project-inventory {
1367
1375
  order: 0;
1368
1376
  display: flex;
1369
1377
  flex-direction: column;
1378
+ align-items: flex-end;
1370
1379
  gap: var(--space-xs);
1371
1380
  box-sizing: border-box;
1372
1381
  width: max-content;
@@ -1384,6 +1393,13 @@ button.home-project-inventory-row {
1384
1393
  flex: 0 0 auto;
1385
1394
  }
1386
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
+
1387
1403
  .home-project-specimen {
1388
1404
  max-width: var(--home-specimen-max-width);
1389
1405
  width: 100%;
@@ -1392,10 +1408,20 @@ button.home-project-inventory-row {
1392
1408
 
1393
1409
  .home-specimen-figure > .ledger-poster,
1394
1410
  .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;
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;
1399
1425
  }
1400
1426
  }
1401
1427
 
@@ -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.5"
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.5"
5
5
  end
@@ -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 glyph/border/specimen + desktop plate/align (PLT-AC-75/76)
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') {
@@ -320,12 +326,30 @@ const ASSERT_EXPRESSION = `
320
326
  if (sw > 682) {
321
327
  errors.push('Specimen width (' + sw.toFixed(2) + 'px) exceeds 680px cap (PLT-AC-75)');
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
331
  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)');
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
+ }
329
353
  }
330
354
  }
331
355
  }
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors