Skip to content

Prep Tailwind CSS migration part 3#8037

Merged
javierjulio merged 4 commits into
masterfrom
tailwind-prep-part-3
Jul 30, 2023
Merged

Prep Tailwind CSS migration part 3#8037
javierjulio merged 4 commits into
masterfrom
tailwind-prep-part-3

Conversation

@javierjulio

Copy link
Copy Markdown
Member

This completes the initial prep work as it adds the batch actions form DSL replacement. The test suite is stable. From here we'll continue to modify the CSS and styles of all components.

The idea is to rely on partials that users declare rather than a DSL so full customization is possible. The batch action now accepts a partial where a user can provide the modal HTML (should be hidden) and link html options so a data attribute can be specified that will open the modal form on click. A delegated form submit event handler is applied for a matching form element by data attribute. The form submission works the same as it did before, providing the same fields.
Reviewing past changes, all references were removed.
The inputs don't change in size so they shouldn't be relative to the font size of the element they are within so instead of em they should use rem. The checkbox indeterminate styles are fixed now as well.
@javierjulio javierjulio force-pushed the tailwind-prep-part-3 branch from 53a6255 to 87c8753 Compare July 30, 2023 21:44
@javierjulio javierjulio force-pushed the tailwind-prep-part-3 branch from 87c8753 to ecd5318 Compare July 30, 2023 21:49
@codecov

codecov Bot commented Jul 30, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.15% 🎉

Comparison is base (5416ba1) 98.89% compared to head (ecd5318) 99.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8037      +/-   ##
==========================================
+ Coverage   98.89%   99.04%   +0.15%     
==========================================
  Files         184      185       +1     
  Lines        4698     4731      +33     
==========================================
+ Hits         4646     4686      +40     
+ Misses         52       45       -7     
Files Changed Coverage Δ
...ive_admin/batch_actions/views/batch_action_form.rb 100.00% <ø> (ø)
...admin/batch_actions/views/batch_action_selector.rb 100.00% <ø> (ø)
features/step_definitions/batch_action_steps.rb 100.00% <100.00%> (ø)
lib/active_admin/batch_actions/controller.rb 100.00% <100.00%> (+5.26%) ⬆️
...b/active_admin/batch_actions/resource_extension.rb 98.07% <100.00%> (+9.18%) ⬆️
lib/active_admin/views/pages/index.rb 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@javierjulio javierjulio merged commit 10c7a88 into master Jul 30, 2023
@javierjulio javierjulio deleted the tailwind-prep-part-3 branch July 30, 2023 21:56
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.

1 participant