After moving the padding to the content of buttons, we ended up with
extra padding around text buttons that wasn't there before. The
"Download" bar doesn't look great with no padding at all, but it needs
to match the text buttons so the text doesn't jump to the right when
it switches from "Download" (text button) to "Connecting" (progress bar).
So we pad both text buttons and progress bars just a little bit, less
than a standard button but enough that progress bars look OK.
- Don't fade out tile
- Display message in place of buttons with an option to bypass the
message
- Factor out message into its own FileUnavailableMessage component
Before this fix, if the daemon wasn't accepting connections
the UI would get an error and then be stuck on the loading screen.
We now check if the daemon is accepting connections first, and then
check for the status.
We now maintain a list of files that have been requested for removal in
lbry.js and simulate the file being removed so all components can
respond immediately.
Instead of having the menu keeping track of whether it's open, we now
leave it up to the surrounding component to mount and unmount it. This
avoids bubbling issues when listening for events on an external toggle
button.
We also now use the recommended callback style for refs instead of
named refs.
- Now accepts a single metadata object for all metadata fields so
the surrounding components don't have to break out the individual
fields into props.
- Now tracks whether the file was published by the user, and if
there's a copy on their machine (will look up using API calls if
needed)
- Use the new "state" prop for DownloadLink
- General refactoring and cleanup
- Use a single "state" prop to track download progress (not-started,
downloading, or done)
- Accept a file path as a prop an "Open" link after the download is
complete
- Trim some outdated code; improve CSS class names