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 support for new skin logo in space settings #498

Merged
merged 13 commits into from
Feb 8, 2025

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Feb 4, 2025

Toward https://github.com/snapshot-labs/workflow/issues/416
Depends on snapshot-labs/snapshot.js#1120

This PR adds support for saving and updating the logo passed in skinParams

Create the new required columns with

ALTER TABLE skins
ADD COLUMN logo VARCHAR(256) DEFAULT NULL AFTER theme;

src/helpers/actions.ts Outdated Show resolved Hide resolved
]);

await addOrUpdateSkin(id, settings.skinParams);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it is good to call addOrUpdateSkin inside addOrUpdateSpace, maybe we should just call it after addOrUpdateSpace everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addOrUpdateSkin is dependent of the addOrUpdateSpace, and will never be called without it. Why would making an extra call everywhere better ?

src/helpers/actions.ts Outdated Show resolved Hide resolved
src/helpers/actions.ts Outdated Show resolved Hide resolved
src/helpers/actions.ts Outdated Show resolved Hide resolved
@ChaituVR
Copy link
Member

ChaituVR commented Feb 5, 2025

I ran this on prod DB and testnet DB

ALTER TABLE skins
ADD COLUMN logo VARCHAR(256) DEFAULT NULL AFTER theme;

@wa0x6e wa0x6e changed the base branch from master to feat-update-space-skin-settings February 5, 2025 11:08
@wa0x6e wa0x6e self-assigned this Feb 5, 2025
@wa0x6e wa0x6e marked this pull request as draft February 5, 2025 17:28
Base automatically changed from feat-update-space-skin-settings to master February 7, 2025 12:18
@wa0x6e wa0x6e marked this pull request as ready for review February 7, 2025 22:08
@wa0x6e wa0x6e requested a review from ChaituVR February 7, 2025 22:10
Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@wa0x6e
Copy link
Contributor Author

wa0x6e commented Feb 8, 2025

utAck

Is the new column added to the table ?

@ChaituVR
Copy link
Member

ChaituVR commented Feb 8, 2025

utAck

Is the new column added to the table ?

Yes ser #498 (comment)

@wa0x6e wa0x6e merged commit 00d0ec8 into master Feb 8, 2025
2 checks passed
@wa0x6e wa0x6e deleted the feat-add-logo-to-custom-skin branch February 8, 2025 13:32
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.

2 participants