studio-engine 0.32.1 → 0.32.2

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: e04fa2a8f860281a68cd8534487c64308bc35b0e7fa36911e0b57b6a518be0fc
4
- data.tar.gz: 774c6f65e6e08cd2204960973dea33f2e44c8e299d9683679dab6e9394e2dc8e
3
+ metadata.gz: 9525633783466e9475652bb4ded7c35b05c36165cf76db8c68db9e9ee357e0cb
4
+ data.tar.gz: 7e2bbfa555bd538f915985213fafe2a27de2ef6bb0a2ae6b4868054a3dea127b
5
5
  SHA512:
6
- metadata.gz: de4d5bcc12a5bc890655a3d49d7d88fdcf3e0a44de5951f0adbf7e6153eb146e93c6645600e642a7624ab74c8da5fed361f288a8b55b0c797603fdfd258eda8f
7
- data.tar.gz: 761e8c0e87a81e9797164d44000c1e6e94dd2341bfbecf8ad7f60ef830c1f5e528f5fb09d6e73d502c13f420a9b06794c294440887d637b1df90e51840fe28a3
6
+ metadata.gz: 33d02975ad35287da64b3a75ee297efec825d68fa5b3823e5ec834dc67eb572df96e669cff6fa94ce731293b343f2b9b9aef8a9a4ce9a6b63d4bddd79989fbda
7
+ data.tar.gz: 792e5a6c4159be01aba533ad28e705d09576a2a8b5ee8b9af05f0dc1200ba2baddd8dad772f1eea6dd6d0b7957705d57901d937c0cf73be21a89d726fbccbd20
data/CHANGELOG.md CHANGED
@@ -2,6 +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
+ ## 0.32.2 — 2026-08-09
6
+
7
+ **Two public-page navigation fixes** (found by the industries sidebar-adoption
8
+ review on the app's one public page): `components/_admin_dropdown` now renders
9
+ only for `admin?` viewers — it used to offer `/admin/theme` and `/error_logs`
10
+ links to signed-out strangers wherever the navbar mounted it; and
11
+ `components/_link_sidebar_trigger` no longer hardcodes `inline-flex` after the
12
+ caller's `class_name`, which beat `hidden md:inline-flex` in the cascade and
13
+ rendered the desktop trigger on mobile beside the real one. Callers now own
14
+ the display class (bare renders default to `inline-flex`). Regression view
15
+ tests pin both.
16
+
5
17
  ## 0.32.1 — Unreleased
6
18
 
7
19
  **Setup-guide corrections.** Docs only — no code, no behavior change.
@@ -1,3 +1,7 @@
1
+ <%# ADMIN chrome: renders only for admin? viewers. Signed-out and
2
+ non-admin visitors get nothing — this partial once leaked admin
3
+ links onto a public landing page. %>
4
+ <% if respond_to?(:admin?) && admin? %>
1
5
  <div x-data="{ open: false }" class="relative leading-none">
2
6
  <button @click="open = !open" class="flex text-secondary hover:text-heading transition" title="Admin">
3
7
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
@@ -12,3 +16,4 @@
12
16
  <a href="/error_logs" class="block px-4 py-2 text-sm text-body hover:text-heading hover:bg-surface-alt transition">Error Logs</a>
13
17
  </div>
14
18
  </div>
19
+ <% end %>
@@ -3,11 +3,14 @@
3
3
  desktop icon rail and one in the mobile sub-navbar row). The click is
4
4
  handled twice on purpose: the Alpine @click for normal operation, and the
5
5
  document-level capture bridge in _link_sidebar for pre-Alpine clicks. %>
6
- <% extra_classes = local_assigns.fetch(:class_name, "") %>
6
+ <%# The caller OWNS the display class: a hardcoded inline-flex here beats a
7
+ caller's `hidden md:inline-flex` in the cascade and un-hides the desktop
8
+ trigger on mobile. Bare renders default to inline-flex. %>
9
+ <% extra_classes = local_assigns.fetch(:class_name, "").presence || "inline-flex" %>
7
10
  <% sidebar_admin = respond_to?(:admin?) && admin? %>
8
11
  <button type="button"
9
12
  @click.stop="$store.sidebars.linkTreeOpen = !$store.sidebars.linkTreeOpen"
10
- class="<%= "#{extra_classes} " if extra_classes.present? %>inline-flex h-9 w-9 items-center justify-center rounded-md text-secondary hover:text-heading hover:bg-surface-alt focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 transition"
13
+ class="<%= extra_classes %> h-9 w-9 items-center justify-center rounded-md text-secondary hover:text-heading hover:bg-surface-alt focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 transition"
11
14
  title="<%= sidebar_admin ? 'Admin Menu' : 'Links' %>"
12
15
  aria-label="<%= sidebar_admin ? 'Toggle admin menu' : 'Toggle links menu' %>"
13
16
  aria-controls="studio-link-sidebar studio-link-sidebar-mobile"
@@ -1,3 +1,3 @@
1
1
  module Studio
2
- VERSION = "0.32.1"
2
+ VERSION = "0.32.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: studio-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.1
4
+ version: 0.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McRitchie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-09 00:00:00.000000000 Z
11
+ date: 2026-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails