activeadmin_favorites 0.1.1 → 0.1.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 +5 -0
- data/app/views/active_admin/favorites/_personalization_trigger.html.erb +3 -3
- data/config/locales/activeadmin_favorites.en.yml +1 -0
- data/config/locales/activeadmin_favorites.host.yml.example +2 -0
- data/lib/activeadmin/favorites/register_view_lens_preferences.rb +4 -2
- data/lib/activeadmin/favorites/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: 296e670f333078afebedd4546ec81d3d15426c3ef5da1614f7e116b151f05320
|
|
4
|
+
data.tar.gz: 4a0f53e84ee863776d172a8e243c1aeb78198a0a4cfda0d01cc3cfd6fa99649b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8babf9ec6328bd14b380dd5a638b6a3c412289fcd2850be145d60ab4bbceb22b32ee07f9fe88e00fe8b1267c67711fb898905b7b1e08c808de4d391c1908ded9
|
|
7
|
+
data.tar.gz: c3fe9108f0c2156d530a28f69e5de96ed98c75b29a0530f5215eaec88dc927182d641ef056d35eeae9ee25ddb867cdeb3a3724a60bb0baa90a8f032175390f52
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.1.2 (2026-10-07)
|
|
4
|
+
|
|
5
|
+
- Show Favorites as the favorites index heading from the gem locale.
|
|
6
|
+
- Mount view lens preference actions at `/admin/view_lens_preferences`.
|
|
7
|
+
|
|
3
8
|
## 0.1.1 (2026-09-07)
|
|
4
9
|
|
|
5
10
|
- Keep favorites registration working after ActiveAdmin reload when a custom page is already registered.
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
data-<%= stimulus_controller %>-path-value="<%= request.path %>"
|
|
14
14
|
data-<%= stimulus_controller %>-catalog-element-id-value="<%= catalog_element_id %>"
|
|
15
15
|
data-<%= stimulus_controller %>-hidden-value="<%= hidden.to_json %>"
|
|
16
|
-
data-<%= stimulus_controller %>-update-url-value="<%=
|
|
17
|
-
data-<%= stimulus_controller %>-reset-url-value="<%=
|
|
18
|
-
data-<%= stimulus_controller %>-save-lens-url-value="<%=
|
|
16
|
+
data-<%= stimulus_controller %>-update-url-value="<%= admin_view_lens_preferences_update_path %>"
|
|
17
|
+
data-<%= stimulus_controller %>-reset-url-value="<%= admin_view_lens_preferences_reset_path %>"
|
|
18
|
+
data-<%= stimulus_controller %>-save-lens-url-value="<%= admin_view_lens_preferences_save_lens_favorite_path %>"
|
|
19
19
|
data-<%= stimulus_controller %>-favorites-url-value="<%= admin_favorites_path %>"
|
|
20
20
|
data-<%= stimulus_controller %>-group-labels-value="<%= {
|
|
21
21
|
columns: t("active_admin.favorites.groups.columns", default: "Columns"),
|
|
@@ -13,6 +13,7 @@ en:
|
|
|
13
13
|
macros_json_invalid: Macros JSON is invalid
|
|
14
14
|
macros_panel: Dynamic filters
|
|
15
15
|
menu: Favorites
|
|
16
|
+
title: Favorites
|
|
16
17
|
no_detected_ranges: No date range filters detected in the current view. Use advanced macros if needed.
|
|
17
18
|
open: Open
|
|
18
19
|
published: Published for everyone
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
module ActiveAdmin
|
|
4
4
|
module Favorites
|
|
5
5
|
module RegisterViewLensPreferences
|
|
6
|
-
|
|
6
|
+
# Spaced name so ActiveAdmin parameterize.underscore yields view_lens_preferences.
|
|
7
|
+
# options[:as] does not change Page routes in ActiveAdmin 4.
|
|
8
|
+
PAGE_NAME = "View Lens Preferences"
|
|
7
9
|
|
|
8
10
|
module_function
|
|
9
11
|
|
|
@@ -24,7 +26,7 @@ module ActiveAdmin
|
|
|
24
26
|
def call
|
|
25
27
|
return if page_registered?
|
|
26
28
|
|
|
27
|
-
ActiveAdmin.register_page PAGE_NAME
|
|
29
|
+
ActiveAdmin.register_page PAGE_NAME do
|
|
28
30
|
menu false
|
|
29
31
|
|
|
30
32
|
controller do
|