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

Release 112 #934

Merged
merged 49 commits into from
Jul 8, 2022
Merged

Release 112 #934

merged 49 commits into from
Jul 8, 2022

Conversation

six7
Copy link
Collaborator

@six7 six7 commented Jun 24, 2022

Changes to Pro

  • Exposes Pro features in a read-only mode for Free users:
    • Theme manager allows changing themes, but not editing
    • Read from repositories with multi-file sync, but not push
    • See which branch you're on in the branch switcher, but not make the switch

Improved tokens

Sync

  • Adds support for root-level git storage (e.g. storing tokens in the "/" directory). Fixes Git Sync: Allow storing tokens in the root folder #822
  • When using multi file sync, renaming token sets now correctly renames the file
  • When using multi file sync, deleting a token set now correctly deletes the file

Quality of life improvements

Fixes

roppazvan and others added 5 commits June 22, 2022 13:29
…-logic

Ft 147 create tests for license key logic
* skip to start screen when create new file

* resolve test error

* add env

* convert input to DownShiftInput in compositionToken

* modify css

* add color picker

* delete color picker

Co-authored-by: hiroshi <[email protected]>
* feat: Allow root folder in Git storage

* fix: Fixed subfolder

* chore: Updated tests

* chore: Updated test coverage

* fix: FT-320 fixed subfolders for Gitlab

* fix: Fixed Gitlab push in subfolders

* fix: Fixed Github cache
octokit/octokit.js#890

* fix: Update tests
* Add border width to specific sides

* remove logs
@vercel
Copy link

vercel bot commented Jun 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
figma-tokens ✅ Ready (Inspect) Visit Preview Jul 8, 2022 at 1:56PM (UTC)
ft-storybook ✅ Ready (Inspect) Visit Preview Jul 8, 2022 at 1:56PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2022

Commit SHA:d4f04db821591375acf0453682b77886e5ebfc23
Current PR reduces the test coverage percentage by 1 for some tests

LiamMartens and others added 2 commits June 26, 2022 21:53
* added expected output

* add composition examples

* fix tests

* Fix composition tokens - resolveReferences: flag

Co-authored-by: razvanpop <[email protected]>
* skip to start screen when create new file

* resolve test error

* add env

* select composition token

* add cypress test for composition token

* code refresh

* fix: composition token cypress

Co-authored-by: hiroshi <[email protected]>
@github-actions
Copy link
Contributor

Commit SHA:57c9da807021fcb7fee447fa1d378c280a9db860
Current PR reduces the test coverage percentage by 0.5 for some tests

@github-actions
Copy link
Contributor

github-actions bot commented Jun 27, 2022

Commit SHA:d4f04db821591375acf0453682b77886e5ebfc23

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: next 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 55.18 (9.52) 44.8 (8.23) 48.52 (8.82) 55.39 (9.61)
🟢 src/AsyncMessageChannel.ts 80.85 (76.3) 77.42 (77.42) 100 (100) 82.61 (77.96)
🟢 src/app/components/App.tsx 100 (0) 93.75 (6.25) 100 (0) 100 (0)
🟢 src/app/components/BranchSelector.tsx 52.05 (50.66) 25.71 (25.71) 37.5 (37.5) 51.39 (49.98)
🟢 src/app/components/Checkbox.tsx 83.33 (8.33) 63.64 (9.09) 100 (0) 81.82 (9.09)
🟢 src/app/components/ConfirmDialog.tsx 56.41 (20.51) 68.18 (63.63) 35.71 (14.28) 60 (20)
🟢 src/app/components/Footer.tsx 78.13 (8.43) 43.75 (32.64) 57.14 (14.28) 82.76 (9.43)
🟢 src/app/components/Initiator.tsx 54.29 (33.28) 43.42 (32.89) 75 (20.45) 53.79 (33.02)
🟢 src/app/components/Input.tsx 66.67 (25) 59.46 (59.46) 50 (50) 66.67 (25)
✨ 🆕 src/app/components/Label.tsx 100 100 100 100
✨ 🆕 src/app/components/LoadProviderSelector.tsx 25 100 0 25
🟢 src/app/components/LoadingBar.tsx 94.12 (23.53) 64.71 (47.06) 85.71 (28.57) 92.86 (21.43)
🟢 src/app/components/ProBadge.tsx 100 (0) 100 (50) 100 (0) 100 (0)
🟢 src/app/components/PushDialog.tsx 58.06 (9.67) 35.14 (10.82) 50 (0) 58.06 (9.67)
🟢 src/app/components/Settings.tsx 80 (80) 100 (0) 50 (50) 80 (80)
🟢 src/app/components/Spinner.tsx 100 (0) 100 (100) 100 (0) 100 (0)
🟢 src/app/components/StorageProviderSelector.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/SyncSettings.tsx 46.3 (44.45) 18.18 (18.18) 18.75 (18.75) 46.94 (44.9)
🔴 src/app/components/TokenListing.tsx 62.96 (-2.56) 58.06 (0) 28.57 (-8.93) 66.67 (-2.56)
🟢 src/app/components/TokenSetList.tsx 61.36 (-2.93) 50 (14.29) 46.67 (0) 62.5 (-3.29)
🟢 src/app/components/TokenSetSelector.tsx 55.74 (3.95) 25 (0) 31.25 (9.82) 55.74 (3.95)
🟢 src/app/components/Tokens.tsx 66.27 (1.98) 51.16 (3.94) 50 (0) 65 (2.31)
✨ 🆕 src/app/components/AddLicenseKey/AddLicenseKey.tsx 95.83 75 100 95.83
🟢 src/app/components/Button/Button.tsx 88.89 (33.33) 73.68 (21.05) 100 (50) 88.89 (33.33)
🔴 src/app/components/LaunchDarkly/LDIdentifier.tsx 65.22 (-1.45) 22.22 (-6.35) 42.86 (0) 65.22 (-1.45)
✨ 🆕 src/app/components/PresetProvider/DefaultPreset.tsx 0 100 0 0
✨ 🆕 src/app/components/PresetProvider/FilePreset.tsx 0 100 0 0
🟢 src/app/components/ThemeSelector/ThemeSelector.tsx 70.83 (62.13) 58.33 (58.33) 44.44 (44.44) 77.27 (67.75)
🟢 src/app/components/TokenButton/DragOverItem.tsx 60 (0) 42.11 (5.27) 100 (0) 60 (0)
🟢 src/app/components/TokenButton/TokenButton.tsx 46.55 (3.45) 13.79 (0) 26.67 (0) 49.09 (3.64)
🟢 src/app/components/TokenButton/TokenButtonDraggable.tsx 51.67 (6.67) 34.48 (13.79) 38.46 (0) 55.56 (7.41)
🟢 src/app/components/TokenSetItem/TokenSetItem.tsx 60.87 (0) 50 (16.67) 30 (0) 63.64 (0)
🟢 src/app/components/TokenSetListOrTree/TokenSetListOrTree.tsx 64.29 (2.75) 11.11 (0) 50 (0) 75 (2.27)
🟢 src/app/components/TokenTooltip/SingleShadowValueDisplay.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/TokenTooltip/SingleTypograhpyValueDisplay.tsx 100 (50) 50 (50) 100 (100) 100 (0)
🟢 src/app/components/TokenTooltip/TokenTooltipContent.tsx 100 (87.5) 100 (100) 100 (100) 100 (87.5)
🟢 src/app/components/TokenTooltip/TokenTooltipContentValue.tsx 56.67 (53.34) 43.33 (43.33) 50 (50) 59.26 (55.56)
src/app/components/modals/PresetModal.tsx 0 100 0 0
🟢 src/app/hooks/useConfirm.tsx 88.89 (38.89) 75 (75) 75 (50) 88.24 (41.18)
🟢 src/app/hooks/useIsGitMultiFileEnabled.ts 100 (0) 100 (80) 100 (0) 100 (0)
🔴 src/app/hooks/usePropertiesForType.ts 35.29 (-4.71) 12.5 (-1.79) 100 (0) 35.29 (-4.71)
🔴 src/app/store/remoteTokens.tsx 83.19 (-7.81) 71.74 (-6.83) 80 (-8.89) 83.04 (-7.87)
🟢 src/app/store/useStorage.tsx 100 (0) 100 (66.67) 100 (0) 100 (0)
🟢 src/app/store/models/branchState.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/store/models/tokenState.tsx 52.87 (1.24) 52.11 (0) 60 (1.79) 53.29 (1.26)
🟢 src/app/store/models/uiState.tsx 47.83 (34.5) 16.67 (16.67) 51.35 (43.02) 47.83 (34.5)
🟢 src/app/store/models/userState.ts 91.67 (86.11) 85.71 (85.71) 77.78 (66.67) 91.67 (86.11)
🟢 src/app/store/models/reducers/userState/setLicenseStatus.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/app/store/providers/file.tsx 35.29 0 50 33.33
🔴 src/app/store/providers/ado/ado.tsx 85.58 (-1.02) 69.77 (-2.02) 100 (0) 89.69 (-0.42)
✨ 🆕 src/app/store/providers/github/getGithubCreatePullRequestUrl.ts 100 50 100 100
🔴 src/app/store/providers/github/github.tsx 89.22 (-0.68) 75.51 (-1.09) 100 (0) 91.58 (0.18)
🔴 src/app/store/providers/gitlab/gitlab.tsx 89.32 (-0.68) 75.51 (-1.09) 100 (0) 91.67 (0.18)
🟢 src/constants/DefaultWindowSize.ts 100 (100) 100 (0) 100 (0) 100 (100)
✨ 🆕 src/constants/LoadProviderType.ts 100 100 100 100
🟢 src/constants/ValidNodeTypes.ts 100 (100) 100 (0) 100 (0) 100 (100)
🟢 src/figmaStorage/CheckForChangesProperty.ts 66.67 (33.34) 100 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/FigmaStorageProperty.ts 92.86 (42.86) 81.82 (31.82) 80 (20) 95.83 (45.83)
🟢 src/figmaStorage/LastOpenedProperty.ts 66.67 (33.34) 100 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/LicenseKeyProperty.ts 100 (100) 100 (0) 100 (0) 100 (100)
🟢 src/figmaStorage/ThemesProperty.ts 40 (20) 0 (0) 33.33 (33.33) 40 (20)
🟢 src/figmaStorage/UsedTokenSetProperty.ts 66.67 (33.34) 0 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/ValuesProperty.ts 50 (25) 0 (0) 33.33 (33.33) 50 (25)
🟢 src/hooks/useDelayedFlag.ts 68.42 (42.1) 71.43 (42.86) 57.14 (14.28) 80 (46.67)
🟢 src/hooks/useGetActiveState.ts 83.33 (0) 87.5 (12.5) 100 (0) 83.33 (0)
✨ 🆕 src/mocks/browser.ts 0 100 100 0
✨ 🆕 src/mocks/handlers.ts 88.24 75 100 88.24
✨ 🆕 src/mocks/server.ts 100 100 100 100
✨ 🆕 src/plugin/NodeManager.ts 7.75 2.63 7.14 8.27
✨ 🆕 src/plugin/SharedDataHandler.ts 33.33 0 25 33.33
🟢 src/plugin/Worker.ts 52.5 (22.5) 33.33 (33.33) 33.33 (22.22) 52.5 (22.5)
🟢 src/plugin/controller.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/plugin/helpers.ts 78.95 (31.58) 71.88 (-6.69) 100 (50) 78.95 (31.58)
🟢 src/plugin/node.ts 42.86 (20.24) 48.08 (25) 47.06 (17.65) 44.44 (20.98)
🟢 src/plugin/notifiers.ts 68.75 (43.75) 50 (50) 73.33 (46.66) 68.75 (43.75)
✨ 🆕 src/plugin/sendSelectionChange.ts 71.43 50 50 71.43
🟢 src/plugin/setColorValuesOnTarget.ts 90.32 (0) 82.76 (1.73) 100 (0) 96 (0)
🟢 src/plugin/setValuesOnNode.ts 55.24 (9.88) 55.68 (6.93) 100 (0) 55.24 (9.88)
🟢 src/plugin/asyncMessageHandlers/cancelOperation.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
🟢 src/plugin/asyncMessageHandlers/changedTabs.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/plugin/asyncMessageHandlers/createAnnotation.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/createStyles.ts 25 (25) 100 (0) 0 (0) 25 (25)
🟢 src/plugin/asyncMessageHandlers/credentials.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
✨ 🆕 src/plugin/asyncMessageHandlers/getApiCredentials.ts 85.71 71.43 100 85
🟢 src/plugin/asyncMessageHandlers/gotoNode.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/initiate.ts 85.71 80 100 85.19
🟢 src/plugin/asyncMessageHandlers/notify.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/pullStyles.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/remapTokens.ts 3.33 0 0 3.33
🟢 src/plugin/asyncMessageHandlers/removeSingleCredential.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
✨ 🆕 src/plugin/asyncMessageHandlers/removeTokensByValue.ts 7.69 0 0 7.69
🟢 src/plugin/asyncMessageHandlers/resizeWindow.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/selectNodes.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/setLicenseKey.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/setNodeData.ts 11.11 0 0 11.11
🟢 src/plugin/asyncMessageHandlers/setShowEmptyGroups.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/setStorageType.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/setUi.ts 12.5 0 0 12.5
✨ 🆕 src/plugin/asyncMessageHandlers/update.ts 50 66.67 100 50
🟢 src/selectors/apiProvidersSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/branchSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
✨ 🆕 src/selectors/collapsedTokenSetsSelector.ts 100 100 100 100
✨ 🆕 src/selectors/collapsedTokenTypeObjSelector.ts 100 100 100 100
🟢 src/selectors/ignoreFirstPartForStylesSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/licenseKeyErrorSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
✨ 🆕 src/selectors/scrollPositionSetSelector.ts 100 100 100 100
🟢 src/selectors/themeOptionsSelector.ts 100 (66.67) 100 (0) 100 (100) 100 (50)
🟢 src/storage/ADOTokenStorage.ts 87.16 (2.21) 67.14 (3.35) 96.55 (0.9) 87.25 (1.54)
🟢 src/storage/GitTokenStorage.ts 97.37 (0.07) 88.89 (5.56) 100 (0) 100 (0)
🟢 src/storage/GithubTokenStorage.ts 95.06 (4.29) 76.92 (5.87) 100 (0) 94.67 (4.35)
🟢 src/storage/GitlabTokenStorage.ts 86.32 (2.79) 74.19 (3.82) 100 (5.56) 91.46 (0.92)
✨ 🆕 src/storage/RemoteTokenStorage.ts 45 40 50 45
🟢 src/utils/analytics.tsx 22.22 (7.93) 27.27 (12.98) 50 (16.67) 22.22 (7.93)
✨ 🆕 src/utils/annotations.tsx 7.03 0 0 7.14
🟢 src/utils/convertTokens.tsx 75 (3.57) 61.22 (2.04) 80 (0) 75 (3.57)
✨ 🆕 src/utils/generateId.ts 100 100 100 100
✨ 🆕 src/utils/getActiveTheme.ts 75 50 100 75
✨ 🆕 src/utils/getLastOpened.ts 66.67 100 100 66.67
✨ 🆕 src/utils/getUsedTokenSet.ts 44.44 50 25 44.44
🟢 src/utils/getValueWithReferences.ts 95.83 (0) 95.24 (0.24) 100 (0) 95.65 (0)
✨ 🆕 src/utils/isPaintEqual.ts 27.27 14.81 25 27.27
✨ 🆕 src/utils/removeLicense.ts 80 100 100 80
✨ 🆕 src/utils/storyblok.ts 8.33 25 33.33 9.09
✨ 🆕 src/utils/uiSettings.ts 21.74 4.55 50 21.74
🟢 src/utils/validateLicense.ts 75 (25) 100 (50) 100 (0) 75 (25)
🟢 src/utils/figma/updateLocalTokensData.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/utils/is/isSingleCompositionToken.ts 66.67 50 100 100
🟢 src/utils/is/isTokenType.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/utils/math/checkAndEvaluateMath.ts 93.75 (0.89) 100 (0) 100 (0) 93.75 (0.89)
✨ 🆕 src/utils/string/joinPath.ts 100 100 100 100
✨ 🆕 src/utils/string/ui/decodeBase64.ts 100 100 100 100
✨ 🆕 src/utils/string/ui/index.ts 100 100 100 100
src/app/components/PropertySwitchMenu.tsx 0 100 100 0
src/utils/string/decodeBase64.ts 100 100 100 100

@github-actions
Copy link
Contributor

Commit SHA:b8be7519fc056d7e982b0e42c35aa6b3b34c8543
Current PR reduces the test coverage percentage by 0.5 for some tests

* add test for tokentooltipcontent

* remove usedTokens test

* Fix/ado (#789)

* fix check for ado

* fix: Fixed ADO sync

Co-authored-by: Liam Martens <[email protected]>

* Fix validate calls (#793)

* Fix license validation calls & flags

* Fix tests Initiator

* feat: add tests for URLTokenStorage (#794)

* Bug un applying a token no longer removes token (#791)

* skip to start screen when create new file

* resolve test error

* add env

* check not unapplying tokens

* get pluginValues from findNodesWithData

* check compositionToken unapply error

* fix: remove property when unapplying composition token

Co-authored-by: hiroshi <[email protected]>

* fix type error

* value test

* add alias test

* remove tokentooltipcontent

* add test files

* add contain alias test

* add #value

* merge into one

* Create jest.yml

* Delete jest.yml

* Update node.js.yml

* Add jest coverage (#816)

* add coverage

* remove mock

* fx command

* add coverage option and github_token

* resolve conflict

* add test cases and fix bugs

* fix bug with commit

* resolve conflict

* resolve conflict

* fix test case statement

* install deps

* fix tests for tooltips

* fix alias test

* update test for alias

* fix alias contain test

Co-authored-by: Jan Six <[email protected]>
Co-authored-by: Liam Martens <[email protected]>
Co-authored-by: Razvan <[email protected]>
Co-authored-by: SwordEdge <[email protected]>
Co-authored-by: hiroshi <[email protected]>
@github-actions
Copy link
Contributor

Commit SHA:aaf863eced87ef6e634b61d75a1223cc71ccab12

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: next 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 48.43 (2.77) 39.46 (2.89) 42.52 (2.82) 48.58 (2.8)
🟢 src/app/components/App.tsx 100 (0) 93.75 (6.25) 100 (0) 100 (0)
🟢 src/app/components/Checkbox.tsx 83.33 (8.33) 63.64 (9.09) 100 (0) 81.82 (9.09)
🟢 src/app/components/ConfirmDialog.tsx 56.41 (20.51) 68.18 (63.63) 35.71 (14.28) 60 (20)
🟢 src/app/components/Input.tsx 66.67 (25) 59.46 (59.46) 50 (50) 66.67 (25)
✨ 🆕 src/app/components/Label.tsx 100 100 100 100
🟢 src/app/components/ProBadge.tsx 100 (0) 100 (50) 100 (0) 100 (0)
🟢 src/app/components/Settings.tsx 80 (80) 100 (0) 50 (50) 80 (80)
🟢 src/app/components/StorageProviderSelector.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/SyncSettings.tsx 46.3 (44.45) 18.18 (18.18) 18.75 (18.75) 46.94 (44.9)
✨ 🆕 src/app/components/AddLicenseKey/AddLicenseKey.tsx 95.83 75 100 95.83
🟢 src/app/components/Button/Button.tsx 88.89 (33.33) 73.68 (21.05) 100 (50) 88.89 (33.33)
🟢 src/app/components/TokenTooltip/SingleShadowValueDisplay.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/TokenTooltip/SingleTypograhpyValueDisplay.tsx 100 (50) 50 (50) 100 (100) 100 (0)
🟢 src/app/components/TokenTooltip/TokenTooltipContent.tsx 100 (87.5) 100 (100) 100 (100) 100 (87.5)
🟢 src/app/components/TokenTooltip/TokenTooltipContentValue.tsx 56.67 (53.34) 43.33 (43.33) 50 (50) 59.26 (55.56)
🟢 src/app/hooks/useConfirm.tsx 88.89 (38.89) 75 (75) 75 (50) 88.24 (41.18)
🔴 src/app/hooks/usePropertiesForType.ts 35.29 (-4.71) 12.5 (-1.79) 100 (0) 35.29 (-4.71)
🟢 src/app/store/models/uiState.tsx 17.78 (4.45) 12.5 (12.5) 13.89 (5.56) 17.78 (4.45)
🟢 src/app/store/models/userState.ts 86.11 (80.55) 64.29 (64.29) 66.67 (55.56) 86.11 (80.55)
🟢 src/app/store/models/reducers/userState/setLicenseStatus.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/mocks/browser.ts 0 100 100 0
✨ 🆕 src/mocks/handlers.ts 88.24 75 100 88.24
✨ 🆕 src/mocks/server.ts 100 100 100 100
🔴 src/plugin/helpers.ts 47.37 (0) 68.75 (-9.82) 50 (0) 47.37 (0)
🟢 src/plugin/notifiers.ts 25 (0) 50 (50) 26.67 (0) 25 (0)
🟢 src/plugin/setValuesOnNode.ts 45.71 (0.35) 48.86 (0.11) 100 (0) 45.71 (0.35)
🟢 src/selectors/apiProvidersSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/ignoreFirstPartForStylesSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/licenseKeyErrorSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
🟢 src/storage/GithubTokenStorage.ts 93.44 (2.67) 75 (3.95) 100 (0) 93.1 (2.78)
🟢 src/utils/getValueWithReferences.ts 95.83 (0) 95.24 (0.24) 100 (0) 95.65 (0)
✨ 🆕 src/utils/removeLicense.ts 80 100 100 80
🟢 src/utils/validateLicense.ts 75 (25) 100 (50) 100 (0) 75 (25)
✨ 🆕 src/utils/is/isSingleCompositionToken.ts 66.67 50 100 100
✨ 🆕 src/utils/string/joinPath.ts 100 100 100 100
src/app/components/PropertySwitchMenu.tsx 0 100 100 0

@github-actions
Copy link
Contributor

Commit SHA:aaf863eced87ef6e634b61d75a1223cc71ccab12
Current PR reduces the test coverage percentage by 0.5 for some tests

@github-actions
Copy link
Contributor

Commit SHA:8f45ce0beadba54d43a473da71810be90e68e865

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: next 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 47.8 (2.14) 38.96 (2.39) 41.92 (2.22) 47.92 (2.14)
🟢 src/app/components/App.tsx 100 (0) 93.75 (6.25) 100 (0) 100 (0)
🟢 src/app/components/Checkbox.tsx 83.33 (8.33) 63.64 (9.09) 100 (0) 81.82 (9.09)
🟢 src/app/components/ConfirmDialog.tsx 56.41 (20.51) 68.18 (63.63) 35.71 (14.28) 60 (20)
🟢 src/app/components/Input.tsx 66.67 (25) 59.46 (59.46) 50 (50) 66.67 (25)
✨ 🆕 src/app/components/Label.tsx 100 100 100 100
✨ 🆕 src/app/components/LoadProviderSelector.tsx 25 100 0 25
🟢 src/app/components/ProBadge.tsx 100 (0) 100 (50) 100 (0) 100 (0)
🟢 src/app/components/Settings.tsx 80 (80) 100 (0) 50 (50) 80 (80)
🟢 src/app/components/StorageProviderSelector.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/SyncSettings.tsx 46.3 (44.45) 18.18 (18.18) 18.75 (18.75) 46.94 (44.9)
✨ 🆕 src/app/components/AddLicenseKey/AddLicenseKey.tsx 95.83 75 100 95.83
🟢 src/app/components/Button/Button.tsx 88.89 (33.33) 73.68 (21.05) 100 (50) 88.89 (33.33)
✨ 🆕 src/app/components/PresetProvider/DefaultPreset.tsx 0 100 0 0
✨ 🆕 src/app/components/PresetProvider/FilePreset.tsx 0 100 0 0
🟢 src/app/components/TokenTooltip/SingleShadowValueDisplay.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/TokenTooltip/SingleTypograhpyValueDisplay.tsx 100 (50) 50 (50) 100 (100) 100 (0)
🟢 src/app/components/TokenTooltip/TokenTooltipContent.tsx 100 (87.5) 100 (100) 100 (100) 100 (87.5)
🟢 src/app/components/TokenTooltip/TokenTooltipContentValue.tsx 56.67 (53.34) 43.33 (43.33) 50 (50) 59.26 (55.56)
src/app/components/modals/PresetModal.tsx 0 100 0 0
🟢 src/app/hooks/useConfirm.tsx 88.89 (38.89) 75 (75) 75 (50) 88.24 (41.18)
🔴 src/app/hooks/usePropertiesForType.ts 35.29 (-4.71) 12.5 (-1.79) 100 (0) 35.29 (-4.71)
🔴 src/app/store/remoteTokens.tsx 83.04 (-7.96) 71.74 (-6.83) 80 (-8.89) 82.88 (-8.03)
🟢 src/app/store/models/uiState.tsx 17.78 (4.45) 12.5 (12.5) 13.89 (5.56) 17.78 (4.45)
🟢 src/app/store/models/userState.ts 86.11 (80.55) 64.29 (64.29) 66.67 (55.56) 86.11 (80.55)
🟢 src/app/store/models/reducers/userState/setLicenseStatus.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/app/store/providers/file.tsx 35.29 0 50 33.33
✨ 🆕 src/constants/LoadProviderType.ts 100 100 100 100
✨ 🆕 src/mocks/browser.ts 0 100 100 0
✨ 🆕 src/mocks/handlers.ts 88.24 75 100 88.24
✨ 🆕 src/mocks/server.ts 100 100 100 100
🔴 src/plugin/helpers.ts 47.37 (0) 68.75 (-9.82) 50 (0) 47.37 (0)
🟢 src/plugin/notifiers.ts 25 (0) 50 (50) 26.67 (0) 25 (0)
🟢 src/plugin/setValuesOnNode.ts 45.71 (0.35) 48.86 (0.11) 100 (0) 45.71 (0.35)
🟢 src/selectors/apiProvidersSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/ignoreFirstPartForStylesSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/licenseKeyErrorSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
🟢 src/storage/GithubTokenStorage.ts 93.44 (2.67) 75 (3.95) 100 (0) 93.1 (2.78)
🟢 src/utils/getValueWithReferences.ts 95.83 (0) 95.24 (0.24) 100 (0) 95.65 (0)
✨ 🆕 src/utils/removeLicense.ts 80 100 100 80
🟢 src/utils/validateLicense.ts 75 (25) 100 (50) 100 (0) 75 (25)
✨ 🆕 src/utils/is/isSingleCompositionToken.ts 66.67 50 100 100
✨ 🆕 src/utils/string/joinPath.ts 100 100 100 100
src/app/components/PropertySwitchMenu.tsx 0 100 100 0

* fix set values on node for text layers

* remove log

* merge tests
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

Commit SHA:74678695b40fd1fb20636ded7212d5266cd6b7ba

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: next 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 55.19 (9.53) 44.75 (8.18) 48.52 (8.82) 55.41 (9.63)
🟢 src/AsyncMessageChannel.ts 80.85 (76.3) 77.42 (77.42) 100 (100) 82.61 (77.96)
🟢 src/app/components/App.tsx 100 (0) 93.75 (6.25) 100 (0) 100 (0)
🟢 src/app/components/BranchSelector.tsx 52.05 (50.66) 25.71 (25.71) 37.5 (37.5) 51.39 (49.98)
🟢 src/app/components/Checkbox.tsx 83.33 (8.33) 63.64 (9.09) 100 (0) 81.82 (9.09)
🟢 src/app/components/ConfirmDialog.tsx 56.41 (20.51) 68.18 (63.63) 35.71 (14.28) 60 (20)
🟢 src/app/components/Footer.tsx 78.13 (8.43) 43.75 (32.64) 57.14 (14.28) 82.76 (9.43)
🟢 src/app/components/Initiator.tsx 54.29 (33.28) 43.42 (32.89) 75 (20.45) 53.79 (33.02)
🟢 src/app/components/Input.tsx 66.67 (25) 59.46 (59.46) 50 (50) 66.67 (25)
✨ 🆕 src/app/components/Label.tsx 100 100 100 100
✨ 🆕 src/app/components/LoadProviderSelector.tsx 25 100 0 25
🟢 src/app/components/LoadingBar.tsx 94.12 (23.53) 64.71 (47.06) 85.71 (28.57) 92.86 (21.43)
🟢 src/app/components/ProBadge.tsx 100 (0) 100 (50) 100 (0) 100 (0)
🟢 src/app/components/PushDialog.tsx 58.06 (9.67) 35.14 (10.82) 50 (0) 58.06 (9.67)
🟢 src/app/components/Settings.tsx 80 (80) 100 (0) 50 (50) 80 (80)
🟢 src/app/components/Spinner.tsx 100 (0) 100 (100) 100 (0) 100 (0)
🟢 src/app/components/StorageProviderSelector.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/SyncSettings.tsx 46.3 (44.45) 18.18 (18.18) 18.75 (18.75) 46.94 (44.9)
🔴 src/app/components/TokenListing.tsx 62.96 (-2.56) 58.06 (0) 28.57 (-8.93) 66.67 (-2.56)
🟢 src/app/components/TokenSetList.tsx 61.36 (-2.93) 50 (14.29) 46.67 (0) 62.5 (-3.29)
🟢 src/app/components/TokenSetSelector.tsx 55.74 (3.95) 25 (0) 31.25 (9.82) 55.74 (3.95)
🟢 src/app/components/Tokens.tsx 66.27 (1.98) 51.16 (3.94) 50 (0) 65 (2.31)
✨ 🆕 src/app/components/AddLicenseKey/AddLicenseKey.tsx 95.83 75 100 95.83
🟢 src/app/components/Button/Button.tsx 88.89 (33.33) 73.68 (21.05) 100 (50) 88.89 (33.33)
🔴 src/app/components/LaunchDarkly/LDIdentifier.tsx 65.22 (-1.45) 22.22 (-6.35) 42.86 (0) 65.22 (-1.45)
✨ 🆕 src/app/components/PresetProvider/DefaultPreset.tsx 0 100 0 0
✨ 🆕 src/app/components/PresetProvider/FilePreset.tsx 0 100 0 0
🟢 src/app/components/ThemeSelector/ThemeSelector.tsx 70.83 (62.13) 58.33 (58.33) 44.44 (44.44) 77.27 (67.75)
🟢 src/app/components/TokenButton/DragOverItem.tsx 60 (0) 42.11 (5.27) 100 (0) 60 (0)
🟢 src/app/components/TokenButton/TokenButton.tsx 46.55 (3.45) 13.79 (0) 26.67 (0) 49.09 (3.64)
🟢 src/app/components/TokenButton/TokenButtonDraggable.tsx 51.67 (6.67) 34.48 (13.79) 38.46 (0) 55.56 (7.41)
🟢 src/app/components/TokenSetItem/TokenSetItem.tsx 60.87 (0) 50 (16.67) 30 (0) 63.64 (0)
🟢 src/app/components/TokenSetListOrTree/TokenSetListOrTree.tsx 64.29 (2.75) 11.11 (0) 50 (0) 75 (2.27)
🟢 src/app/components/TokenTooltip/SingleShadowValueDisplay.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/components/TokenTooltip/SingleTypograhpyValueDisplay.tsx 100 (50) 50 (50) 100 (100) 100 (0)
🟢 src/app/components/TokenTooltip/TokenTooltipContent.tsx 100 (87.5) 100 (100) 100 (100) 100 (87.5)
🟢 src/app/components/TokenTooltip/TokenTooltipContentValue.tsx 56.67 (53.34) 43.33 (43.33) 50 (50) 59.26 (55.56)
src/app/components/modals/PresetModal.tsx 0 100 0 0
🟢 src/app/hooks/useConfirm.tsx 88.89 (38.89) 75 (75) 75 (50) 88.24 (41.18)
🔴 src/app/hooks/usePropertiesForType.ts 35.29 (-4.71) 12.5 (-1.79) 100 (0) 35.29 (-4.71)
🔴 src/app/store/remoteTokens.tsx 83.19 (-7.81) 71.74 (-6.83) 80 (-8.89) 83.04 (-7.87)
🟢 src/app/store/useStorage.tsx 100 (0) 100 (66.67) 100 (0) 100 (0)
🟢 src/app/store/models/branchState.tsx 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/app/store/models/tokenState.tsx 52.87 (1.24) 52.11 (0) 60 (1.79) 53.29 (1.26)
🟢 src/app/store/models/uiState.tsx 47.83 (34.5) 16.67 (16.67) 51.35 (43.02) 47.83 (34.5)
🟢 src/app/store/models/userState.ts 91.67 (86.11) 85.71 (85.71) 77.78 (66.67) 91.67 (86.11)
🟢 src/app/store/models/reducers/userState/setLicenseStatus.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/app/store/providers/file.tsx 35.29 0 50 33.33
🔴 src/app/store/providers/ado/ado.tsx 86 (-0.6) 70.73 (-1.06) 100 (0) 90.32 (0.21)
✨ 🆕 src/app/store/providers/github/getGithubCreatePullRequestUrl.ts 100 50 100 100
🔴 src/app/store/providers/github/github.tsx 89.22 (-0.68) 75.51 (-1.09) 100 (0) 91.58 (0.18)
🔴 src/app/store/providers/gitlab/gitlab.tsx 89.32 (-0.68) 75.51 (-1.09) 100 (0) 91.67 (0.18)
🟢 src/constants/DefaultWindowSize.ts 100 (100) 100 (0) 100 (0) 100 (100)
✨ 🆕 src/constants/LoadProviderType.ts 100 100 100 100
🟢 src/constants/ValidNodeTypes.ts 100 (100) 100 (0) 100 (0) 100 (100)
🟢 src/figmaStorage/CheckForChangesProperty.ts 66.67 (33.34) 100 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/FigmaStorageProperty.ts 92.86 (42.86) 81.82 (31.82) 80 (20) 95.83 (45.83)
🟢 src/figmaStorage/LastOpenedProperty.ts 66.67 (33.34) 100 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/LicenseKeyProperty.ts 100 (100) 100 (0) 100 (0) 100 (100)
🟢 src/figmaStorage/ThemesProperty.ts 40 (20) 0 (0) 33.33 (33.33) 40 (20)
🟢 src/figmaStorage/UsedTokenSetProperty.ts 66.67 (33.34) 0 (0) 50 (50) 66.67 (33.34)
🟢 src/figmaStorage/ValuesProperty.ts 50 (25) 0 (0) 33.33 (33.33) 50 (25)
🟢 src/hooks/useDelayedFlag.ts 68.42 (42.1) 71.43 (42.86) 57.14 (14.28) 80 (46.67)
🟢 src/hooks/useGetActiveState.ts 83.33 (0) 87.5 (12.5) 100 (0) 83.33 (0)
✨ 🆕 src/mocks/browser.ts 0 100 100 0
✨ 🆕 src/mocks/handlers.ts 88.24 75 100 88.24
✨ 🆕 src/mocks/server.ts 100 100 100 100
✨ 🆕 src/plugin/NodeManager.ts 7.75 2.63 7.14 8.27
✨ 🆕 src/plugin/SharedDataHandler.ts 33.33 0 25 33.33
🟢 src/plugin/Worker.ts 52.5 (22.5) 33.33 (33.33) 33.33 (22.22) 52.5 (22.5)
🟢 src/plugin/controller.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/plugin/helpers.ts 78.95 (31.58) 71.88 (-6.69) 100 (50) 78.95 (31.58)
🟢 src/plugin/node.ts 42.86 (20.24) 48.08 (25) 47.06 (17.65) 44.44 (20.98)
🟢 src/plugin/notifiers.ts 68.75 (43.75) 50 (50) 73.33 (46.66) 68.75 (43.75)
✨ 🆕 src/plugin/sendSelectionChange.ts 71.43 50 50 71.43
🟢 src/plugin/setColorValuesOnTarget.ts 90.32 (0) 82.76 (1.73) 100 (0) 96 (0)
🟢 src/plugin/setValuesOnNode.ts 55.24 (9.88) 55.68 (6.93) 100 (0) 55.24 (9.88)
🟢 src/plugin/asyncMessageHandlers/cancelOperation.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
🟢 src/plugin/asyncMessageHandlers/changedTabs.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/plugin/asyncMessageHandlers/createAnnotation.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/createStyles.ts 25 (25) 100 (0) 0 (0) 25 (25)
🟢 src/plugin/asyncMessageHandlers/credentials.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
✨ 🆕 src/plugin/asyncMessageHandlers/getApiCredentials.ts 85.71 71.43 100 85
🟢 src/plugin/asyncMessageHandlers/gotoNode.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/initiate.ts 85.71 80 100 85.19
🟢 src/plugin/asyncMessageHandlers/notify.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/pullStyles.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/remapTokens.ts 3.33 0 0 3.33
🟢 src/plugin/asyncMessageHandlers/removeSingleCredential.ts 33.33 (33.33) 100 (0) 0 (0) 33.33 (33.33)
✨ 🆕 src/plugin/asyncMessageHandlers/removeTokensByValue.ts 7.69 0 0 7.69
🟢 src/plugin/asyncMessageHandlers/resizeWindow.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/selectNodes.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/setLicenseKey.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/setNodeData.ts 11.11 0 0 11.11
🟢 src/plugin/asyncMessageHandlers/setShowEmptyGroups.ts 50 (50) 100 (0) 0 (0) 50 (50)
🟢 src/plugin/asyncMessageHandlers/setStorageType.ts 50 (50) 100 (0) 0 (0) 50 (50)
✨ 🆕 src/plugin/asyncMessageHandlers/setUi.ts 12.5 0 0 12.5
✨ 🆕 src/plugin/asyncMessageHandlers/update.ts 50 66.67 100 50
🟢 src/selectors/apiProvidersSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/branchSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
✨ 🆕 src/selectors/collapsedTokenSetsSelector.ts 100 100 100 100
✨ 🆕 src/selectors/collapsedTokenTypeObjSelector.ts 100 100 100 100
🟢 src/selectors/ignoreFirstPartForStylesSelector.ts 100 (50) 100 (0) 100 (100) 100 (50)
🟢 src/selectors/licenseKeyErrorSelector.ts 100 (50) 100 (0) 100 (100) 100 (0)
✨ 🆕 src/selectors/scrollPositionSetSelector.ts 100 100 100 100
🟢 src/selectors/themeOptionsSelector.ts 100 (66.67) 100 (0) 100 (100) 100 (50)
🟢 src/storage/ADOTokenStorage.ts 87.16 (2.21) 67.14 (3.35) 96.55 (0.9) 87.25 (1.54)
🟢 src/storage/GitTokenStorage.ts 97.37 (0.07) 88.89 (5.56) 100 (0) 100 (0)
🟢 src/storage/GithubTokenStorage.ts 95.06 (4.29) 76.92 (5.87) 100 (0) 94.67 (4.35)
🟢 src/storage/GitlabTokenStorage.ts 86.32 (2.79) 74.19 (3.82) 100 (5.56) 91.46 (0.92)
✨ 🆕 src/storage/RemoteTokenStorage.ts 45 40 50 45
🟢 src/utils/analytics.tsx 22.22 (7.93) 27.27 (12.98) 50 (16.67) 22.22 (7.93)
✨ 🆕 src/utils/annotations.tsx 7.03 0 0 7.14
🟢 src/utils/convertTokens.tsx 75 (3.57) 61.22 (2.04) 80 (0) 75 (3.57)
✨ 🆕 src/utils/generateId.ts 100 100 100 100
✨ 🆕 src/utils/getActiveTheme.ts 75 50 100 75
✨ 🆕 src/utils/getLastOpened.ts 66.67 100 100 66.67
✨ 🆕 src/utils/getUsedTokenSet.ts 44.44 50 25 44.44
🟢 src/utils/getValueWithReferences.ts 95.83 (0) 95.24 (0.24) 100 (0) 95.65 (0)
✨ 🆕 src/utils/isPaintEqual.ts 27.27 14.81 25 27.27
✨ 🆕 src/utils/removeLicense.ts 80 100 100 80
✨ 🆕 src/utils/storyblok.ts 8.33 25 33.33 9.09
✨ 🆕 src/utils/uiSettings.ts 21.74 4.55 50 21.74
🟢 src/utils/validateLicense.ts 75 (25) 100 (50) 100 (0) 75 (25)
🟢 src/utils/figma/updateLocalTokensData.ts 100 (100) 100 (0) 100 (100) 100 (100)
✨ 🆕 src/utils/is/isSingleCompositionToken.ts 66.67 50 100 100
🟢 src/utils/is/isTokenType.ts 100 (100) 100 (0) 100 (100) 100 (100)
🟢 src/utils/math/checkAndEvaluateMath.ts 93.75 (0.89) 100 (0) 100 (0) 93.75 (0.89)
✨ 🆕 src/utils/string/joinPath.ts 100 100 100 100
✨ 🆕 src/utils/string/ui/decodeBase64.ts 100 100 100 100
✨ 🆕 src/utils/string/ui/index.ts 100 100 100 100
src/app/components/PropertySwitchMenu.tsx 0 100 100 0
src/utils/string/decodeBase64.ts 100 100 100 100

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

Commit SHA:74678695b40fd1fb20636ded7212d5266cd6b7ba
Current PR reduces the test coverage percentage by 0.5 for some tests

@esthercheran
Copy link
Collaborator

  • Composition tokens autocomplete not working for individual border-widths

…okens for new individual stroke widths (#987)

* skip to start screen when create new file

* resolve test error

* add env

* choose borderWidth when selecting borderWidthTop

Co-authored-by: hiroshi <[email protected]>
six7 and others added 2 commits July 7, 2022 11:02
…e sync (#983)

* fix set list showing up as list for free-users when using MFS

* bump version
…ty (#986)

* skip to start screen when create new file

* resolve test error

* add env

* add default tokens

* display applied token on inspector

* remap token

* code refresh

* remove console

* Update cypress/integration/inspector.spec.js

Co-authored-by: hiroshi <[email protected]>
Co-authored-by: Jan Six <[email protected]>
…nch (#971)

* skip to start screen when create new file

* resolve test error

* add env

* fix: sync with ado from current branch

Co-authored-by: hiroshi <[email protected]>
Co-authored-by: Jan Six <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment