Improve subscriptions page #2031
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#2031
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "subscription-new"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notes
It's not as bad as the diff numbers suggest. I added a lot of flow type checks
The entire subscriptions code is now covered by flow (and all of it was moved to it's own file instead of living in the reducer, which I like a lot more)
Changes
NEW
badgePictures
@skhameneh This is ready for review. I still have to make some very minor css changes for colors/the new badge styling but all of the JS is ready to be looked over.
Looks good, I don't see anything that sticks out; I'll go over it better tomorrow.
You can place this in your entrypoint array
Seems like this logic should be in a utility
This is not very intuitive, I would suggest using a reduce; the logic reads very odd since it looks to be a boolean operation but returns a value.
Maybe
Up to you
I see this duplicated a number of times
Should this be a boolean?
indent
Store
Object.keys(unreadByChannel)
in a local variable, you are using it multiple timesYou have 3 loops chained, can you refactor this?
@skhameneh Addressed your comments. Ready for another review.
I also added reselect from flow-typed