-
Notifications
You must be signed in to change notification settings - Fork 414
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
Discovery UI #2477
Discovery UI #2477
Conversation
I will be making a number of changes to this branch today as I wire up redux. |
3036074
to
6064bef
Compare
@@ -12,6 +12,7 @@ | |||
<meta property="og:description" content="All your favorite LBRY content in your browser." /> | |||
<meta property="og:image" content="/og.png" /> | |||
<!-- @endif --> | |||
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kauffj You said not to build a mobile layout, but you didn't say not to create a new desktop layout that just happens to look good on mobile too.
src/ui/component/fileList/view.jsx
Outdated
) : ( | ||
header | ||
)} | ||
<div className="file-list__sort">{sort}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a fan of sort
. This is the item on the right side of the header. Currently the two pages that use this are the homepage (trending/best/new) and search feedback (satisfied with results?)
Sort isn't really a good name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headerAltControls
? headerSecondaryControls
? or same names without the word header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not done but I have to go home.
2aace2f
to
9e4a5b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly done
src/ui/component/fileList/view.jsx
Outdated
) : ( | ||
header | ||
)} | ||
<div className="file-list__sort">{sort}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headerAltControls
? headerSecondaryControls
? or same names without the word header?
uris={trending} | ||
injectedItem={personalSort === TRENDING_SORT_YOU && injectedItem} | ||
header={ | ||
<React.Fragment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this just be a component? Or at least not inlined? Same for the sort parameter below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I pulled it out. Possibly there should be FileListHeader
component, but I think it helps to keep this logic here, since all of this is related.
<FileListTrending | ||
personal | ||
tags={followedTags.map(tag => tag.name)} | ||
injectedItem={<TagsSelect showClose title={__('Make This Your Own')} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mildly uncertain about the pattern of relying on the local persisted state of <TagsSelect>
being closed to not re-render this. I suppose that is fine though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I wasn't really sure about this. Another option is to always show the injected item. It could be in the third/fourth position if there are more than four items, otherwise, just show at the end.
I figured we would have another on the subscriptions page somewhere.
const hasDownloads = !!downloadedUris.length; | ||
console.log('downloadedUris', downloadedUris); | ||
return ( | ||
// Removed the <Page> wapper to try combining this page with UserHistory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per comments in Slack, I'm fine with dropping the history, at least temporarily, if that makes this easier/cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, and I'm fine with that for now. I'll remove it/make the other changes in the next PR
location: { search }, | ||
} = props; | ||
|
||
const urlParams = new URLSearchParams(search); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
e09232d
to
fd9bfa6
Compare
Changes
FileListItem
Notes
.scss
files for now. I need to make a PR to github.com/lbryio/color before the styles are complete.