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

Points fixes #5219

Merged
merged 65 commits into from
Dec 7, 2023
Merged

Points fixes #5219

merged 65 commits into from
Dec 7, 2023

Conversation

benisgold
Copy link
Member

@benisgold benisgold commented Dec 1, 2023

What changed (plus any additional context for devs)

  • a bunch of mostly minor ui updates
  • fixed referral code bug
  • blocked points onboarding for read-only wallets
  • automatically refresh data if "next distribution" timestamp <= current timestamp

What to test

TF 1.9.11 (10)
just try different variations of the points onboarding flow and try to break it

  • should not be able to onboard a read-only wallet
  • should never see any undefined values in the points breakdown at the end of the onboarding flow
  • should always be able to successfully "sign in" during the onboarding flow
  • should always see the PointsContent screen after completing the onboarding flow. it should never bring you back to the beginning of the onboarding flow (ClaimContent screen)

@benisgold benisgold marked this pull request as ready for review December 4, 2023 18:29
Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

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

looks so dope

few smol tings I noticed

date is too long/creating a new line: https://cloud.skylarbarrera.com/IMG_DEF39AB786D8-1.jpeg

super nit - this copy seems kinda weird if the user ONLY gets bonus points: https://cloud.skylarbarrera.com/IMG_DEF39AB786D8-1.jpeg

src/graphql/config.js Outdated Show resolved Hide resolved
@@ -104,11 +103,9 @@ export const ConsoleSheet = () => {
}, [accountAddress]);

useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this at all then? initial values for all of these are false

@@ -337,11 +334,9 @@ const ClaimRetroactivePointsFlow = ({
formatAddress(accountAddress, 4, 5)) as string;

useEffect(() => {
if (IS_DEV) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same with this, maybe need animationKey to trigger initial animation but I dont think so

@@ -720,10 +715,8 @@ export const TypingAnimation = ({
}, []);

useEffect(() => {
if (IS_DEV) {
Copy link
Contributor

Choose a reason for hiding this comment

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

imagine same here

borderColor: outline ? borderColor : undefined,
height: small ? 44 : 48,
shadowColor: outline ? 'transparent' : color || fallbackColor,
shadowOpacity: isDarkMode ? 0.2 : 0.4,
Copy link
Contributor

Choose a reason for hiding this comment

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

you may want to define some width here so we truncate xtra long strings for i18n poips, 2 line may be fine tho

Copy link
Member Author

Choose a reason for hiding this comment

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

it currently will wrap to 2 lines

src/screens/points/content/ClaimContent.tsx Outdated Show resolved Hide resolved
src/screens/points/content/PointsContent.tsx Show resolved Hide resolved
src/screens/points/content/PointsContent.tsx Show resolved Hide resolved
@benisgold benisgold merged commit 1039f9b into @benisgold/points-tab-ui Dec 7, 2023
3 of 4 checks passed
@benisgold benisgold deleted the @benisgold/points-fixes branch December 7, 2023 05:59
skylarbarrera added a commit that referenced this pull request Dec 11, 2023
* points tab ui

* i18n

* fix

* fix android

* android fix

* Points: hook up points tab ui to metadata api (#5176)

* points hook

* some error state + pull to refresh

* fix copy haptic + pull to refresh

* fix

* Points: introductory flow (#5201)

* refactor

* claim logic

* mutation

* claim content

* referral screen

* referral ui

* temp

* fix android input and tabs

* fix animation + back button android

* layout fixes

* final fixes + i18n

* Points: signing up (#5210)

* Add SF Mono, SF Pro Rounded Black

* Add AnimatePresence

* Update green/red colors

* Add ConsoleSheet

* Hook up iOS fonts

* Hook up to PointsScreen

* Style fixes

* hook up some logic to claim signing

* no retroactive points ui

* fix points content layout

* fix

* i18n

* fix error logging

---------

Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com>

* remove obsolete useFocusEffect

* ImgixImage

* simulationClient -> metadataPOSTClient

---------

Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com>

---------

Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com>

* merge fix

* Points fixes (#5219)

* points hook

* some error state + pull to refresh

* fix copy haptic + pull to refresh

* refactor

* claim logic

* fix

* mutation

* Add SF Mono, SF Pro Rounded Black

* Add AnimatePresence

* Update green/red colors

* Add ConsoleSheet

* Hook up iOS fonts

* Hook up to PointsScreen

* Style fixes

* claim content

* referral screen

* referral ui

* temp

* fix android input and tabs

* fix animation + back button android

* layout fixes

* final fixes + i18n

* hook up some logic to claim signing

* no retroactive points ui

* fix points content layout

* fix

* animiation fix

* referral code ui

* fix invalid referral error

* remove leaderboard row nav to profile

* remove obsolete card + add rank card

* black font weight for total points

* refetch if past next distribution date

* change rank icon to support higher ranks

* leaderboard up to rank 100

* fix black font android

* tweak sf mono font

* dont render ens nft avatars in leaderboard

* ActionButton

* points icon animation

* fix points gradient

* format total # points users

* restrict read only wallets

* copy

* referral code query update

* fixing referral validation

* fix merge error

* fix referral code input

* change metadata api fetch method from post to get

* routes

* i18n

* console sheet nav

---------

Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com>

* add contentful points tweet intent schema and queries (#5228)

* i18n

* real referral url

* rm TAB_BAR_HEIGHT

* Add referral share step (#5229)

* add contentful points tweet intent schema and queries

* progress on points share screen

* finish flow

* clean up code and break it into smaller files

* refactor progress

* final changes

* finished up

* lint

* revert graphql endpoint test

* share bonus points

---------

Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>

* fix referral skeleton ui

* fix android NeonButton

* cleanup

* types

* add 3 dots back to calculating points

* fix share link

* fix android shadow clipping

* fix continue button not showing

* [APP-972]: Fix back button being under the bottom tab bar (#5231)

* fix continue button not showing

* fix back button being under the bottom tabbar

* 1000 -> 100 bonus pts

* add a hardcoded version of tweet intent to build copy (#5235)

* fix placeholder on android (#5234)

* add proper twitter intents

* change intent slightly

* fix: rainbow text spacing and font issues

* fix fonts

* Bug bash fixes (#5237)

* additional onboard error handling

* fix skip

* copy

* bump referral keyboard delay

* fix double referral link when sharing

* fix next drop card date conversion

* tweak refetch interval slightly

* twitter intent tweak

* fix console animation + hide mm row if 0

* console button animation delay

* tweak twitter intent

* bonus points -> welcome bonus || true believer

* block hardware wallet

* leaderboard row onpress + refactor

* next drop card tweak

* deeplink

* referral bug fix

* fix android referral code text color

* attempt to fix ledger sign on console sheet

* analytics events

* fix android points mask

* add ledger (#5233)

* add ledger

* logs

* logs

* logs

* analytics events

* tweaks

* logs

* moar logs

---------

Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>

* remove url encoded (#5240)

* added analytics events

* next drop rounding fix

* rm console logs

---------

Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com>
Co-authored-by: Matthew Wall <matthew.wallt@gmail.com>
Co-authored-by: Derek <dereknelsony0@gmail.com>
Co-authored-by: Skylar Barrera <skylar.barrera@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants