recourse 7.8.0 → 7.8.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/config/locales/recourse.en.yml +5 -2
- data/lib/recourse/helpers/retrievals.rb +4 -7
- data/lib/recourse/routes/nested.rb +5 -1
- data/lib/recourse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03ffa189dd77cb44309f61dc8a42e67fa818673f75daca4ee837aed53fb53a6b
|
|
4
|
+
data.tar.gz: 32e06a42baacce634ec2a88bc54ee585a0f7e90b740afde1dea4453db1dc737d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faf5b85e985b30125c1ed657ba37a8912d236b6e1d35cd439b47fb793dd14397de66250325c75d86644b93dc122d4c8251809685cb218f2e3c438e75ec1144e0
|
|
7
|
+
data.tar.gz: e5667f606d93ec6cb0016707e758ad5aa944cf6b50c3c9a4ade70614242838639813e08b73c4ec460abe71d00e09648eb9eb6476a0825511c44c2ac86e16a017
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## 7.8.2 - 2026-09-20
|
|
11
|
+
|
|
12
|
+
* [CHANGE] The retrieval button says what it does
|
|
13
|
+
|
|
14
|
+
It drew an icon and said the rest to a screen reader alone. It reads `Retrieve` now,
|
|
15
|
+
and keeps the aria-label naming the rows it fetches.
|
|
16
|
+
|
|
17
|
+
## 7.8.1 - 2026-09-20
|
|
18
|
+
|
|
19
|
+
* [FIX] A retrieval route is named after its resource
|
|
20
|
+
|
|
21
|
+
A collection route takes its name from the scope around it, so four retrievable
|
|
22
|
+
resources under one parent all answered to `provider_retrieval` and only the first
|
|
23
|
+
kept the name. Each is `provider_visits_retrieval` now, and the other three have a
|
|
24
|
+
path helper again.
|
|
25
|
+
|
|
10
26
|
## 7.8.0 - 2026-09-20
|
|
11
27
|
|
|
12
28
|
* [FEATURE] A resource may say its rows can be fetched again
|
|
@@ -71,8 +71,11 @@ en:
|
|
|
71
71
|
has no %{model} model.
|
|
72
72
|
nested: You nested `recourses %{names}` inside `resources :%{parent}`, which does
|
|
73
73
|
not namespace what it holds. Nest it under `recourses :%{parent}` instead.
|
|
74
|
-
#
|
|
75
|
-
|
|
74
|
+
# The button that fetches a table's rows again: the word on it, and what it is
|
|
75
|
+
# named to a screen reader, where the rows it fetches are said.
|
|
76
|
+
retrieval:
|
|
77
|
+
button: Retrieve
|
|
78
|
+
label: Retrieve %{models} again
|
|
76
79
|
unretrieved: "You asked for `recourses %{names}, retrievable: true`, which draws no
|
|
77
80
|
index to fetch them onto. The button that asks for them stands on the table that
|
|
78
81
|
lists them, so there is nowhere to put it."
|
|
@@ -10,11 +10,9 @@ module Recourse
|
|
|
10
10
|
def retrieval_button
|
|
11
11
|
return unless Recourse.retrievable?(controller.controller_path) && recourse_retrievable?
|
|
12
12
|
|
|
13
|
-
button_to
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
icon_tag :sync
|
|
17
|
-
end
|
|
13
|
+
button_to t('recourse.retrieval.button'), retrieval_path,
|
|
14
|
+
class: 'btn btn-sm btn-solid theme-primary ms-3',
|
|
15
|
+
form_class: 'd-inline-block', aria: { label: retrieval_label }
|
|
18
16
|
end
|
|
19
17
|
|
|
20
18
|
# The one route a retrievable resource earns, under the resource itself.
|
|
@@ -23,8 +21,7 @@ module Recourse
|
|
|
23
21
|
end
|
|
24
22
|
|
|
25
23
|
def retrieval_label
|
|
26
|
-
t 'recourse.
|
|
27
|
-
lower: true)
|
|
24
|
+
t 'recourse.retrieval.label', models: Recourse.model_title(resource_model, lower: true)
|
|
28
25
|
end
|
|
29
26
|
end
|
|
30
27
|
end
|
|
@@ -46,7 +46,11 @@ module Recourse
|
|
|
46
46
|
# neither.
|
|
47
47
|
def draw_retrieval
|
|
48
48
|
Controllers.define_missing [current_module, 'retrievals'].compact.join('/')
|
|
49
|
-
|
|
49
|
+
# Named after the resource as well as the parent: a collection route takes its
|
|
50
|
+
# name from the scope around it, so four retrievals under one parent would all
|
|
51
|
+
# answer to `provider_retrieval` and only the first would keep the name.
|
|
52
|
+
named = "#{parent_resource.name}_retrieval"
|
|
53
|
+
collection { resource :retrieval, only: :create, as: named }
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
# The row a table's bookmark square writes: one record kept by whoever is looking,
|
data/lib/recourse/version.rb
CHANGED