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: hook up points tab ui to metadata api #5176

Merged
merged 10 commits into from
Dec 1, 2023

Conversation

benisgold
Copy link
Member

@benisgold benisgold commented Nov 2, 2023

Fixes APP-####

What changed (plus any additional context for devs)

created hook to fetch points data from metadata api. hooked up the hook to the points tab ui. the cache is indefinite so the user will always see data in the points tab, except for a few seconds (max) the first time the data is being fetched. it will refetch automatically every time a new instance of the points hook is created (currently this just means every time the user quits + reopens the app)

Screen recordings / screenshots

What to test

TF 1.9.9 (10)
need to turn on points feature flag, should not be visible otherwise

@benisgold benisgold changed the title points hook points tab hooked up to api Nov 8, 2023
@benisgold benisgold changed the base branch from develop to @benisgold/points-tab-ui November 8, 2023 15:58
@benisgold benisgold changed the title points tab hooked up to api Points: hook up points content ui to metadata api Nov 30, 2023
@benisgold benisgold changed the title Points: hook up points content ui to metadata api Points: hook up points tab ui to metadata api Dec 1, 2023
@benisgold benisgold requested a review from walmat December 1, 2023 00:32
* 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>
@benisgold benisgold merged commit 8665907 into @benisgold/points-tab-ui Dec 1, 2023
3 of 4 checks passed
@benisgold benisgold deleted the @benisgold/points-tab-data branch December 1, 2023 23:23
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

2 participants