-
Notifications
You must be signed in to change notification settings - Fork 95
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
Dedupe saved themes? #166
Comments
I came across the same issue and would agree, only having unique themes saved seems like a good idea. I wouldn't mind tackling this as part of my contribution for the Outreachy program. I just wonder: if attempting to save a non-unique theme, should it fail silently or should there be some sort of notification / error? @lmorchard @johngruen |
Hey @cedricium I think you could just pop the theme the user is trying to dupe to the front of the saved themes list and then add a little highlight animation to it. probably fading in then out the same box shadow we show on hover would work well. If that's not strong enough we could think about adding a warning, but i bet that would do it. |
@johngruen great idea! Will see what I can do 👍 |
Hello @pdehaan , i want to solve this issue as a part of outreachy programme. please, assign it to me. |
Hey @Ekta3012, I was working on this but was having trouble matching an already saved theme with the theme that is going to get saved. Definitely go ahead and give it shot, I'd love to see your solution. |
@cedricium can i work on this issue as a part of my Outreachy program ? |
@gargshruti30 I'm an outreachy participant as well, not a member of the Themer group. Maybe go ahead and see if you can come up with a solution and think about making a PR afterwards. |
@gargshruti30 consider yourself assigned! |
For what it's worth, we have a small utility function here used for matching themes: https://github.com/mozilla/Themer/blob/master/src/lib/store.js#L39 It's a hack and should be moved to |
Fascinating! Is the order of
|
@lmorchard I will be sure to check that. |
Raised a PR to avoid duplicating themes. #231 |
Steps to reproduce:
fewdozen times.Actual results:
A few dozen duplicate themes in your "Saved themes" section.
Expected results:
Maybe we should disallow people to save a theme if they have the same hash already saved in their saved themes.
The text was updated successfully, but these errors were encountered: