You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds ActiveAdmin 4 support. ActiveAdmin 4 has no jQuery or jQuery UI, so the dialog is a new ES module that opens a Flowbite modal and posts the same params as the v3 dialog (changes[...], collection_selection[], authenticity_token, batch_action). ActiveAdmin 3 keeps its jQuery UI JS and SCSS unchanged; Ruby picks the v4 markup with aa_v4?.
Ransack 6 raises unless Author allowlists its associations, and Rails 8
draws routes lazily outside CI, so batch actions were missing locally.
Co-Authored-By: Clanker
ActiveAdmin 4 ships neither jQuery nor jQuery UI. The module is pinned into
ActiveAdmin.importmap and posts the same params as the jQuery UI dialog.
Co-Authored-By: Clanker
Guard against a second submit or a stacked modal, submit an empty value
for nil select options, label the modal by its heading, and add the
module to the Sprockets precompile list.
Co-Authored-By: Clanker
Send an enabled but unchecked checkbox as "off", keep the modal open once
the action is sent, focus the modal on open, and have the importmap cache
sweeper watch the gem's JavaScript.
Co-Authored-By: Clanker
Replacing ActiveAdmin's cache sweeper outright drops directories other
engines register through importmap_watches (activeadmin/activeadmin#9153).
Rebuild the sweeper only when that setting is missing.
Co-Authored-By: Clanker
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The modal has accessibility gaps: value controls lack accessible names, keyboard focus can escape to the background, and closing it does not restore focus to the action button.
The label's for points to the enable checkbox, so the actual value input/select has no accessible name after it is enabled. Screen-reader users encounter an unnamed text box, date field, select, or second checkbox without knowing which attribute it changes. Please also give the value control an accessible name using the field label.
Closing with Cancel or Escape removes the focused control, but neither this handler nor Flowbite restores focus to the action button. Keyboard users lose their place in the page's navigation. Restore focus to the existing button argument after removing the modal.
The initial focus call does not keep keyboard focus inside the modal, and Flowbite does not provide a focus trap. Shift+Tab from the first control or Tab past Cancel/Back can reach the background page while the modal remains open. Trap focus within the visible modal controls across step changes, or make the background inert until the modal closes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ActiveAdmin 4 support. ActiveAdmin 4 has no jQuery or jQuery UI, so the dialog is a new ES module that opens a Flowbite modal and posts the same params as the v3 dialog (
changes[...],collection_selection[],authenticity_token,batch_action). ActiveAdmin 3 keeps its jQuery UI JS and SCSS unchanged; Ruby picks the v4 markup withaa_v4?.Decisions not visible in the diff:
ActiveAdmin.importmap. Hosts import it throughjavascript_moduleswhen ActiveAdmin has it (Add javascript_modules setting to import modules on every page activeadmin/activeadmin#9148), throughActiveAdminTheme.javascripts, or by overriding_html_head. The README covers all three.dark:variants, and hosts add the gem to Tailwindcontent.vendor/assetsunder that name.mass_update_modal_dialog:before_open/after_openare now bubblingCustomEvents withdetail.form.Release impact: minor. v3 behaviour and assets are unchanged, and the gemspec now allows
< 5.0.0.a.Verified: the full suite passes on AA 3.5.2 (Rails 8.0) and AA 4.0.0.beta23 (Rails 8.1), plus v4-only modal specs.