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 Availability filter to artwork filters #11100

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented Nov 15, 2024

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.

  • Echo Feature Flag: AREnableAvailabilityFilter
Simulator Screenshot - iPhone 16 - 2024-11-25 at 17 23 16 Simulator Screenshot - iPhone 16 - 2024-11-25 at 17 23 26
--- ---
Simulator Screenshot - iPhone 16 - 2024-11-25 at 17 23 31 Simulator Screenshot - iPhone 16 - 2024-11-25 at 17 23 39

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

  • Add Add Availability (for sale) artwork filter (behind feature flag) - ole

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.

@olerichter00 olerichter00 self-assigned this Nov 15, 2024
@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-880/availability-filter branch 2 times, most recently from 4671133 to 1e69e4a Compare November 25, 2024 16:28
@@ -140,6 +143,7 @@ export const ParamDefaultValues = {
colors: [],
earliestCreatedYear: undefined,
estimateRange: "",
forSale: undefined,
Copy link
Contributor Author

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.

@olerichter00 olerichter00 marked this pull request as ready for review November 25, 2024 16:31
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Nov 25, 2024

This PR contains the following changes:

  • Cross-platform user-facing changes (Add Add Availability (for sale) artwork filter (behind feature flag) - ole - olerichter00)

Generated by 🚫 dangerJS against da477a4

@olerichter00 olerichter00 changed the title feat: Add artwork availability filter feat: Add Availability filter to artwork filters Nov 25, 2024
anandaroop
anandaroop previously approved these changes Nov 25, 2024
Copy link
Member

@anandaroop anandaroop left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

I tried the branch locally and one thing I noticed is that the artwork count does not update after the filter is applied.

Something to look into, but since this is behind a flag feel free to investigate now or after merging.

Could use a spec also.


export const OPTIONS: FilterData[] = [
{
displayText: "Only Works for Sale",
Copy link
Member

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?

Suggested change
displayText: "Only Works for Sale",
displayText: "Only works for sale",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-880/availability-filter branch from 1e69e4a to 90af525 Compare November 26, 2024 10:38
@olerichter00
Copy link
Contributor Author

olerichter00 commented Nov 26, 2024

I tried the branch locally and one thing I noticed is that the artwork count does not update after the filter is applied.

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.

@olerichter00 olerichter00 added the Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green label Nov 26, 2024
@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-880/availability-filter branch from 5768c53 to 139a77b Compare November 26, 2024 16:03
@artsy-peril artsy-peril bot merged commit 5510c64 into main Nov 26, 2024
7 checks passed
@artsy-peril artsy-peril bot deleted the olerichter00/ONYX-880/availability-filter branch November 26, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jira Synced Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants