Discovery UI #2477

Merged
NetOpWibby merged 12 commits from discovery into master 2019-06-19 17:34:17 +02:00
3 changed files with 4 additions and 6 deletions
Showing only changes of commit 510307de01 - Show all commits

View file

@ -119,7 +119,7 @@
"jsmediatags": "^3.8.1", "jsmediatags": "^3.8.1",
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#08ed1be3905896452536c92f17997bcde4533aea", "lbry-redux": "lbryio/lbry-redux#fceb9747e10f6f6622e34580baf12c0521616407",
"lbryinc": "lbryio/lbryinc#43d382d9b74d396a581a74d87e4c53105e04f845", "lbryinc": "lbryio/lbryinc#43d382d9b74d396a581a74d87e4c53105e04f845",
"lint-staged": "^7.0.2", "lint-staged": "^7.0.2",
"localforage": "^1.7.1", "localforage": "^1.7.1",

View file

@ -62,9 +62,7 @@ export default function FileList(props: Props) {
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
))} ))}
</ul> </ul>
)} )}
{!hasUris && !loading && ( {!hasUris && !loading && <h2 className="main--empty empty">{empty || __('No results')}</h2>}
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
<div className="main--empty">{empty || <h3 className="card__title">{__('No results')}</h3>}</div>
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
)}
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
</section> </section>
); );
} }

neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?
neb-b commented 2019-06-04 06:06:18 +02:00 (Migrated from github.com)
Review

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.

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.
kauffj commented 2019-06-04 23:53:47 +02:00 (Migrated from github.com)
Review

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes.

Also, are passing header and defaultHeader mutually exclusive? If so, maybe omitting header can trigger default behavior and we can be explicit about the key being for state storage.

I think using this as a flag to both trigger default behavior and as the string key for storing state is mixing purposes. Also, are passing `header` and `defaultHeader` mutually exclusive? If so, maybe omitting `header` can trigger default behavior and we can be explicit about the key being for state storage.
kauffj commented 2019-06-04 23:55:21 +02:00 (Migrated from github.com)
Review

Probably should just be named file_sort.

Probably should just be named `file_sort`.
neb-b commented 2019-06-05 07:28:38 +02:00 (Migrated from github.com)
Review

I agree it was pretty messy. I added persistedStorageKey and use the default header if no header is passed in. If no peristedStorageKey is passed in, it will share state with other instances of the component that don't pass it in.

I added a key for every component right now.

I agree it was pretty messy. I added `persistedStorageKey` and use the default header if no `header` is passed in. If no `peristedStorageKey` is passed in, it will share state with other instances of the component that don't pass it in. I added a key for every component right now.
kauffj commented 2019-06-10 23:25:24 +02:00 (Migrated from github.com)
Review

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed

so if I pass nothing or false, it still persists in a global namespace? IMO make all persisting here explicit and do not persist if a value isn't passed
kauffj commented 2019-06-10 23:26:43 +02:00 (Migrated from github.com)
Review

headerAltControls? headerSecondaryControls? or same names without the word header?

`headerAltControls`? `headerSecondaryControls`? or same names without the word header?

View file

@ -6588,9 +6588,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
yargs "^13.2.2" yargs "^13.2.2"
zstd-codec "^0.1.1" zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#08ed1be3905896452536c92f17997bcde4533aea: lbry-redux@lbryio/lbry-redux#fceb9747e10f6f6622e34580baf12c0521616407:
version "0.0.1" version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/08ed1be3905896452536c92f17997bcde4533aea" resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/fceb9747e10f6f6622e34580baf12c0521616407"
dependencies: dependencies:
proxy-polyfill "0.1.6" proxy-polyfill "0.1.6"
reselect "^3.0.0" reselect "^3.0.0"