Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
When I am pasting instances from libraries and other projects I will often copy paste an instance with the same token.
If its literally the same token, meaning internal id matches, we already don't duplicate that token, but if token has a different id we will create a new token, potentially leading to creation of tokens with the same name and even with the same styles.
The question is what's the ideal way to resolve these things, comparing styles can be very complex, the simplest algorithm we could think of is going by name, similar to how operating systems
User pastes an instance that has a token with a name that is already in the project
We show a prompt where we ask: "Token X already exists, should we use an existing one?"
If user hits Yes, then we use existing one, if user hits No, we add a new one with a numeric suffix (1)
We add a checkbox "Remember the decision for this token for this session", it will remember the decision per token name, in memory, until user reloads the browser
We need this resolution to work for pasting from ANY source:
When I am pasting instances from libraries and other projects I will often copy paste an instance with the same token. If its literally the same token, meaning internal id matches, we already don't duplicate that token, but if token has a different id we will create a new token, potentially leading to creation of tokens with the same name and even with the same styles.
The question is what's the ideal way to resolve these things, comparing styles can be very complex, the simplest algorithm we could think of is going by name, similar to how operating systems
We need this resolution to work for pasting from ANY source: