Skip to content

Prep Tailwind CSS migration part 2#8036

Merged
javierjulio merged 15 commits into
masterfrom
tailwind-part2
Jul 29, 2023
Merged

Prep Tailwind CSS migration part 2#8036
javierjulio merged 15 commits into
masterfrom
tailwind-part2

Conversation

@javierjulio

Copy link
Copy Markdown
Member

No description provided.

@javierjulio javierjulio self-assigned this Jul 29, 2023
@codecov

codecov Bot commented Jul 29, 2023

Copy link
Copy Markdown

Codecov Report

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

Comparison is base (80cb427) 98.35% compared to head (d1180db) 98.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8036      +/-   ##
==========================================
+ Coverage   98.35%   98.89%   +0.53%     
==========================================
  Files         187      184       -3     
  Lines        4744     4698      -46     
==========================================
- Hits         4666     4646      -20     
+ Misses         78       52      -26     
Files Changed Coverage Δ
...ib/active_admin/inputs/filters/date_range_input.rb 100.00% <ø> (ø)
lib/active_admin/sidebar_section.rb 100.00% <ø> (ø)
lib/active_admin/view_factory.rb 100.00% <ø> (ø)
features/step_definitions/action_item_steps.rb 100.00% <100.00%> (ø)
features/step_definitions/additional_web_steps.rb 87.80% <100.00%> (ø)
features/step_definitions/breadcrumb_steps.rb 100.00% <100.00%> (ø)
features/step_definitions/footer_steps.rb 100.00% <100.00%> (ø)
features/step_definitions/format_steps.rb 100.00% <100.00%> (ø)
features/step_definitions/member_link_steps.rb 100.00% <100.00%> (ø)
features/step_definitions/pagination_steps.rb 100.00% <100.00%> (ø)
... and 13 more

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

These have been replaced.
This also updates the locale keys for pagination to be less wordy and long. Will follow up to extract the Tailwind CSS classes.
The action items are rendered directly into the container so no need for multiple span wrappers with a component which are undesired anyway. The DSL is meant to easily add what action item you want vs implying it has to be a link and styled a certain way.
This now works with Flowbite and has simpler implementation. The item method now takes a block so anything can be added e.g. horizontal divider or other control.

We must have coverage through another test, but wouldn't hurt to have a simple unit test for DropdownMenu. This covers the new feature where item now takes an optional block to render any content besides the default link. We can expand this spec further.
This is a work in progress. The plan is to have the global navigation always be a vertical drawer menu since the common case is to have many pages. This will allow us to more easily support different viewports as well.
We already commented out the batch actions feature temporarily as a follow up with migrate over the batch actions form DSL replacement. This is to just appease code coverage for now.
@javierjulio javierjulio merged commit 9999e80 into master Jul 29, 2023
@javierjulio javierjulio deleted the tailwind-part2 branch July 29, 2023 19:35
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