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(core): replace most --affine with cssVar #5728

Merged

Conversation

pengx17
Copy link
Collaborator

@pengx17 pengx17 commented Jan 27, 2024

using a babel plugin to transform all var(--affine-xxx) to cssVar

Some issues:

  • tried ast-grep but it seems to be not easy to add imports conditionally
  • current work does not work well with ts with types because babel will strip them out

Copy link

graphite-app bot commented Jan 27, 2024

Your org has enabled the Graphite merge queue for merging into canary

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

You can enable merging using labels in your Graphite merge queue settings.

Copy link
Collaborator Author

pengx17 commented Jan 27, 2024

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

Copy link

codecov bot commented Jan 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5612424) 64.58% compared to head (7d951a9) 64.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary    #5728      +/-   ##
==========================================
+ Coverage   64.58%   64.67%   +0.09%     
==========================================
  Files         342      342              
  Lines       19401    19401              
  Branches     1649     1650       +1     
==========================================
+ Hits        12530    12548      +18     
+ Misses       6655     6637      -18     
  Partials      216      216              
Flag Coverage Δ
server-test 70.81% <ø> (+0.12%) ⬆️
unittest 46.55% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@pengx17 pengx17 force-pushed the xp/01-27-fix_core_replace_most_--affine_with_cssVar branch 5 times, most recently from 9b6697e to b8832b6 Compare January 28, 2024 14:25
@pengx17 pengx17 force-pushed the xp/01-27-fix_core_replace_most_--affine_with_cssVar branch from b8832b6 to 4b8f261 Compare February 1, 2024 09:07
Copy link

graphite-app bot commented Feb 1, 2024

Merge activity

using a [babel plugin](https://gist.github.com/pengx17/49e24ae8a5a609bdaff122ee8c679d1c) to transform all var(--affine-xxx) to cssVar

Some issues:
- tried ast-grep but it seems to be not easy to add imports conditionally
- current work does not work well with ts with types because babel will strip them out
@Brooooooklyn Brooooooklyn force-pushed the xp/01-27-fix_core_replace_most_--affine_with_cssVar branch from 4b8f261 to 7d951a9 Compare February 1, 2024 09:33
@graphite-app graphite-app bot merged commit 7d951a9 into canary Feb 1, 2024
38 of 41 checks passed
@graphite-app graphite-app bot deleted the xp/01-27-fix_core_replace_most_--affine_with_cssVar branch February 1, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants