studio-engine 0.12.0 → 0.12.1

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: 61bf440c6e7573b35e8d7a680851d2535b37b08690f36c0f8c42402a8a1fcc64
4
- data.tar.gz: e79e46ab92bcd13bf5655526c199c1d7a1b17610d815dc240a5af7250455b9e1
3
+ metadata.gz: 9febc9d4cd408725e94cd7cbd481b698f8653ec08f79f94dd3b77e7a79140a1b
4
+ data.tar.gz: 39512b32582a5ca68c10271a320aad6e27f67a084ce39a0cf0405b2afd9a7839
5
5
  SHA512:
6
- metadata.gz: 64d04f5527318728c090ad318d9d5f652a12b1e8eadc6f665eccd4a0c4a0aadff6d1c7dfaecdc5c2a438c08b648a34ba78f1869dc8df1b80c6d1ccc9728f457d
7
- data.tar.gz: bba2fac4175596d6448dcc9611c9c4740f021fcfb467c09986a20d0d506e4c37cc933257ac6e0d23deb262a0fcf98baa3fe3bce104a8985e85562451ddab406f
6
+ metadata.gz: 0a4cee970e8b66de10c44d6f953419d186b69406fcab64d9ed1a418a2038482223aa75cb72e356c528aabf269368b49f1f24ec7bad7d0b0f33a108982b7b02db
7
+ data.tar.gz: 755b20e0bdd55e28163bfb53bd5029ac150efec66796c91633336a5e3c0187a8a9aefc5dd33b1f8dab89a8edb8d502b734ed3999caf4b4197562eb77e8fe614e
data/CHANGELOG.md CHANGED
@@ -2,7 +2,18 @@
2
2
 
3
3
  The format is [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) — `MAJOR.MINOR.PATCH`. Consumer Rails apps install the released RubyGems package with `gem "studio-engine", "~> 0.6"`; bumping the gem version and updating consumer lockfiles is a release.
4
4
 
5
- ## Unreleased
5
+ ## 0.12.1 — 2026-07-11
6
+
7
+ ### Fixed
8
+ - **Sticky table headers: skip self-pinning tables** — `shouldEnhanceTable`
9
+ now declines tables whose header cells are already `position: sticky`
10
+ (they pin themselves inside their own scroll container). Cloning such a
11
+ table doubled the header, and the activation math misfired: the in-flow
12
+ `thead` box scrolls under the nav while the sticky `th` cells stay pinned
13
+ and visible. Upstreamed from mcritchie-studio's local copy so consumers can
14
+ drop their forks and enable `Studio.sticky_table_headers`.
15
+
16
+ ## 0.12.0 — 2026-07-08
6
17
 
7
18
  ### Added
8
19
  - **Model-page protocol (v1)** — a reusable, admin-only per-record inspector,
@@ -175,6 +175,11 @@
175
175
  if (table.closest("template")) return false;
176
176
  if (table.getAttribute("role")?.toLowerCase() === "presentation") return false;
177
177
  if (!table.tHead || !table.tHead.querySelector("th")) return false;
178
+ // A table whose header cells are already position:sticky pins itself (usually
179
+ // inside its own scroll container). Cloning it doubles the header — and the
180
+ // activation math misfires there: the in-flow thead box scrolls under the nav
181
+ // while the sticky th cells stay pinned and visible.
182
+ if (getComputedStyle(table.tHead.querySelector("th")).position === "sticky") return false;
178
183
 
179
184
  return true;
180
185
  }
@@ -1,3 +1,3 @@
1
1
  module Studio
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: studio-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McRitchie
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-07-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -297,7 +296,6 @@ metadata:
297
296
  source_code_uri: https://github.com/amcritchie/studio-engine/tree/main
298
297
  bug_tracker_uri: https://github.com/amcritchie/studio-engine/issues
299
298
  changelog_uri: https://github.com/amcritchie/studio-engine/blob/main/CHANGELOG.md
300
- post_install_message:
301
299
  rdoc_options: []
302
300
  require_paths:
303
301
  - lib
@@ -312,8 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
310
  - !ruby/object:Gem::Version
313
311
  version: '0'
314
312
  requirements: []
315
- rubygems_version: 3.5.22
316
- signing_key:
313
+ rubygems_version: 4.0.9
317
314
  specification_version: 4
318
315
  summary: Shared Rails engine providing auth, SSO, error logging, theming, and S3-backed
319
316
  image caching