pandorga 2.2.2 → 2.2.3
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 +6 -0
- data/assets/css/ledger/home.css +17 -87
- 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 +41 -0
- 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: 2cf384ae0f120222917d96350dcd6dd3684eb02a934b6d99e94c4f192879e593
|
|
4
|
+
data.tar.gz: 27a388b1949be3dd9523f6340898f2faa30a1e703a76c0ce808c4b4d4894973a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 360253e7ea32816a540d825f67ef67d831bba649e39ece2009e0e35825ce63c6674f28b4544fc6fbaa1df4cace99f818a4f9792d413bb94d3fd3b8c3e6edcde7
|
|
7
|
+
data.tar.gz: 38588659d956444db1aacb643f2eb0ac878d282f52a1e1be62674cd5d81813e8933514410370c7ac8ab43eab63960b03f19d3db819f73c5bc62a376bd5e4c3f6
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.2.3] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- 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).
|
|
10
|
+
|
|
5
11
|
## [2.2.2] — 2026-10-28
|
|
6
12
|
|
|
7
13
|
### Added
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -1301,6 +1301,10 @@ button.home-project-inventory-row {
|
|
|
1301
1301
|
display: none;
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
|
+
.home-project-inventory-media {
|
|
1305
|
+
aspect-ratio: 1 / 1;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1304
1308
|
.home-project-inventory-glyph {
|
|
1305
1309
|
display: inline-flex;
|
|
1306
1310
|
align-items: center;
|
|
@@ -1337,115 +1341,41 @@ button.home-project-inventory-row {
|
|
|
1337
1341
|
|
|
1338
1342
|
@media (min-width: 900px) {
|
|
1339
1343
|
|
|
1340
|
-
/* The inventory
|
|
1344
|
+
/* The inventory logo-button stack sits on the left (shrink-to-fit), and the specimen on the right. */
|
|
1341
1345
|
.home-projects-bench {
|
|
1342
|
-
--home-inventory-mark-size: 3rem;
|
|
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));
|
|
1349
1346
|
display: grid;
|
|
1350
|
-
grid-template-columns: max
|
|
1347
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1351
1348
|
column-gap: var(--space-xl);
|
|
1352
1349
|
justify-content: start;
|
|
1353
|
-
align-items:
|
|
1350
|
+
align-items: start;
|
|
1354
1351
|
}
|
|
1355
1352
|
|
|
1356
1353
|
.home-projects-inventory-wrap {
|
|
1357
1354
|
display: flex;
|
|
1358
1355
|
flex-direction: column;
|
|
1359
1356
|
gap: var(--space-xs);
|
|
1360
|
-
width:
|
|
1357
|
+
width: max-content;
|
|
1361
1358
|
}
|
|
1362
1359
|
|
|
1363
1360
|
.home-project-inventory {
|
|
1364
1361
|
order: 0;
|
|
1365
1362
|
display: flex;
|
|
1366
1363
|
flex-direction: column;
|
|
1367
|
-
gap: var(--space-
|
|
1364
|
+
gap: var(--space-xs);
|
|
1368
1365
|
box-sizing: border-box;
|
|
1369
|
-
width:
|
|
1370
|
-
min-height:
|
|
1366
|
+
width: max-content;
|
|
1367
|
+
min-height: 0;
|
|
1371
1368
|
min-width: 0;
|
|
1372
|
-
overflow:
|
|
1373
|
-
padding:
|
|
1374
|
-
background:
|
|
1369
|
+
overflow: visible;
|
|
1370
|
+
padding: 0;
|
|
1371
|
+
background: transparent;
|
|
1375
1372
|
}
|
|
1376
1373
|
|
|
1377
|
-
|
|
1374
|
+
button.home-project-inventory-row,
|
|
1378
1375
|
.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;
|
|
1376
|
+
width: var(--home-icon-btn-size);
|
|
1377
|
+
height: var(--home-icon-btn-size);
|
|
1408
1378
|
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
|
-
}
|
|
1420
|
-
|
|
1421
|
-
.home-project-inventory-mark {
|
|
1422
|
-
display: flex;
|
|
1423
|
-
align-items: center;
|
|
1424
|
-
justify-content: center;
|
|
1425
|
-
width: 100%;
|
|
1426
|
-
height: 100%;
|
|
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);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
.home-project-inventory-mark--initial {
|
|
1438
|
-
font-family: var(--font-content-title);
|
|
1439
|
-
font-size: var(--type-card-lg);
|
|
1440
|
-
font-weight: var(--weight-title);
|
|
1441
|
-
line-height: 1;
|
|
1442
|
-
color: var(--color-on-surface);
|
|
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;
|
|
1449
1379
|
}
|
|
1450
1380
|
}
|
|
1451
1381
|
|
|
@@ -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.3"
|
|
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,47 @@ const ASSERT_EXPRESSION = `
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
// 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
|
|
250
|
+
if (window.innerWidth >= 900) {
|
|
251
|
+
const bench = document.querySelector('.home-projects-bench');
|
|
252
|
+
if (bench) {
|
|
253
|
+
const rawSize = getComputedStyle(bench).getPropertyValue('--home-icon-btn-size').trim();
|
|
254
|
+
let iconSizePx = parseFloat(rawSize);
|
|
255
|
+
if (rawSize.endsWith('rem')) {
|
|
256
|
+
const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
257
|
+
iconSizePx = iconSizePx * rootFs;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
261
|
+
if (rows.length > 0) {
|
|
262
|
+
let firstRowWidth = null;
|
|
263
|
+
rows.forEach((row, idx) => {
|
|
264
|
+
const rect = row.getBoundingClientRect();
|
|
265
|
+
if (idx === 0) firstRowWidth = rect.width;
|
|
266
|
+
|
|
267
|
+
if (Math.abs(rect.width - iconSizePx) > 1.5) {
|
|
268
|
+
errors.push('Row ' + idx + ' width (' + rect.width.toFixed(2) + 'px) not within 1.5px of icon size (' + iconSizePx + 'px)');
|
|
269
|
+
}
|
|
270
|
+
if (Math.abs(rect.height - iconSizePx) > 1.5) {
|
|
271
|
+
errors.push('Row ' + idx + ' height (' + rect.height.toFixed(2) + 'px) not within 1.5px of icon size (' + iconSizePx + 'px)');
|
|
272
|
+
}
|
|
273
|
+
if (rect.width > iconSizePx + 8) {
|
|
274
|
+
errors.push('Row ' + idx + ' width (' + rect.width.toFixed(2) + 'px) exceeds icon size + 8 (' + (iconSizePx + 8) + 'px)');
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
const inventory = document.querySelector('.home-project-inventory');
|
|
279
|
+
if (inventory && firstRowWidth !== null) {
|
|
280
|
+
const invWidth = inventory.getBoundingClientRect().width;
|
|
281
|
+
if (invWidth > firstRowWidth + 12) {
|
|
282
|
+
errors.push('.home-project-inventory width (' + invWidth.toFixed(2) + 'px) > first row width + 12 (' + (firstRowWidth + 12).toFixed(2) + 'px)');
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
249
290
|
return { errors };
|
|
250
291
|
})()
|
|
251
292
|
`;
|