activeadmin-command_palette 0.1.9 → 0.2.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 +10 -0
- data/README.md +22 -11
- data/activeadmin-command_palette.gemspec +7 -1
- data/app/admin/command_palette.rb +28 -0
- data/app/controllers/active_admin/command_palette/options_controller.rb +7 -49
- data/lib/activeadmin/command_palette/configuration.rb +3 -1
- data/lib/activeadmin/command_palette/engine.rb +12 -0
- data/lib/activeadmin/command_palette/helper.rb +9 -1
- data/lib/activeadmin/command_palette/options_action.rb +99 -0
- data/lib/activeadmin/command_palette/routes.rb +14 -0
- data/lib/activeadmin/command_palette/version.rb +1 -1
- data/lib/activeadmin/command_palette.rb +2 -0
- metadata +90 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78f74275698af326ba0dca1d126b919573352d73054853ac3a840adc61514022
|
|
4
|
+
data.tar.gz: 932f4ba7ee907abbc3c7477a072fea9f9c926318e6954c4ac4701622e51a6287
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66353a4613dd61fae4203bcd8ad65a8cf7a0e63e1c8ffda012c1ccea74981d21e990d8d1ab12f005340282a52a5bdd8176c3832fb7b069ff0292aeea250df657
|
|
7
|
+
data.tar.gz: 6f297aacb607e57ad225d28a3f747972a8220c93bc312a299f4536b90955c6f36334d9e68cd3723c04d8599dd3ca6b6a974a97a88a6d03dd26f59eb69d459c7d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2026-11-16)
|
|
4
|
+
|
|
5
|
+
- BREAKING: Draw finder options through a hidden ActiveAdmin Command Palette page by default so `ActiveAdmin.routes` owns the path and `PageController` owns auth (RFC 0009). Hosts that still mount the engine must set `configuration.auto_register_page = false`.
|
|
6
|
+
- Add `configuration.auto_register_page` (default true) and `ActiveAdmin::CommandPalette::Routes.draw` for an explicit engine mount escape hatch.
|
|
7
|
+
- Prefer `admin_command_palette_options_path` in the Helper; keep the engine options helper as fallback.
|
|
8
|
+
- Authorize with ActiveAdmin `Auth::READ` on the page config unless `authorize_with` overrides.
|
|
9
|
+
- Fail closed when the ActiveAdmin namespace or Command Palette page config is missing during authorization.
|
|
10
|
+
- Keep explicit CSRF protection on the page-owned options controller; cover adapter denial, index redirect, and escape-hatch fail-closed paths.
|
|
11
|
+
- Mark RFC 0009 Stable after shipping ActiveAdmin-owned options routes and auth.
|
|
12
|
+
|
|
3
13
|
## 0.1.9 (2026-11-03)
|
|
4
14
|
|
|
5
15
|
- Keep navigation working when browser storage is unavailable.
|
data/README.md
CHANGED
|
@@ -21,14 +21,22 @@ Add the gem to your Gemfile:
|
|
|
21
21
|
gem "activeadmin-command_palette"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Keep `ActiveAdmin.routes(self)`. The gem registers a hidden Command Palette page so
|
|
25
|
+
options live at `/admin/command_palette/options` with ActiveAdmin authentication and
|
|
26
|
+
authorization (`Auth::READ` on that page). No palette line is required in `routes.rb`
|
|
27
|
+
(RFC 0009).
|
|
28
|
+
|
|
29
|
+
For a custom path, set `config.auto_register_page = false` and draw explicitly:
|
|
25
30
|
|
|
26
31
|
```ruby
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
end
|
|
32
|
+
ActiveAdmin::CommandPalette::Routes.draw(self)
|
|
33
|
+
# or: mount ActiveAdmin::CommandPalette::Engine => "/admin/command_palette", as: "active_admin_command_palette"
|
|
30
34
|
```
|
|
31
35
|
|
|
36
|
+
Escape-hatch mounts still authenticate through ActiveAdmin `authentication_method` and
|
|
37
|
+
authorize with `authorize_with` or `Auth::READ` on the Command Palette page config.
|
|
38
|
+
Mapper placement does not inherit ActiveAdmin config by itself.
|
|
39
|
+
|
|
32
40
|
Wire the layout body controller and data attributes, render the palette partial, and add a header button that calls `show`.
|
|
33
41
|
|
|
34
42
|
Register finders and actions in an initializer or with the resource DSL.
|
|
@@ -70,7 +78,11 @@ ActiveAdmin.register User do
|
|
|
70
78
|
end
|
|
71
79
|
```
|
|
72
80
|
|
|
73
|
-
Host initializer keeps
|
|
81
|
+
Host initializer keeps prefixes, global shortcuts, optional `authorize_with`, and a
|
|
82
|
+
`default_finder` that receives each resource registration. Authentication follows
|
|
83
|
+
ActiveAdmin `authentication_method`. Authorization defaults to the ActiveAdmin
|
|
84
|
+
adapter (`Auth::READ` on the Command Palette page); set `authorize_with` only to
|
|
85
|
+
override that check:
|
|
74
86
|
|
|
75
87
|
```ruby
|
|
76
88
|
ActiveAdmin::CommandPalette.configure do |config|
|
|
@@ -80,9 +92,8 @@ ActiveAdmin::CommandPalette.configure do |config|
|
|
|
80
92
|
# return Array of { id:, kind:, label:, url:, detail?, keywords? }
|
|
81
93
|
}
|
|
82
94
|
config.actions = [
|
|
83
|
-
{id: "open-jobs", label: "Open jobs", url: "/admin/
|
|
95
|
+
{id: "open-jobs", label: "Open jobs", url: "/admin/jobs"}
|
|
84
96
|
]
|
|
85
|
-
config.authorize_with = ->(controller) { controller.current_user.present? }
|
|
86
97
|
end
|
|
87
98
|
```
|
|
88
99
|
|
|
@@ -98,8 +109,8 @@ Apply host authorization before returning rows. Prefer this match order when bui
|
|
|
98
109
|
|
|
99
110
|
Host checklist before production:
|
|
100
111
|
|
|
101
|
-
1.
|
|
102
|
-
2.
|
|
112
|
+
1. Rely on `ActiveAdmin.routes` (default) or an explicit `Routes.draw` / mount with ActiveAdmin auth on the controller.
|
|
113
|
+
2. Confirm ActiveAdmin `authentication_method` and the authorization adapter allow `Auth::READ` on the Command Palette page (or set `authorize_with`).
|
|
103
114
|
3. Scope every finder with the same record policy as the ActiveAdmin resource (`accessible_by`, `policy_scope`, or equivalent). Do not copy a bare `.all` finder into a multi-role or multi-tenant app.
|
|
104
115
|
4. Prefer the CSRF-protected `POST` client path. Treat `GET .../options` as a legacy integration surface: `q` can appear in access logs, proxies, and history.
|
|
105
116
|
5. Rate-limit `/admin/command_palette/options` at the host (the gem caps rows per request, not request volume).
|
|
@@ -131,7 +142,7 @@ make lint
|
|
|
131
142
|
make test
|
|
132
143
|
```
|
|
133
144
|
|
|
134
|
-
`make lint` runs Biome (`npx @biomejs/biome@2.3.8
|
|
145
|
+
`make lint` runs Biome (`npx @biomejs/biome@2.3.8`) on JavaScript under `app/assets`, plus RuboCop and RBS. `make test` also runs the JavaScript behavior suite and browser system specs (install Chromium from `.playwright-version` first; see `spec/README.md`).
|
|
135
146
|
|
|
136
147
|
Release:
|
|
137
148
|
|
|
@@ -141,7 +152,7 @@ make release
|
|
|
141
152
|
|
|
142
153
|
## Design RFCs
|
|
143
154
|
|
|
144
|
-
Numbered design documents for the public contract live in [`rfcs/`](rfcs/README.md). Shipped features are specified in RFC 0003 through RFC
|
|
155
|
+
Numbered design documents for the public contract live in [`rfcs/`](rfcs/README.md). Shipped features are specified in RFC 0003 through RFC 0009. Process rules are RFC 0001.
|
|
145
156
|
|
|
146
157
|
## Links
|
|
147
158
|
|
|
@@ -46,12 +46,17 @@ Gem::Specification.new do |spec|
|
|
|
46
46
|
spec.add_dependency "importmap-rails"
|
|
47
47
|
spec.add_dependency "rails", ">= 7.2"
|
|
48
48
|
|
|
49
|
+
spec.add_development_dependency "activeadmin-graphql", ">= 0.4.1"
|
|
49
50
|
spec.add_development_dependency "appraisal", "~> 2"
|
|
50
51
|
spec.add_development_dependency "bundler", ">= 2"
|
|
51
52
|
spec.add_development_dependency "bundler-audit", "~> 0.9"
|
|
53
|
+
spec.add_development_dependency "capybara", ">= 3.40"
|
|
54
|
+
spec.add_development_dependency "capybara-playwright-driver", ">= 0.5"
|
|
52
55
|
spec.add_development_dependency "factory_bot", "~> 6"
|
|
53
|
-
spec.add_development_dependency "polyrun", ">= 2.2.
|
|
56
|
+
spec.add_development_dependency "polyrun", ">= 2.2.9"
|
|
57
|
+
spec.add_development_dependency "propshaft", ">= 1.0"
|
|
54
58
|
spec.add_development_dependency "prosopite", "~> 2.0"
|
|
59
|
+
spec.add_development_dependency "puma", ">= 6"
|
|
55
60
|
spec.add_development_dependency "rake", "~> 13"
|
|
56
61
|
spec.add_development_dependency "rbs", "~> 4"
|
|
57
62
|
spec.add_development_dependency "rspec", "~> 3"
|
|
@@ -65,4 +70,5 @@ Gem::Specification.new do |spec|
|
|
|
65
70
|
spec.add_development_dependency "standard-performance", "~> 1.8"
|
|
66
71
|
spec.add_development_dependency "standard-rails", "~> 1.5"
|
|
67
72
|
spec.add_development_dependency "standard-rspec", "~> 0.3"
|
|
73
|
+
spec.add_development_dependency "stimulus-rails", ">= 1.3"
|
|
68
74
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# RFC 0009: options path owned by ActiveAdmin.routes when auto_register_page.
|
|
4
|
+
return unless ActiveAdmin::CommandPalette.configuration.auto_register_page
|
|
5
|
+
|
|
6
|
+
ActiveAdmin.register_page "Command Palette" do
|
|
7
|
+
menu false
|
|
8
|
+
|
|
9
|
+
controller do
|
|
10
|
+
include ActiveAdmin::CommandPalette::OptionsAction
|
|
11
|
+
|
|
12
|
+
# Keep CSRF on the page-owned options path even if the host ApplicationController
|
|
13
|
+
# template omits protect_from_forgery (same contract as the engine escape hatch).
|
|
14
|
+
protect_from_forgery with: :exception
|
|
15
|
+
|
|
16
|
+
def authorize_access!
|
|
17
|
+
authorize_command_palette_access!
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def index
|
|
21
|
+
redirect_to active_admin_root
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
page_action :options, method: [:get, :post] do
|
|
26
|
+
render_command_palette_options
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,61 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module ActiveAdmin
|
|
4
4
|
module CommandPalette
|
|
5
|
+
# Escape-hatch JSON options when the engine is mounted and
|
|
6
|
+
# `auto_register_page` is false (RFC 0009). Uses the same ActiveAdmin
|
|
7
|
+
# authentication_method / authorization adapter contract as the page.
|
|
5
8
|
class OptionsController < ::ApplicationController
|
|
9
|
+
include OptionsAction
|
|
10
|
+
|
|
6
11
|
protect_from_forgery with: :exception
|
|
7
12
|
|
|
8
|
-
before_action :prevent_command_palette_caching
|
|
9
13
|
before_action :authenticate_command_palette_user!
|
|
14
|
+
before_action :authorize_command_palette_access!
|
|
10
15
|
|
|
11
16
|
def index
|
|
12
|
-
|
|
13
|
-
head :forbidden
|
|
14
|
-
return
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
render json: finder_options
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
def finder_options
|
|
23
|
-
arguments = {
|
|
24
|
-
query: params[:q],
|
|
25
|
-
helpers: UrlHelpers.new,
|
|
26
|
-
user: current_palette_user
|
|
27
|
-
}
|
|
28
|
-
return Finder.options_for(kinds: params[:kinds], **arguments) if params[:kinds].present?
|
|
29
|
-
|
|
30
|
-
Finder.options(kind: params[:kind], **arguments)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def prevent_command_palette_caching
|
|
34
|
-
response.headers["Cache-Control"] = "no-store"
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
def authenticate_command_palette_user!
|
|
38
|
-
method_name = ActiveAdmin.application.authentication_method
|
|
39
|
-
if method_name.present?
|
|
40
|
-
send(method_name)
|
|
41
|
-
elsif current_palette_user.blank?
|
|
42
|
-
head :unauthorized
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
def authorized_for_palette?
|
|
47
|
-
authorizer = ActiveAdmin::CommandPalette.configuration.authorize_with
|
|
48
|
-
if authorizer
|
|
49
|
-
authorizer.call(self)
|
|
50
|
-
else
|
|
51
|
-
current_palette_user.present?
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def current_palette_user
|
|
56
|
-
method_name = ActiveAdmin.application.current_user_method
|
|
57
|
-
return unless method_name.present?
|
|
58
|
-
|
|
59
|
-
send(method_name)
|
|
17
|
+
render_command_palette_options
|
|
60
18
|
end
|
|
61
19
|
end
|
|
62
20
|
end
|
|
@@ -10,7 +10,8 @@ module ActiveAdmin
|
|
|
10
10
|
ALLOWED_SCOPES = %w[global collection member].freeze
|
|
11
11
|
ALLOWED_WHENS = %w[any index show new edit].freeze
|
|
12
12
|
|
|
13
|
-
attr_accessor :min_query_length, :limit, :search_kind_limit, :authorize_with, :default_finder
|
|
13
|
+
attr_accessor :min_query_length, :limit, :search_kind_limit, :authorize_with, :default_finder,
|
|
14
|
+
:auto_register_page
|
|
14
15
|
attr_reader :finders, :actions, :prefixes
|
|
15
16
|
|
|
16
17
|
def initialize
|
|
@@ -24,6 +25,7 @@ module ActiveAdmin
|
|
|
24
25
|
@prefixes = {}
|
|
25
26
|
@authorize_with = nil
|
|
26
27
|
@default_finder = nil
|
|
28
|
+
@auto_register_page = true
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def register_finder(kind, &block)
|
|
@@ -10,6 +10,18 @@ module ActiveAdmin
|
|
|
10
10
|
ActiveAdmin::CommandPalette::Integration.install!
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# ActiveAdmin load_paths own app/admin; Zeitwerk must not autoload that tree.
|
|
14
|
+
initializer "activeadmin_command_palette.configure_zeitwerk" do
|
|
15
|
+
Rails.autoloaders.main.ignore(root.join("app/admin"))
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
initializer "activeadmin_command_palette.load_active_admin" do
|
|
19
|
+
path = root.join("app/admin").to_s
|
|
20
|
+
ActiveAdmin.before_load do |app|
|
|
21
|
+
app.load_paths << path unless app.load_paths.include?(path)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
13
25
|
# Compile after ActiveAdmin loads admin files. A plain to_prepare can run after
|
|
14
26
|
# ActiveAdmin.unload! and before load!, which would leave an empty catalog.
|
|
15
27
|
initializer "activeadmin_command_palette.reload", after: :load_config_initializers do
|
|
@@ -18,7 +18,15 @@ module ActiveAdmin
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def command_palette_options_url
|
|
21
|
-
|
|
21
|
+
if respond_to?(:admin_command_palette_options_path)
|
|
22
|
+
return admin_command_palette_options_path
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
if respond_to?(:active_admin_command_palette)
|
|
26
|
+
return active_admin_command_palette.options_path
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
"/admin/command_palette/options"
|
|
22
30
|
end
|
|
23
31
|
|
|
24
32
|
def command_palette_context
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ActiveAdmin
|
|
4
|
+
module CommandPalette
|
|
5
|
+
# Shared JSON options response for the ActiveAdmin page action and the
|
|
6
|
+
# engine escape-hatch controller (RFC 0009).
|
|
7
|
+
module OptionsAction
|
|
8
|
+
extend ActiveSupport::Concern
|
|
9
|
+
|
|
10
|
+
private
|
|
11
|
+
|
|
12
|
+
def render_command_palette_options
|
|
13
|
+
prevent_command_palette_caching
|
|
14
|
+
render json: command_palette_finder_options
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def command_palette_finder_options
|
|
18
|
+
arguments = {
|
|
19
|
+
query: params[:q],
|
|
20
|
+
helpers: UrlHelpers.new,
|
|
21
|
+
user: current_command_palette_user
|
|
22
|
+
}
|
|
23
|
+
return Finder.options_for(kinds: params[:kinds], **arguments) if params[:kinds].present?
|
|
24
|
+
|
|
25
|
+
Finder.options(kind: params[:kind], **arguments)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def prevent_command_palette_caching
|
|
29
|
+
response.headers["Cache-Control"] = "no-store"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def current_command_palette_user
|
|
33
|
+
method_name = command_palette_active_admin_namespace&.current_user_method
|
|
34
|
+
return unless method_name.present?
|
|
35
|
+
|
|
36
|
+
send(method_name)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def command_palette_active_admin_namespace
|
|
40
|
+
if respond_to?(:active_admin_namespace, true) && active_admin_namespace
|
|
41
|
+
return active_admin_namespace
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
ActiveAdmin.application.namespaces[:admin] ||
|
|
45
|
+
ActiveAdmin.application.namespaces.values.first
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def command_palette_page_config
|
|
49
|
+
if respond_to?(:active_admin_config, true) &&
|
|
50
|
+
active_admin_config.is_a?(ActiveAdmin::Page) &&
|
|
51
|
+
active_admin_config.name == "Command Palette"
|
|
52
|
+
return active_admin_config
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
namespace = command_palette_active_admin_namespace
|
|
56
|
+
return unless namespace
|
|
57
|
+
|
|
58
|
+
namespace.resources.find do |resource|
|
|
59
|
+
resource.is_a?(ActiveAdmin::Page) && resource.name == "Command Palette"
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def authenticate_command_palette_user!
|
|
64
|
+
namespace = command_palette_active_admin_namespace
|
|
65
|
+
method_name = namespace&.authentication_method
|
|
66
|
+
if method_name.present?
|
|
67
|
+
send(method_name)
|
|
68
|
+
elsif current_command_palette_user.blank?
|
|
69
|
+
head :unauthorized
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def authorize_command_palette_access!
|
|
74
|
+
authorizer = ActiveAdmin::CommandPalette.configuration.authorize_with
|
|
75
|
+
if authorizer
|
|
76
|
+
head :forbidden unless authorizer.call(self)
|
|
77
|
+
return
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
head :forbidden unless command_palette_adapter_allows_read?
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def command_palette_adapter_allows_read?
|
|
84
|
+
namespace = command_palette_active_admin_namespace
|
|
85
|
+
page_config = command_palette_page_config
|
|
86
|
+
return false if namespace.nil? || page_config.nil?
|
|
87
|
+
|
|
88
|
+
adapter_class = command_palette_authorization_adapter(namespace)
|
|
89
|
+
adapter = adapter_class.new(page_config, current_command_palette_user)
|
|
90
|
+
adapter.authorized?(ActiveAdmin::Authorization::READ, page_config)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def command_palette_authorization_adapter(namespace)
|
|
94
|
+
adapter = namespace.authorization_adapter
|
|
95
|
+
adapter.is_a?(String) ? adapter.constantize : adapter
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ActiveAdmin
|
|
4
|
+
module CommandPalette
|
|
5
|
+
# Explicit engine mount when `configuration.auto_register_page` is false
|
|
6
|
+
# (RFC 0009). Auth stays on OptionsController; mapper placement does not
|
|
7
|
+
# inherit ActiveAdmin config.
|
|
8
|
+
module Routes
|
|
9
|
+
def self.draw(mapper, at: "/admin/command_palette", as: "active_admin_command_palette")
|
|
10
|
+
mapper.mount Engine => at, :as => as
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -9,6 +9,8 @@ require "activeadmin/command_palette/dsl"
|
|
|
9
9
|
require "activeadmin/command_palette/compiler"
|
|
10
10
|
require "activeadmin/command_palette/catalog"
|
|
11
11
|
require "activeadmin/command_palette/finder"
|
|
12
|
+
require "activeadmin/command_palette/options_action"
|
|
13
|
+
require "activeadmin/command_palette/routes"
|
|
12
14
|
require "activeadmin/command_palette/helper"
|
|
13
15
|
require "activeadmin/command_palette/url_helpers"
|
|
14
16
|
require "activeadmin/command_palette/integration"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-command_palette
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrei Makarov
|
|
@@ -57,6 +57,20 @@ dependencies:
|
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: '7.2'
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: activeadmin-graphql
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: 0.4.1
|
|
67
|
+
type: :development
|
|
68
|
+
prerelease: false
|
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: 0.4.1
|
|
60
74
|
- !ruby/object:Gem::Dependency
|
|
61
75
|
name: appraisal
|
|
62
76
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,6 +113,34 @@ dependencies:
|
|
|
99
113
|
- - "~>"
|
|
100
114
|
- !ruby/object:Gem::Version
|
|
101
115
|
version: '0.9'
|
|
116
|
+
- !ruby/object:Gem::Dependency
|
|
117
|
+
name: capybara
|
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '3.40'
|
|
123
|
+
type: :development
|
|
124
|
+
prerelease: false
|
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
126
|
+
requirements:
|
|
127
|
+
- - ">="
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: '3.40'
|
|
130
|
+
- !ruby/object:Gem::Dependency
|
|
131
|
+
name: capybara-playwright-driver
|
|
132
|
+
requirement: !ruby/object:Gem::Requirement
|
|
133
|
+
requirements:
|
|
134
|
+
- - ">="
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: '0.5'
|
|
137
|
+
type: :development
|
|
138
|
+
prerelease: false
|
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
140
|
+
requirements:
|
|
141
|
+
- - ">="
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: '0.5'
|
|
102
144
|
- !ruby/object:Gem::Dependency
|
|
103
145
|
name: factory_bot
|
|
104
146
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -119,14 +161,28 @@ dependencies:
|
|
|
119
161
|
requirements:
|
|
120
162
|
- - ">="
|
|
121
163
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: 2.2.
|
|
164
|
+
version: 2.2.9
|
|
165
|
+
type: :development
|
|
166
|
+
prerelease: false
|
|
167
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
168
|
+
requirements:
|
|
169
|
+
- - ">="
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: 2.2.9
|
|
172
|
+
- !ruby/object:Gem::Dependency
|
|
173
|
+
name: propshaft
|
|
174
|
+
requirement: !ruby/object:Gem::Requirement
|
|
175
|
+
requirements:
|
|
176
|
+
- - ">="
|
|
177
|
+
- !ruby/object:Gem::Version
|
|
178
|
+
version: '1.0'
|
|
123
179
|
type: :development
|
|
124
180
|
prerelease: false
|
|
125
181
|
version_requirements: !ruby/object:Gem::Requirement
|
|
126
182
|
requirements:
|
|
127
183
|
- - ">="
|
|
128
184
|
- !ruby/object:Gem::Version
|
|
129
|
-
version:
|
|
185
|
+
version: '1.0'
|
|
130
186
|
- !ruby/object:Gem::Dependency
|
|
131
187
|
name: prosopite
|
|
132
188
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -141,6 +197,20 @@ dependencies:
|
|
|
141
197
|
- - "~>"
|
|
142
198
|
- !ruby/object:Gem::Version
|
|
143
199
|
version: '2.0'
|
|
200
|
+
- !ruby/object:Gem::Dependency
|
|
201
|
+
name: puma
|
|
202
|
+
requirement: !ruby/object:Gem::Requirement
|
|
203
|
+
requirements:
|
|
204
|
+
- - ">="
|
|
205
|
+
- !ruby/object:Gem::Version
|
|
206
|
+
version: '6'
|
|
207
|
+
type: :development
|
|
208
|
+
prerelease: false
|
|
209
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
210
|
+
requirements:
|
|
211
|
+
- - ">="
|
|
212
|
+
- !ruby/object:Gem::Version
|
|
213
|
+
version: '6'
|
|
144
214
|
- !ruby/object:Gem::Dependency
|
|
145
215
|
name: rake
|
|
146
216
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -323,6 +393,20 @@ dependencies:
|
|
|
323
393
|
- - "~>"
|
|
324
394
|
- !ruby/object:Gem::Version
|
|
325
395
|
version: '0.3'
|
|
396
|
+
- !ruby/object:Gem::Dependency
|
|
397
|
+
name: stimulus-rails
|
|
398
|
+
requirement: !ruby/object:Gem::Requirement
|
|
399
|
+
requirements:
|
|
400
|
+
- - ">="
|
|
401
|
+
- !ruby/object:Gem::Version
|
|
402
|
+
version: '1.3'
|
|
403
|
+
type: :development
|
|
404
|
+
prerelease: false
|
|
405
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
406
|
+
requirements:
|
|
407
|
+
- - ">="
|
|
408
|
+
- !ruby/object:Gem::Version
|
|
409
|
+
version: '1.3'
|
|
326
410
|
description: 'Keyboard command palette for ActiveAdmin 4: menu navigation, registered
|
|
327
411
|
actions, and host-defined record finders.'
|
|
328
412
|
email:
|
|
@@ -339,6 +423,7 @@ files:
|
|
|
339
423
|
- README.md
|
|
340
424
|
- SECURITY.md
|
|
341
425
|
- activeadmin-command_palette.gemspec
|
|
426
|
+
- app/admin/command_palette.rb
|
|
342
427
|
- app/assets/controllers/activeadmin_command_palette/command_palette_controller.js
|
|
343
428
|
- app/assets/stylesheets/activeadmin_command_palette.css
|
|
344
429
|
- app/controllers/active_admin/command_palette/options_controller.rb
|
|
@@ -357,9 +442,11 @@ files:
|
|
|
357
442
|
- lib/activeadmin/command_palette/finder.rb
|
|
358
443
|
- lib/activeadmin/command_palette/helper.rb
|
|
359
444
|
- lib/activeadmin/command_palette/integration.rb
|
|
445
|
+
- lib/activeadmin/command_palette/options_action.rb
|
|
360
446
|
- lib/activeadmin/command_palette/resource_config.rb
|
|
361
447
|
- lib/activeadmin/command_palette/resource_dsl.rb
|
|
362
448
|
- lib/activeadmin/command_palette/resource_methods.rb
|
|
449
|
+
- lib/activeadmin/command_palette/routes.rb
|
|
363
450
|
- lib/activeadmin/command_palette/url_helpers.rb
|
|
364
451
|
- lib/activeadmin/command_palette/version.rb
|
|
365
452
|
- sig/activeadmin/command_palette.rbs
|