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: render new Homeview for artsy people #10851

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Conversation

MounirDhahri
Copy link
Member

@MounirDhahri MounirDhahri commented Sep 26, 2024

This PR resolves ONYX-1330

Description

This PR exposes the new homeview to artsy people.

For easier review, I suggest you hide white spaces

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

iOS user-facing changes

Android user-facing changes

Dev changes

  • render new Homeview for artsy people - mounir

Need help with something? Have a look at our docs, or get in touch with us.

@@ -499,8 +498,7 @@ export const modules = defineModules({
screenOptions: {
statusBarTranslucent: true,
},
fullBleed:
ArtsyNativeModule.isBetaOrDev && !unsafe_getFeatureFlag("ARPreferLegacyHomeScreen"),
fullBleed: true,
Copy link
Member Author

Choose a reason for hiding this comment

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

I tested the screens after this change to make sure I didn't break anything

Screen.Recording.2024-09-26.at.17.30.16.mov


const shouldDisplayNewHomeView = ArtsyNativeModule.isBetaOrDev && !preferLegacyHomeScreen
const shouldDisplayNewHomeView =
(isArtsyEmployee || ArtsyNativeModule.isBetaOrDev) && !preferLegacyHomeScreen
Copy link
Member Author

Choose a reason for hiding this comment

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

We want to keep the old logic + the condition of having an artsymail account account

Copy link
Member

Choose a reason for hiding this comment

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

Awesome 👍🏼

Copy link
Member

@anandaroop anandaroop Oct 1, 2024

Choose a reason for hiding this comment

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

Wondering if this check is now out of sync with this one, which was added previously in #10808

const preferLegacyHomeScreen = useFeatureFlag("ARPreferLegacyHomeScreen")
const shouldDisplayNewHomeView = ArtsyNativeModule.isBetaOrDev && !preferLegacyHomeScreen

Any cause for concern? I.e. will Artsy users on the app store versions miss out on any pre-fetching?

@ArtsyOpenSource
Copy link
Contributor

This PR contains the following changes:

  • Dev changes (render new Homeview for artsy people - mounir)

Generated by 🚫 dangerJS against ac2f47e

@@ -499,8 +498,7 @@ export const modules = defineModules({
screenOptions: {
statusBarTranslucent: true,
},
fullBleed:
ArtsyNativeModule.isBetaOrDev && !unsafe_getFeatureFlag("ARPreferLegacyHomeScreen"),
fullBleed: true,
Copy link
Member

Choose a reason for hiding this comment

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

Awesome 💯


const shouldDisplayNewHomeView = ArtsyNativeModule.isBetaOrDev && !preferLegacyHomeScreen
const shouldDisplayNewHomeView =
(isArtsyEmployee || ArtsyNativeModule.isBetaOrDev) && !preferLegacyHomeScreen
Copy link
Member

Choose a reason for hiding this comment

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

Awesome 👍🏼

@MounirDhahri MounirDhahri added the Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green label Sep 26, 2024
@artsy-peril artsy-peril bot merged commit b185cc7 into main Sep 26, 2024
7 checks passed
@artsy-peril artsy-peril bot deleted the feat/update-ff-exposure branch September 26, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Art Advisor 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.

4 participants