backstage 0.1.2 → 0.1.4

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: a27a69eb92c07fc5df72d8e36e4ae7a69640d9ea5607928d811e62dfa8ce7b33
4
- data.tar.gz: 8dfa4f87b11149c6908bc0c087767489645ea37f9636469824e1591a6fa7431c
3
+ metadata.gz: 10ec65d2b39be04317d283355ac676a67b2e5482903cc51712322e5d8871e223
4
+ data.tar.gz: 9abbaf9f9a92d51fbe460e1798234d7a97dfc01a89fceb1ceb1c3e72d1853165
5
5
  SHA512:
6
- metadata.gz: 538a821d60b5639c7fb5051a30bf03b889b53ef0d5f11234c7e007adc1d4fae87d7ffb9ff392759a8a4a977e6f20d2de726858106c3f60da26d6558c3ff5f650
7
- data.tar.gz: 344e7937efe011547ee3544fd6d05a2a917eb24cfb6c5cf3cf2f157b97135870b8ab75972d340473068b57379e1313164e26b784c5d1b56f6023580e3b0a94d2
6
+ metadata.gz: d0c1f467219c0c30b24193bf5cb87429697ffac81c5eab4915e69f48cf90bbc0339e675ac47f4aba2556230f7726abdb5e601af1caed52c30ca21d5ef669a096
7
+ data.tar.gz: 05c824d6a5d2226c8530d48b71fe8f1e9c63362aeaad6a21a82fd801b4fe5f8f8068313fcc85701495b4537c05c57aa223d0c2df905560aab87b18c5685607ed
data/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.4] — 2026-05-19
11
+
12
+ ### Fixed
13
+
14
+ - Engine no longer crashes during boot when no database connection is available (`ActiveRecord::ConnectionNotEstablished`, `ActiveRecord::NoDatabaseError`); logs a warning instead
15
+
16
+ ## [0.1.3] — 2026-05-19
17
+
18
+ ### Fixed
19
+
20
+ - CSS grid layout: nav and main now have explicit grid positions so they render side-by-side correctly
21
+ - Pico CSS override: nav list forced to vertical (`flex-direction: column`) instead of horizontal
22
+ - Engine layout: page title is now dynamic (`AppName — Backstage Admin`) instead of the static "Backstage"
23
+ - Engine layout: header home link uses `backstage.root_path` (engine-namespaced route) instead of bare `root_path`
24
+
10
25
  ## [0.1.2] — 2026-05-19
11
26
 
12
27
  ### Added
@@ -1,5 +1,10 @@
1
1
  /* Backstage admin layout */
2
- body { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
2
+ body { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr auto; min-height: 100vh; }
3
3
  header { grid-column: 1 / -1; }
4
- nav { padding: 1rem; }
5
- main { padding: 1rem; }
4
+ nav { padding: 1rem; grid-row: 2; grid-column: 1; }
5
+ main { padding: 1rem; grid-row: 2; grid-column: 2; }
6
+ aside { grid-column: 2; padding: 1rem; border-top: 1px solid var(--pico-muted-border-color); }
7
+
8
+ /* Override Pico's horizontal nav list */
9
+ nav ul { flex-direction: column; }
10
+ nav ul li { display: block; }
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Backstage</title>
6
+ <title><%= Rails.application.class.module_parent_name.humanize %> — Backstage Admin</title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= stylesheet_link_tag "backstage/pico", media: "all" %>
9
9
  <%= stylesheet_link_tag "backstage/backstage", media: "all" %>
@@ -31,7 +31,7 @@
31
31
  </head>
32
32
  <body>
33
33
  <header>
34
- <%= link_to "Backstage", root_path %>
34
+ <%= link_to "Admin Home", backstage.root_path %>
35
35
  </header>
36
36
  <nav>
37
37
  <ul>
@@ -5,6 +5,8 @@ module Backstage
5
5
  initializer "backstage.configuration" do |app|
6
6
  app.config.to_prepare do
7
7
  Backstage.load_configuration!(app.root)
8
+ rescue ActiveRecord::ConnectionNotEstablished, ActiveRecord::NoDatabaseError => e
9
+ Rails.logger.warn "Backstage: skipping configuration — no database connection (#{e.class})"
8
10
  end
9
11
  end
10
12
  end
@@ -1,3 +1,3 @@
1
1
  module Backstage
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backstage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth James