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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +8 -4
- data/UPGRADING.md +47 -0
- data/app/assets/javascripts/janela/chart_controller.js +54 -3
- data/app/controllers/janela/application_controller.rb +2 -2
- data/app/controllers/janela/panes_controller.rb +1 -1
- data/app/controllers/janela/queries_controller.rb +2 -0
- data/app/controllers/janela/snapshot_queries_controller.rb +2 -0
- data/app/helpers/janela/frames_helper.rb +26 -8
- data/app/models/janela/pane.rb +8 -1
- data/app/models/janela/query.rb +40 -7
- data/app/models/janela/snapshot.rb +2 -2
- data/app/views/janela/frames/_pane.html.erb +3 -2
- data/app/views/janela/panes/_form.html.erb +13 -0
- data/app/views/janela/queries/_query.html.erb +3 -1
- data/config/locales/en.yml +13 -0
- data/db/migrate/20261006000001_add_value_labels_to_janela_panes.rb +7 -0
- data/db/migrate/20261013000001_add_sort_to_janela_panes.rb +7 -0
- data/docs/decisions/020-formatting-belongs-to-the-measure.md +4 -1
- data/docs/decisions/054-a-chart-reads-numbers-the-way-its-measure-formats-them.md +221 -0
- data/docs/decisions/055-a-category-pane-can-be-sorted-by-its-measure-either-way-or-by-its-label.md +204 -0
- data/docs/decisions/INDEX.md +9 -7
- data/docs/roadmap.md +20 -6
- data/lib/janela/definition.rb +35 -2
- data/lib/janela/doctor.rb +1 -1
- data/lib/janela/tools.rb +6 -3
- data/lib/janela/version.rb +1 -1
- data/lib/janela.rb +19 -0
- metadata +12 -8
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.
|
|
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.
|
|
234
|
+
Janela 0.15.0: one migration, if you use stored frames.
|
|
231
235
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
237
|
-
|
|
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
|