component-party.dev icon indicating copy to clipboard operation
component-party.dev copied to clipboard

Shareable URLs for Components Comparisons

Open push-on opened this issue 2 years ago • 4 comments

When comparing multiple components on the website, it would be very useful if the URL could reflect the selections made. For example, if I'm comparing Component A and Component B, the URL could contain something like website.com/users+ComponentA+ComponentB. This would make it easy to share a link with someone that includes the specific components I have selected for comparison. By updating the URL parameters as selections change, the link could always show the current comparison. Please consider adding this functionality so comparisons are easier to share.

push-on avatar Sep 23 '23 17:09 push-on

Already available but kinda hidden. Let's find a good way to show that ! Example: https://component-party.dev/?f=vue3,react

matschik avatar Sep 23 '23 18:09 matschik

The only thing to consider is the conflict with user localstorage frameworks selection is we update the url realtime.

matschik avatar Sep 23 '23 18:09 matschik

This would be a great feature! 🚀

anton-gustafsson avatar Sep 28 '23 13:09 anton-gustafsson

The only thing to consider is the conflict with user localstorage frameworks selection is we update the url realtime.

Couldn't URL data and localstorage data be synced?

sacrosanctic avatar Dec 02 '23 06:12 sacrosanctic

solved by https://github.com/matschik/component-party.dev/commit/08c89c88efcf2999b5bc0e2ba79195b1c8a65433

matschik avatar Mar 03 '24 00:03 matschik