janela 0.13.0 → 0.15.0

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.
data/lib/janela.rb CHANGED
@@ -166,4 +166,23 @@ module Janela
166
166
  def self.offered_limits
167
167
  Pane::OFFERED_LIMITS
168
168
  end
169
+
170
+ # The steps a pane's height and prominence take, and how many companion
171
+ # columns a table may carry, for a page that offers them as controls
172
+ # (ADR 027, ADR 047, ADR 050, ADR 051).
173
+ def self.sorts
174
+ Definition::SORTS
175
+ end
176
+
177
+ def self.heights
178
+ Pane::HEIGHTS.to_a
179
+ end
180
+
181
+ def self.prominences
182
+ Pane::PROMINENCES.to_a
183
+ end
184
+
185
+ def self.max_companions
186
+ Query::MAX_COMPANIONS
187
+ end
169
188
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janela
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Killeen
@@ -146,6 +146,8 @@ files:
146
146
  - db/migrate/20260930000001_add_height_to_janela_panes.rb
147
147
  - db/migrate/20260930000002_add_prominence_to_janela_panes.rb
148
148
  - db/migrate/20260930000003_add_companions_to_janela_panes.rb
149
+ - db/migrate/20261006000001_add_value_labels_to_janela_panes.rb
150
+ - db/migrate/20261013000001_add_sort_to_janela_panes.rb
149
151
  - docs/agents.md
150
152
  - docs/composing.md
151
153
  - docs/decisions/001-built-to-be-forked.md
@@ -201,6 +203,8 @@ files:
201
203
  - docs/decisions/051-a-table-can-carry-companion-columns.md
202
204
  - docs/decisions/052-how-the-project-is-run.md
203
205
  - docs/decisions/053-an-agent-reaches-janela-through-tools-the-host-scopes.md
206
+ - docs/decisions/054-a-chart-reads-numbers-the-way-its-measure-formats-them.md
207
+ - docs/decisions/055-a-category-pane-can-be-sorted-by-its-measure-either-way-or-by-its-label.md
204
208
  - docs/decisions/INDEX.md
205
209
  - docs/multi-tenancy.md
206
210
  - docs/naming.md
@@ -227,15 +231,15 @@ metadata:
227
231
  bug_tracker_uri: https://github.com/retail-tasker/janela/issues
228
232
  rubygems_mfa_required: 'true'
229
233
  post_install_message: |
230
- Janela 0.13.0: nothing you have to do.
234
+ Janela 0.15.0: one migration, if you use stored frames.
231
235
 
232
- New, and only if you want it: Janela::Tools gives an agent the
233
- tools to read and arrange a dashboard, scoped by your own
234
- policy_scope (ADR 053). Nothing registers itself. See docs/agents.md.
236
+ A category pane can now be sorted by its measure either way, or by its
237
+ label (ADR 055), which adds a nullable sort column to janela_panes. Run
238
+ bin/rails janela:install:migrations and then bin/rails db:migrate. If
239
+ you never use stored frames there is nothing to do.
235
240
 
236
- Two things you may see: the doctor now warns, rather than errors,
237
- on Janela::PanesController, and a copy of
238
- janela/queries/_query.html.erb may need checking on Rails 8.2.
241
+ Also: groups that tie on the measure now come out in label order, so
242
+ a pane with a limit shows the same rows every time.
239
243
 
240
244
  Steps: UPGRADING.md in this gem, or
241
245
  https://github.com/retail-tasker/janela/blob/main/UPGRADING.md