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

[Bug]: The new Color Palette system cannot distinguish between original and previously modified Palettes #2153

Open
JorgeR81 opened this issue Jan 4, 2025 · 5 comments
Labels
bug Something isn't working Expected The behavior is expected

Comments

@JorgeR81
Copy link

JorgeR81 commented Jan 4, 2025

Frontend Version

v1.7.1

Expected Behavior

All Palettes are shown ( like in v1.5.19 )

old

Actual Behavior

The Dark ( Default ) palette is not shown.

And custom palette, based on Dark ( Default ), is selected instead.

It seems that the new Color Palette system cannot distinguish between the original and the modified palettes.

new

Steps to Reproduce

This custom palette was created before the Color Palette system was changed.
I'm not sure if it would work correctly, with a new custom palette.

The Dark ( Default ) palette was exported, modified and imported back again, following these instructions:

Debug Logs

.

Browser Logs

.

Setting JSON

.

What browsers do you use to access the UI ?

Google Chrome

Other

No response

┆Issue is synchronized with this Notion page by Unito

@JorgeR81 JorgeR81 added the Potential Bug Untriaged bug label Jan 4, 2025
@webfiltered webfiltered added bug Something isn't working and removed Potential Bug Untriaged bug labels Jan 4, 2025
@webfiltered
Copy link
Contributor

webfiltered commented Jan 4, 2025

Toast shown on load when reproducing with cloned palette ("id": "notDark"):

image

@JorgeR81
Copy link
Author

JorgeR81 commented Jan 4, 2025

I tried to create a new custom palette, in the new Palette system, with the same instructions, but I've got this error:

blue


So, I also changed the id ( from "dark" to "dark1" ), and now it works:

bn

b2

b22

@JorgeR81
Copy link
Author

JorgeR81 commented Jan 4, 2025

I did some more testing:

  • The new custom palette ( "Dark with Blue Bypass" - ID: "dark1" ), does not show in the old Palette menu.

  • After deleting the old custom palette ( "Dark with Grey Bypass" - ID: "dark" ), in the old menu, the "Dark (Default)" Palette shows up in the new menu.

  • Strangely, the new custom palette ( "Dark with Blue Bypass" - ID: "dark1" ) is also gone in the new menu.
    Maybe it was deleted automatically, when I used the old menu ?

zx1


  • I re-imported back the new custom palette, ( "Dark with Blue Bypass" - ID: "dark1" ), in the new Palette menu, and it seems to work correctly.

zxz

@JorgeR81
Copy link
Author

JorgeR81 commented Jan 4, 2025

So it seems this issue can be "fixed" by the user.

But I will leave it open, in case you want to improve compatibility, between the old and new menus, for custom palettes.

@huchenlei huchenlei added the Expected The behavior is expected label Jan 4, 2025
@huchenlei
Copy link
Member

Previously user defined palette had the id automatically prefixed with custom_, which were allowing id conflict with the system palettes.

The prefix was removed during the color palette rework. We can definitely add it back, but the original intention was to unify the id handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Expected The behavior is expected
Projects
None yet
Development

No branches or pull requests

3 participants