Skip to content

#523: Added functional color field filtering#894

Merged
notsidney merged 4 commits intorowyio:developfrom
mshamsrainey:enhancement/513-color-filter
Nov 2, 2022
Merged

#523: Added functional color field filtering#894
notsidney merged 4 commits intorowyio:developfrom
mshamsrainey:enhancement/513-color-filter

Conversation

@mshamsrainey
Copy link
Contributor

Not sure if the UI on this is quite what y'all are looking for, but wanted to go ahead and get the PR up for feedback!

@vercel
Copy link

vercel bot commented Oct 21, 2022

@mshamsrainey is attempting to deploy a commit to the Rowy Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@notsidney notsidney left a comment

Choose a reason for hiding this comment

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

This is a good start but unfortunately there’s an issue with how we store colors. The HSV values in Firestore aren’t integers, and when selecting a color using HEX or RGB, the decimal values can be different, so the filters don’t work, since it compares the whole object.

image

You can write a custom filter here @src/hooks/useFirestoreCollectionWithAtom.ts to only compare the .hex values

@mshamsrainey
Copy link
Contributor Author

Appreciate the feedback @notsidney! Just added another commit that should address your suggestion and also make a tweak to how the color field filter values are formatted, let me know what you think :-)

Copy link
Contributor

@notsidney notsidney left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@notsidney notsidney merged commit 63265e3 into rowyio:develop Nov 2, 2022
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