Skip to content

Template and styles fixes#8207

Merged
javierjulio merged 4 commits into
masterfrom
template-updates
Jan 4, 2024
Merged

Template and styles fixes#8207
javierjulio merged 4 commits into
masterfrom
template-updates

Conversation

@javierjulio

Copy link
Copy Markdown
Member

This updates the data-table-sorted-icon style so it's picked up automatically by Tailwind's content search and also with a fixed width/height since in some cases it can be cut off. This also fixes the bug report template script workflow that failed on a scheduled run due to the importmap-rails v2 release. The shim argument was removed so the html head template was updated to remove it.

This argument has been removed so we can't default to it. For now we intend to support v1 and v2 of importmap-rails since breaking changes are only around defaults. If users don't want the shim but want to remain on v1 they can modify this template.
The previous change fixes the bug report template workflow failure but here we'll want to stick to the current version.
Trying this out in a few apps wasn't always picked up. It doesn't follow how we typically do other CSS here so this should play nicer with Tailwind's content look up so no need to specify these in a safelist. Since this is already prefixed with data-table- in the name, no need to scope to the data-table class, like we do with data-table-resource-actions and other classes.

This also sets a fixed width and height on the icon since in some cases the SVG can get cut off at the bottom portion. It's not replicable on our dev generated app, or on demo but can occur.
The script now runs quickly since we no longer have to install sassc. This used to be much slower. For example, runs for a couple of months ago, could be as slow as 3 minutes whereas now it runs in about 30 seconds or less.

GitHub no longer documents the approach we took with the empty workflow and paths/paths-ignore so we'll consolidate into one workflow using the changes-files action.

Since this is now fast, we want to run this on any PR with applicable files changed to get feedback, rather than fail on a schedule and realize then that something is wrong. In this case it was the release of importmap-rails v2 and a deleted argument.
@javierjulio javierjulio self-assigned this Jan 4, 2024
@codecov

codecov Bot commented Jan 4, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (39bf87d) 99.10% compared to head (949f413) 99.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8207   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files         140      140           
  Lines        4013     4013           
=======================================
  Hits         3977     3977           
  Misses         36       36           

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

@javierjulio javierjulio merged commit c61dc76 into master Jan 4, 2024
@javierjulio javierjulio deleted the template-updates branch January 4, 2024 21:18
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