Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix css loader regression #19

Merged
merged 26 commits into from
Oct 24, 2024
Merged

fix css loader regression #19

merged 26 commits into from
Oct 24, 2024

Conversation

gwleuverink
Copy link
Owner

@gwleuverink gwleuverink commented Sep 4, 2024

This PR fixes a regression that caused css imports to error.

This was caused because we're compiling js code in the module boilerplate that was meant to auto invoke a iife export.

I've extracted the boilerplate to a blade file for finer templating control compared to the heredoc string used before.

caveats
Using a blade.js extension we kept js syntax highlighting, but vscode autoformat mucks up the syntax on save. Also blade directives caused squigglies everywhere.

I've settled for a blade.php file for now. This causes us to lose all js syntax highlighting. But no more squigglies or formatting issues. I'm exploring a better approach.

Also, the blade file is not picked up by code coverage. I have to fix that and add a regression test for the initial failing import.

codescene-delta-analysis[bot]

This comment was marked as outdated.

@gwleuverink gwleuverink changed the title extract import boilerplate into blade file for correct conditional rendering fix css loader regression Sep 4, 2024
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.00 (9.49 -> 9.49)

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.51 (9.49 -> 10.00)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

src/Components/Import.php Show resolved Hide resolved
src/Components/Import.php Show resolved Hide resolved
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.04 (9.65 -> 9.69)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

@gwleuverink gwleuverink marked this pull request as ready for review October 24, 2024 11:36
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (3921b0c) to head (1a6d4a9).
Report is 27 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #19      +/-   ##
============================================
- Coverage     97.58%   97.47%   -0.12%     
- Complexity       57       59       +2     
============================================
  Files             8        8              
  Lines           290      277      -13     
============================================
- Hits            283      270      -13     
  Misses            7        7              

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

@gwleuverink gwleuverink merged commit fa25048 into main Oct 24, 2024
19 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.

1 participant