Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skin preview #1153

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

feat: add skin preview #1153

wants to merge 50 commits into from

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Feb 6, 2025

Summary

Closes: https://github.com/snapshot-labs/workflow/issues/418
Closes: https://github.com/snapshot-labs/workflow/issues/416

This PR:

  • adds a previewer to preview the skin update in realtime
  • apply the new skin on space settings change

How to test

Start your dev environment with

VITE_WHITE_LABEL_MAPPING='127.0.0.1;test.wa0x6e.eth' yarn dev

This will put the main app on localhost, and attach the given space on 127.0.0.1

  1. Go to your space setting > whitelabel on main site
  2. No preview, but you can still update the skins
  3. Go to your space settings > whitelabel on your space custom domain
  4. Preview is enabled
  5. Edit the form (colors, theme and custom logo)
  6. The preview should update live
  7. Save your settings
  8. It should apply your new colors on save

@wa0x6e wa0x6e changed the title Feat-skin-preview feat: add skin preview Feb 6, 2025
@wa0x6e wa0x6e force-pushed the feat-skin-preview branch from d5d49c0 to 5405c1c Compare February 8, 2025 18:16
@wa0x6e wa0x6e force-pushed the feat-skin-preview branch from 913620a to 1a640ce Compare February 9, 2025 21:40
@wa0x6e wa0x6e marked this pull request as ready for review February 9, 2025 22:09
@bonustrack
Copy link
Member

Here is how to restyle input color https://codepen.io/leemartin/pen/ExPXRzx

Base automatically changed from feat-customize-skin-colors to master February 14, 2025 10:16
@wa0x6e wa0x6e requested a review from ChaituVR February 14, 2025 10:16
@bonustrack
Copy link
Member

Looks like the iframe miss the http(s) so it duplicate the domain
image

Can you add an icon arrows-expand here that open the preview in a new tab?
image

Haven't fully tested but there is some issue with the custom logo, we should allow any ratio and not crop the image (like we do in avatars) so it fit with all different logo size, currently it looks like this with Vue.js logo

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants