Commit graph

24 commits

Author SHA1 Message Date
jessopb
c7021a08ad
Selector refactors (#7424)
* Attempt to speed up sidebar menu for mobile (#283)

* Exclude default homepage data at compile time

The youtuber IDs alone is pretty huge, and is unused in the `CUSTOM_HOMEPAGE=true` configuration.

* Remove Desktop items and other cleanup

- Moved constants out of the component.
- Remove SIMPLE_SITE check.
- Remove Desktop-only items

* Sidebar: limit subscription and tag section

Too slow for huge lists

Limit to 10 initially, and load everything on "Show more"

* Fix makeSelectThumbnailForUri

- Fix memo
- Expose function to extract directly from claim if client already have it.

* Fix and optimize makeSelectIsSubscribed (#273)

- It will not return true if the uri provided is canonical, because the compared subscription uri is in permanent form. This was causing certain elements like the Heart to not appear in claim tiles.
- It is super slow for large subscriptions not just because of the array size + being a hot selector, but also because it is looking up the claim twice (not memo'd) and also calling `parseURI` to determine if it's a channel, which is unnecessary if you already have the claim.

- Optimize the selector to only look up the claim once, and make operations using already-obtained info.

* Simplify makeSelectTitleForUri

No need to memo given no transformation.

* Simplify makeSelectIsUriResolving

- Memo not required. `resolvingUris` is very dynamic and is a short array anyways.
- Changeg from using `indexOf` to `includes`, which is more concise.

* Cost Info selector fixes

- no memo required since they are just directly accessing the store.

Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
Co-authored-by: infinite-persistence <inf.persistence@gmail.com>
2022-01-19 20:46:01 -05:00
zeppi
98df8b265f more flow 2021-10-15 23:49:41 -04:00
zeppi
ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00
Sean Yesmunt
0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
Sean Yesmunt
1f2fabe81b Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
Sean Yesmunt
2066205b8f add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
Sean Yesmunt
2ed3623b59 make invite string more manageable for translations 2020-04-22 15:45:35 -04:00
Harsh Khandeparkar
17cf98a4bd fix: add a button in the footer of the card 2020-04-22 15:45:35 -04:00
Harsh Khandeparkar
4676799c14 fix: change page size to 3 2020-04-22 15:45:35 -04:00
Mr. X
b1549c6ae2 fix: create account button inline 2020-04-22 15:45:35 -04:00
Mr. X
7893512e2b feat: Invited Link Displays Channel Content 2020-04-22 15:45:35 -04:00
Sean Yesmunt
2677cd17d8
new signin/signup (#3960)
* new signin/signup

* cleanup and password reset

* new flow working

* cleanup

* add 'autoComplete' props

* fix prop

* try to call email/confirm before resetting password

* Dont use password reset token for email confirmation.

* add password reset

* password manager improvements

* update lbryinc

* cleanup

* slightly improve close button on sign up page

* moar fixes

* fix password autofil

Co-authored-by: Mark Beamer Jr <markbeamerjr@gmail.com>
2020-04-13 15:16:07 -04:00
Sean Yesmunt
2a78ac04b0 fix broken link 2020-04-02 11:38:09 -04:00
jessop
d44e3e2783 make invite redirect to channel if appropriate 2020-01-31 17:13:49 -05:00
Thomas Zarebczan
1adede3a33 Fix double 'and' 2020-01-25 12:53:05 -05:00
jessop
b33695c295 show channelName instead of full url introducing referrer channel
clear referrer modal error on close
2020-01-17 11:23:03 -05:00
Sean Yesmunt
93e8616e2e referrals round 2 2020-01-14 15:50:10 -05:00
Sean Yesmunt
b15f728d16 Revert "Feat new referrals" 2020-01-14 15:01:54 -05:00
Jeremy Kauffman
649fff500a update invited/view copy 2020-01-14 12:42:58 -05:00
jessop
94cc7a2d9d review changes 2020-01-14 12:42:57 -05:00
jessop
f130fae214 fix shortUrl subscriptions
refactor invited page
check if subscribed first
always follow regardless of reward status
2020-01-14 12:42:57 -05:00
jessop
d1c4e96d60 rename setReferrerPending and Error
bump lbryinc
improve invite states
register channels with apis
fix duplicate subscriptions
2020-01-14 12:42:56 -05:00
jessop
b16688754b new referrals
enable visiting /$/CODE or /$/invite/CHANNEL
enable visiting /ANY?=[CODE|CHANNEL] to set and claim
enable /$/invite selecting channels for referral codes
add ?r=CODE to share modal
enable setting referrer and claiming reward from rewards page
2020-01-14 12:42:56 -05:00
jessop
92af68d912 new invite route 2020-01-14 12:42:55 -05:00