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(onyx-356): single activity panel notification screen #9327

Merged
merged 5 commits into from
Sep 28, 2023

Conversation

nickskalkin
Copy link
Contributor

@nickskalkin nickskalkin commented Sep 25, 2023

This PR resolves ONYX-356

Description

I've added a new screen for individual activity panel notifications. You can navigate to it by clicking on an activity panel item from activity panel or latest activities rail.

Demo

demo.mp4

PR Checklist

  • I have tested my changes on iOS and Android.
    • I will appreciate if someone tests my changes on Android simulator
  • 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.
    • This is not a final version - thus no tests so far
  • 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

  • behind feature flag: new screen for individual activity panel notifications - @nickskalkin

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.

@nickskalkin nickskalkin self-assigned this Sep 25, 2023
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Sep 25, 2023

This PR contains the following changes:

  • Cross-platform user-facing changes (behind feature flag: new screen for individual activity panel notifications - @nickskalkin)

Generated by 🚫 dangerJS against 6d96179

@nickskalkin nickskalkin marked this pull request as ready for review September 26, 2023 15:20
dblandin
dblandin previously approved these changes Sep 26, 2023
Copy link
Member

@dblandin dblandin left a comment

Choose a reason for hiding this comment

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

LGTM overall!

src/app/Scenes/Activity/ActivityItemArtworksGrid.tsx Outdated Show resolved Hide resolved
MounirDhahri
MounirDhahri previously approved these changes Sep 27, 2023
Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

LGTM - nice PR!

src/app/Scenes/Activity/ActivityItem.tsx Outdated Show resolved Hide resolved
size={rowImageWidth}
artworkHref={artworkNodes[0].href!}
/>
<Spacer x={`${IMAGE_OFFSET}px`} />
Copy link
Member

Choose a reason for hiding this comment

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

Q: any reason for not using x={1} here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thinking was that I have a constant IMAGE_OFFSET (in pixels), and I do all math in this component based on this constant, for instance rowImageWidth is calculated like this: (width - (TOTAL_HORIZONTAL_PADDING + IMAGE_OFFSET)) / 2.

If I were to change IMAGE_OFFSET to 15 pixels, for instance, nothing would be broken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I'll try to rewrite with Flex gap instead, so never mind 😄

Copy link
Member

Choose a reason for hiding this comment

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

thanks for explaining 🙏

src/app/Scenes/Activity/ActivityItemArtworksGrid.tsx Outdated Show resolved Hide resolved
src/app/Scenes/Activity/ActivityItemScreen.tsx Outdated Show resolved Hide resolved
@nickskalkin nickskalkin dismissed stale reviews from MounirDhahri and dblandin via 6d96179 September 28, 2023 08:47
Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

Thanks Nikita 🙏

@nickskalkin nickskalkin merged commit 845b0b0 into main Sep 28, 2023
@nickskalkin nickskalkin deleted the nickskalkin/onyx-211 branch September 28, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants