pandorga 2.3.7 → 2.3.9

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: 991fc92ba076517ff07c9c0dcbcc672228873fc29d22bd554575061462a76de5
4
- data.tar.gz: ea9063b92edaa9e9cdf7c2ede3bdffda10bde5fd5b93007c0a016e14fcbe2870
3
+ metadata.gz: 7c65f65578bd5eb79eab2736fc0e78616baf2fe594829e8816e5cde87223379d
4
+ data.tar.gz: 8779f58a045be9df9f3707fc4cbaffadc3e2543189cf2ee7c7d1ee3f14026c39
5
5
  SHA512:
6
- metadata.gz: a4e11d17a279010d488041b9c05544046082a6cebfd66c06335b6191a1b960e715ab95eee58b62550823f99ab7ea2550dab074eeb0f57adacccc428df35bb268
7
- data.tar.gz: 8e0ce397844677541373eb35bd93ac932e2d58502c6ad4cea92f16e5edcac34f61b75408e508278466e23a58329c4616c6d37b2dee1ffff1e765d305a3839600
6
+ metadata.gz: e4976977d37a07122747f4a48e65a928ddd406042cff4b6ad664ee8af81faf110c0dc25910ab0025e66a51fb7745df47c98b4896ea856b68d71769c020d82a48
7
+ data.tar.gz: 3292e31ef923cb97f7e017608a3a31ce6fc9bc3cc04b51284d1c30aafb05c4736a0f5e8f821b994020141ccb4556af2dc59185f7cd6062dd22e769d6c1d52e18
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.9] — 2026-10-30
6
+
7
+ ### Fixed
8
+
9
+ - CR-23 follow-up: scope action glyph `+2pt` to the mobile icon-only row so desktop labeled pill boxes stay identical to 2.3.5 (PLT-AC-95).
10
+
11
+ ## [2.3.8] — 2026-10-30
12
+
13
+ ### Changed
14
+
15
+ - CR-23: Detail action glyphs +2pt (`calc(1rem + 2pt)`) without changing marker button box size (PLT-AC-95); mobile icon centering (PLT-AC-96); `padding-bottom: calc(var(--space-sm) + var(--space-xs))` (~12px) between action row and the “IN THIS TEXT” rule (PLT-AC-97). See [features/detail-action-icons.md](docs/features/detail-action-icons.md).
16
+
5
17
  ## [2.3.7] — 2026-10-30
6
18
 
7
19
  ### Fixed
@@ -686,15 +686,17 @@ aside:has(> .text-detail-sidebar) {
686
686
  font-size: var(--type-prose);
687
687
  }
688
688
 
689
+ /* PLT-AC-97: keep meta border-bottom clear of the action pills.
690
+ 0.75rem = space-sm + space-xs — clear separation without a full space-md. */
689
691
  .text-detail-sidebar:has(.article-toc--disclosure) .article-meta,
690
692
  .projects-dossier:has(.article-toc--disclosure) .article-meta,
691
693
  .projects-page .projects-dossier:has(.article-toc--disclosure) .projects-dossier-rows {
692
- padding-bottom: 0;
694
+ padding-bottom: calc(var(--space-sm) + var(--space-xs));
693
695
  }
694
696
 
695
697
  .text-detail-sidebar .article-toc--disclosure,
696
698
  .projects-dossier .article-toc--disclosure {
697
- margin-top: var(--space-xs);
699
+ margin-top: 0;
698
700
  margin-bottom: var(--space-xs);
699
701
  }
700
702
  }
@@ -1304,6 +1306,13 @@ nav.text-page-nav:not(:has(a)) {
1304
1306
  border-radius: var(--radius-pill);
1305
1307
  }
1306
1308
 
1309
+ /* PLT-AC-95: glyph +2pt on the mobile icon-only row only.
1310
+ Desktop labeled pills keep 1rem so box size matches 2.3.5. */
1311
+ .text-detail-sidebar .article-meta .detail-action .material-symbols-outlined,
1312
+ .text-detail-sidebar .article-meta .detail-type-size-trigger .material-symbols-outlined:not(.detail-type-size-caret) {
1313
+ font-size: calc(1rem + 2pt);
1314
+ }
1315
+
1307
1316
  .text-detail-sidebar .article-meta .detail-action-label,
1308
1317
  .text-detail-sidebar .article-meta .detail-type-size-value,
1309
1318
  .text-detail-sidebar .article-meta .detail-type-size-caret {
@@ -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.3.7"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.9"
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.3.7"
4
+ VERSION = "2.3.9"
5
5
  end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ # CR-23 / pandorga 2.3.9 — detail action glyphs + TOC gap (PLT-AC-95…97).
4
+
5
+ require "pathname"
6
+
7
+ ROOT = Pathname(__dir__).join("../..").expand_path
8
+ DETAIL = ROOT.join("assets/css/ledger/detail.css").read
9
+ SPEC = ROOT.join("docs/features/detail-action-icons.md").read
10
+ VALIDATE = ROOT.join("scripts/validate.sh").read
11
+
12
+ failed = 0
13
+ def fail!(msg)
14
+ warn "FAIL test-detail-action-icons: #{msg}"
15
+ true
16
+ end
17
+
18
+ # PLT-AC-95 — glyph +2pt; box rules unchanged vs 2.3.5
19
+ unless DETAIL.match?(/\.article-meta\s+\.detail-action\s+\.material-symbols-outlined[\s\S]{0,80}?font-size:\s*calc\(1rem\s*\+\s*2pt\)/m) ||
20
+ DETAIL.match?(/detail-action \.material-symbols-outlined,[\s\S]{0,200}?font-size:\s*calc\(1rem\s*\+\s*2pt\)/m)
21
+ failed = 1 if fail!("PLT-AC-95: mobile .detail-action icons must use font-size: calc(1rem + 2pt)")
22
+ end
23
+ unless DETAIL.include?("calc(1rem + 2pt)")
24
+ failed = 1 if fail!("PLT-AC-95: calc(1rem + 2pt) must appear for mobile action glyphs")
25
+ end
26
+ # Desktop base stays 1rem (labeled pills)
27
+ unless DETAIL.match?(/\.detail-action\s+\.material-symbols-outlined\s*\{[^}]*font-size:\s*1rem;/m)
28
+ failed = 1 if fail!("PLT-AC-95: desktop .detail-action icons must keep font-size: 1rem")
29
+ end
30
+ # Button box declarations from 2.3.5 must remain
31
+ unless DETAIL.match?(/\.text-detail-sidebar\s+\.article-meta\s+\.detail-action,\s*\n\s*\.text-detail-sidebar\s+\.article-meta\s+\.detail-type-size-trigger\s*\{[^}]*height:\s*2\.5rem;[^}]*padding:\s*0;/m) ||
32
+ DETAIL.match?(/height:\s*2\.5rem;[\s\S]{0,120}?padding:\s*0;/)
33
+ failed = 1 if fail!("PLT-AC-95: mobile detail-action boxes must keep height: 2.5rem and padding: 0")
34
+ end
35
+ # Padding on base .detail-action must stay 0.35rem 0.85rem (2.3.5)
36
+ unless DETAIL.match?(/\.detail-action\s*\{[^}]*padding:\s*0\.35rem\s+0\.85rem;/m)
37
+ failed = 1 if fail!("PLT-AC-95: base .detail-action padding must remain 0.35rem 0.85rem")
38
+ end
39
+
40
+ # PLT-AC-96 — flex centering on mobile icon buttons
41
+ unless DETAIL.match?(/\.text-detail-sidebar\s+\.article-meta\s+\.detail-action,[\s\S]{0,200}?justify-content:\s*center;[\s\S]{0,80}?align-items:\s*center;/m)
42
+ failed = 1 if fail!("PLT-AC-96: mobile detail-action boxes must justify-content/align-items center")
43
+ end
44
+
45
+ # PLT-AC-97 — gap via space-sm + space-xs under actions / above TOC rule
46
+ unless DETAIL.match?(/padding-bottom:\s*calc\(\s*var\(--space-sm\)\s*\+\s*var\(--space-xs\)\s*\)/)
47
+ failed = 1 if fail!("PLT-AC-97: article-meta with TOC must use padding-bottom: calc(var(--space-sm) + var(--space-xs))")
48
+ end
49
+ # Must not zero the padding under TOC anymore
50
+ if DETAIL.match?(/:has\(\.article-toc--disclosure\)\s+\.article-meta[\s\S]{0,120}?padding-bottom:\s*0;/)
51
+ failed = 1 if fail!("PLT-AC-97: must not zero article-meta padding-bottom when TOC is present")
52
+ end
53
+
54
+ unless SPEC.include?("PLT-AC-95") && SPEC.include?("PLT-AC-97") && SPEC.include?("2.3.9")
55
+ failed = 1 if fail!("spec docs/features/detail-action-icons.md must cover PLT-AC-95…97 and 2.3.9")
56
+ end
57
+ unless VALIDATE.include?("test-detail-action-icons.rb")
58
+ failed = 1 if fail!("scripts/validate.sh must allowlist test-detail-action-icons.rb")
59
+ end
60
+
61
+ if failed.zero?
62
+ puts "PASS test-detail-action-icons (PLT-AC-95…97)"
63
+ else
64
+ exit 1
65
+ end
data/scripts/validate.sh CHANGED
@@ -80,6 +80,7 @@ TESTS=(
80
80
  scripts/test/test-studio-section-texts.rb
81
81
  scripts/test/test-home-article-cards.rb
82
82
  scripts/test/test-home-hero-c4.rb
83
+ scripts/test/test-detail-action-icons.rb
83
84
  scripts/test/test-parallel-content-publish.rb
84
85
  scripts/test/test-mobile-density-home-measure.rb
85
86
  scripts/test/test-regression-gate.rb
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.3.7
4
+ version: 2.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors
@@ -420,6 +420,7 @@ files:
420
420
  - scripts/test/test-css-delivery.rb
421
421
  - scripts/test/test-css-structure.rb
422
422
  - scripts/test/test-cv-export-contract.rb
423
+ - scripts/test/test-detail-action-icons.rb
423
424
  - scripts/test/test-detail-render-parity.rb
424
425
  - scripts/test/test-dev-reexport.rb
425
426
  - scripts/test/test-discovery.rb