Skip to content

Release 1.1.0: table footer, datepicker fix, select search - #2

Merged
senid231 merged 4 commits into
1-x-stablefrom
table-footer-1x
Dec 2, 2026
Merged

senid231 merged 4 commits into
1-x-stablefrom
table-footer-1x

Conversation

@senid231

@senid231 senid231 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Prepares 1.1.0 on the 1.x line for ActiveAdmin 3. It ships the three commits already on 1-x-stable since 1.0.0, plus three changes found while moving an app off capybara_active_admin:

  • Table#footer reads the <tfoot> row, such as the totals row of activeadmin_table_footer, by column key. The dummy app adds that gem as a development dependency and shows the row on ?with_totals=1.
  • DateRangeFilter#set and Form::DatePickerField#fill wait until the jQuery UI datepicker is hidden. Its fade-out kept it over the Filter button after set returned.
  • select_option and fill on select controls take search: for select widgets. It reaches choose_option only when given, so existing widget modules keep working.

More 1.x fixes may land on this branch before the merge. The tag v1.1.0 and the release follow the merge into 1-x-stable.

The datepicker's fade-out kept it over the Filter button after set
returned, so the next click could land on the picker.

Co-Authored-By: Clanker
Co-Authored-By: Clanker
@senid231 senid231 self-assigned this Dec 2, 2026
@senid231
senid231 requested a balanced review from Copilot December 2, 2026 08:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The datepicker assertion matches hidden elements when Capybara.ignore_hidden_elements = false, causing DateRangeFilter#set and DatePickerField#fill to time out after the picker closes.

1 open issue
What changed in this PR

Prepares version 1.1.0 of the ActiveAdmin 3 page-object library on the 1.x line.

Changes:

  • Adds table footer access by column key.
  • Waits for datepickers to close after entering dates.
  • Adds optional select-widget search text, with documentation and regression coverage.
File Description
spec/​dummy/​config/​application.rb Loads the table-footer plugin.
spec/​dummy/​app/​admin/​customers.rb Adds optional totals cells.
spec/​active_admin_page_objects/​text_spec.rb Updates the expected version.
spec/​active_admin_page_objects/​table_spec.rb Tests footer cell access.
spec/​active_admin_page_objects/​rspec_matchers_spec.rb Changes the fallback matcher example.
spec/​active_admin_page_objects/​filters_spec.rb Tests search compatibility and datepicker closure.
spec/​active_admin_page_objects/​extension_spec.rb Checks search keyword forwarding.
README.md Documents footer, datepicker, and search behavior.
lib/​active_admin_page_objects/​version.rb Sets version 1.1.0.
lib/​active_admin_page_objects/​table.rb Adds footer sections and shared row behavior.
lib/​active_admin_page_objects/​selectors.rb Adds footer and datepicker selectors.
lib/​active_admin_page_objects/​select_control.rb Accepts optional search text.
lib/​active_admin_page_objects/​section.rb Waits for datepicker closure.
lib/​active_admin_page_objects/​form/​select_field.rb Forwards form select search text.
lib/​active_admin_page_objects/​filters/​select_filter.rb Forwards filter select search text.
Gemfile Adds the dummy app’s table-footer dependency.
CHANGELOG.md Records the 1.1.0 release changes.

Review effort: Balanced

Also close the datepicker through jQuery UI: an Escape sent after the
picker closed would close an enclosing modal dialog.

Co-Authored-By: Clanker
jQuery UI keeps the hidden picker node, so a suite with
ignore_hidden_elements off timed out. CI also saw the picker open again
right after the hide; blurring the input and waiting for the fade to
finish closes that window.

Co-Authored-By: Clanker
@senid231
senid231 merged commit f481432 into 1-x-stable Dec 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants