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

feat(scripts): allow import script to pull using Figma API #2132

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

booc0mtaco
Copy link
Contributor

@booc0mtaco booc0mtaco commented Feb 15, 2025

  • handle both downloaded file version and API version
  • handle input and edge cases (e.g., missing config)
  • separate and handle parsing of token contents into theme file
  • guard against committing local edsrc config

we also flag instances of mismatches between figma and code, for later fixing (in Figma). Example:

Screenshot 2025-02-19 at 12 47 08

Test Plan:

  • Wrote/updated automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, and here are the details:

Copy link

codecov bot commented Feb 15, 2025

Codecov Report

Attention: Patch coverage is 89.85507% with 7 lines in your changes missing coverage. Please review.

Project coverage is 96.96%. Comparing base (8a312e8) to head (567ac5b).
Report is 4 commits behind head on next.

Files with missing lines Patch % Lines
bin/_util.js 89.85% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2132      +/-   ##
==========================================
- Coverage   97.13%   96.96%   -0.18%     
==========================================
  Files         114      114              
  Lines        2829     2898      +69     
  Branches      764      781      +17     
==========================================
+ Hits         2748     2810      +62     
- Misses         77       84       +7     
  Partials        4        4              

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

Copy link

github-actions bot commented Feb 15, 2025

size-limit report 📦

Path Size
components 95.45 KB (0%)
styles 29.87 KB (0%)

@booc0mtaco booc0mtaco force-pushed the aholloway/EDS-1471 branch 2 times, most recently from d9f8e5a to 0eea26d Compare February 19, 2025 18:15
@@ -99,7 +99,7 @@
"jsonfile": "^6.1.0",
"lilconfig": "^3.1.3",
"lodash": "^4.17.21",
"ora": "^8.1.1",
"ora": "5.4.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: locking ora to a pre ESM release to avoid import issues and incompatibility with pre v30 of jest

- handle both downloaded file version and API version
- handle input and edge cases (e.g., missing config)
- separate and handle parsing of token contents into theme file
- guard against committing local edsrc config
@booc0mtaco booc0mtaco marked this pull request as ready for review February 19, 2025 18:48
@booc0mtaco booc0mtaco requested a review from a team as a code owner February 19, 2025 18:48
Copy link

@ajmoreno ajmoreno left a comment

Choose a reason for hiding this comment

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

lgtm! though figma is intimidating lol

@booc0mtaco
Copy link
Contributor Author

Holding merge until release completes to keep the history on next tidy (QoL)

@booc0mtaco
Copy link
Contributor Author

lgtm! though figma is intimidating lol

Yahhhh. adding these classes to make dealing with all the weird data a little more straight-forward... more to come :)

@booc0mtaco booc0mtaco merged commit 5919b30 into next Feb 20, 2025
12 checks passed
@booc0mtaco booc0mtaco deleted the aholloway/EDS-1471 branch February 20, 2025 23:16
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.

2 participants