tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.35k stars 193 forks source link

Cannot switch to local stoarage, GitLab sync cannot be removed from Figma file #2518

Open aquasixpack opened 6 months ago

aquasixpack commented 6 months ago

Describe the bug I have imported a document into my Figma account that was originally synced with Tokens Studio and GitLab. When I start the Tokens Studio plugin on this file, I get the message "Couldn't load tokens stored on GitLab". I don't use GitLab and want to store the tokens locally, but the GitLab data seems to stuck somewhere in the file and I cannot get rid of them. Whenever I create new Tokens, leave TS and re-open TS again I get the same GitLab error message and all my tokens are gone.

To Reproduce Steps to reproduce the behavior:

  1. Export a Figma file with styles managed with Tokens Studio and a GitLab sync
  2. Import this .fig file into another Figma account

To reproduce from here use the provided Link

  1. Open that file and start the Tokens Studio plugin
  2. Result: Error message, you can only click "Enter Credentials"
  3. You don't have access to GitLab nor the credetials so you only can cancel the following credential dialog.
  4. Result: No Tokens loaded
  5. Create some new Tokens in this file
  6. Close Tokens Studio
  7. Re-open Tokens Studio
  8. You will be asked "Recover local change?".
  9. Click yes
  10. You get the Missing Credentials message again
  11. You again cannot enter the credentials, so you only can cancel the dialog.
  12. Go back to the "Tokens" tab
  13. All Tokens are gone.

Expected behavior When Tokens Studio recognizes a missing sync credential it should also offer a way to set the storage to "local". Or at least, somewhere in the settings should be the option to switch to local stoarage.

Screenshots or Screencasts image

Figma file (optional) https://www.figma.com/file/Xr5LAnhE6bHZ6QvSNqkoHU/iX-Foundation-Classic-Dark?type=design&node-id=0-1&mode=design&t=vxezPSwpSPBypgJu-11

UdayHyma commented 4 months ago

Migrated to Featurebase