Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Adds EmptyState, Horizontal Pagination and Artwork Counts to Partner also adds isCloseToEdge util #1956

Merged
merged 4 commits into from
Nov 5, 2019

Conversation

kierangillen
Copy link
Contributor

@kierangillen kierangillen commented Nov 4, 2019

  • Adds EmptyState to each scrollview
  • Creates a horizontal pagination container for current and upcoming shows
  • Creates a isCloseToEdge method for horizontal pagination
  • Adds artworks count to header

Horizontal pagination

2019-11-05 12 04 20

Empty state

Screen Shot 2019-11-05 at 12 00 52 PM

#skip_new_tests

@kierangillen kierangillen self-assigned this Nov 4, 2019
@kierangillen kierangillen changed the title WIP: Partner updates Partner updates Nov 5, 2019
@kierangillen kierangillen changed the title Partner updates Adds EmptyState, Horizontal Pagination and Artwork Counts to Partner also adds isCloseToEdge util Nov 5, 2019
Copy link
Contributor

@ashfurrow ashfurrow left a comment

Choose a reason for hiding this comment

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

Looks great! Just one question, but feel free to merge if ready.


type CallBack = () => void

export function isCloseToEdge(onScrollEnd: CallBack, pageEndThreshold: number = PAGE_END_THRESHOLD) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we planning to add tests for this class? I'm comfortable merging as-is as long as we ticket the follow-up tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can, looks like there are no tests yet for isCloseToBottom so they could be grouped together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ashfurrow
Copy link
Contributor

The tests have passed but GitHub hasn't updated the build status. Merging.

@ashfurrow ashfurrow merged commit 44cb4cc into master Nov 5, 2019
@ashfurrow ashfurrow deleted the partner-updates branch November 5, 2019 19:18
@artsyit
Copy link
Collaborator

artsyit commented Nov 5, 2019

🚀 PR was released in v1.18.22 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants