-
Notifications
You must be signed in to change notification settings - Fork 578
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 Availability filter to artwork filters #11100
Conversation
4671133
to
1e69e4a
Compare
@@ -140,6 +143,7 @@ export const ParamDefaultValues = { | |||
colors: [], | |||
earliestCreatedYear: undefined, | |||
estimateRange: "", | |||
forSale: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the filter to undefined
and not false
by default. I guess both versions work, but false
seems to be correct because we don't want to filter anything if the filter is not set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
export const OPTIONS: FilterData[] = [ | ||
{ | ||
displayText: "Only Works for Sale", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (non-blocking): Probably match the casing on web?
displayText: "Only Works for Sale", | |
displayText: "Only works for sale", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
1e69e4a
to
90af525
Compare
Good catch! It looks like the artwork count does not get updated at all when applying any filter. I'll create a bug ticket in Jira. |
5768c53
to
139a77b
Compare
This PR resolves ONYX-880
Description
This PR adds the Availability filter to artwork grids on the artist screen. I'll implement the filter for more screens in an upcoming PR.
AREnableAvailabilityFilter
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.