recourse 7.8.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db928d015c6b427908eac64f93319534dafb40dd089916ab38782241ba6264dd
4
- data.tar.gz: 68abc102048e76b5440c010cba4f039e2c5388496c258bc8cc73c23adadfb940
3
+ metadata.gz: 03ffa189dd77cb44309f61dc8a42e67fa818673f75daca4ee837aed53fb53a6b
4
+ data.tar.gz: 32e06a42baacce634ec2a88bc54ee585a0f7e90b740afde1dea4453db1dc737d
5
5
  SHA512:
6
- metadata.gz: ce01d852728a901751c26b717fa7008143a36b96038cf9e672f121a38c3929d83bd24b4e45575bbe13439362a850a11a513288e4bed372678e2d4385071c833d
7
- data.tar.gz: 798c8ccef55728658d9ec54b7a5076b80c6f83888e8c6728ba53958445ee0b4c12c599744c88134650c3ec4989fb690dd4480ecf280b2f9751cefd14c20c0e92
6
+ metadata.gz: faf5b85e985b30125c1ed657ba37a8912d236b6e1d35cd439b47fb793dd14397de66250325c75d86644b93dc122d4c8251809685cb218f2e3c438e75ec1144e0
7
+ data.tar.gz: e5667f606d93ec6cb0016707e758ad5aa944cf6b50c3c9a4ade70614242838639813e08b73c4ec460abe71d00e09648eb9eb6476a0825511c44c2ac86e16a017
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ 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
+
10
17
  ## 7.8.1 - 2026-09-20
11
18
 
12
19
  * [FIX] A retrieval route is named after its resource
@@ -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
- # What the button that fetches a table's rows again is named to a screen reader.
75
- retrieve: Retrieve %{models} again
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 retrieval_path, class: 'btn btn-sm btn-solid theme-primary ms-3',
14
- form_class: 'd-inline-block',
15
- aria: { label: retrieval_label } do
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.retrieve', models: Recourse.model_title(resource_model,
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
@@ -1,4 +1,4 @@
1
1
  module Recourse
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '7.8.1'
3
+ VERSION = '7.8.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.8.1
4
+ version: 7.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob