stevahnes / figma-plugins

📌 Single repository containing all my Figma plugins
https://www.figma.com/@stevahnes
MIT License
13 stars 3 forks source link

PageClone - Clone Prototyping Links #15

Open EricKramp opened 3 years ago

EricKramp commented 3 years ago

Hi, the plugin works great but it would be super helpful to me if it also cloned the prototyping links of all the objects.

I'm using it to create isolated pages that get shared externally with clients, so if they happen to pop in they don't find stuff randomly moving around as I work.

For it to work for me in this context it also needs to clone the prototype links because I only share prototypes with clients.

stevahnes commented 3 years ago

Hi @EricKramp thanks for using PageClone!

If by prototype link you mean the shareable URL to view, then I think this can't be done. URLs are bound to be unique as they represent which file or frame to route user to. I don't think it's possible to have both the original and the clone to share the same URL.

What I can try to explore is to fetch the URL of the newly created page, and place it in the success message toast. Hopefully you can then copy the URL and update your client as needed.

Let me know if I misunderstood your feature request!

EricKramp commented 3 years ago

Hi @stevahnes, yeah I think I didn't communicate it clearly.

I don't need the share URL to be cloned, just the connections between frames within the page.

I'm fine with creating a new share URL, but it's a pain to go through and rebuild all the prototyping connections.

stevahnes commented 3 years ago

Oh that, i see.. I'll look into it to see what's feasible based on the APIs 😊

EricKramp commented 3 years ago

Thanks!

On Mar 11, 2021, at 5:11 PM, Stevanus Satria @.***> wrote:

 Oh that, i see.. I'll look into it to see what's feasible based on the APIs 😊

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

stevahnes commented 3 years ago

Hi @EricKramp, spent some time reading the Figma API documentation. It looks like this is doable. I will have to find some time to think how to map the original nodeId to the clone nodeId to ensure the routing is done correctly on the clone. I will try to find time to get it done within the next few weeks. Apologies for the delay as I just switched job and still getting used to the new environment!

EricKramp commented 3 years ago

All good! Thanks for looking into it and congrats on the new job!

On Mar 18, 2021, at 7:08 PM, Stevanus Satria @.***> wrote:

Hi @EricKramp https://github.com/EricKramp, spent some time reading the Figma API documentation. It looks like this is doable. I will have to find some time to think how to map the original nodeId to the clone nodeId to ensure the routing is done correctly on the clone. I will try to find time to get it done within the next few weeks. Apologies for the delay as I just switched job and still getting used to the new environment!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stevahnes/figma-plugins/issues/15#issuecomment-802465112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ45U6UR2JEN2SDBFVMRY3TEKW2JANCNFSM4Y6Y2OFQ.