I have been working on a file which currently contains both:
- Mobile version screens and UI Kit
- Admin panel screens and UI Kit
My goal was to separate these into two independent files:
- Mobile version + Mobile UI Kit
- Admin panel + Admin UI Kit
My first attempt was to duplicate the original file. I kept the mobile version and its UI Kit in one file and the admin panel and its UI Kit in the duplicated file. However, after doing this, the duplicated file did not recognize its UI Kit as a library, and the components appeared to lose their connection. Because of this issue, I reverted to a previous version.
My second attempt was to create a completely new file and move the Admin UI Kit, styles, and typography into it first. Then I moved the Admin screens into the same file. Unfortunately, the same issue occurred again: the components did not properly recognize the UI Kit as their library.
The most concerning part is that after rolling back to a previous version, my components no longer seem to recognize either file as their source library. This is happening for both the Admin panel and the Mobile version. It appears that the library connections have become broken, and I am unsure how to restore them.
Could you please advise on:
- How I can safely separate the Mobile and Admin projects into independent files while preserving component relationships?
- How to restore the connection between existing component instances and their source libraries?
- Whether there is a recommended workflow for splitting a file that contains multiple UI Kits and design systems?
- How I can verify which file is currently considered the source library for my components?
