Commit graph

27 commits

Author SHA1 Message Date
Alex Liebowitz eba0ac6842 Indicate files pending confirmation in FileTile 2017-01-30 03:24:57 -05:00
alexliebowitz fe62548637 Merge pull request #146 from lbryio/fix-text-link-styles
Fix styling of normal text links
2017-01-26 02:41:40 -05:00
Alex Liebowitz 376bbed97c Fix styling of normal text links
Due to recent changes, they were appearing as text buttons
2017-01-24 22:39:36 -05:00
Alex Liebowitz 423d4fa47b Don't show error message if price for a file can't be retrieved
On search results pages, stream_cost_estimate is called on every
result. If there's some problem in the daemon that affects all calls
to stream_cost_estimate, this can lead to 25 error boxes. Better to
just suppress the error and not display a price.

Also switched to the new name for the daemon method (get_cost_est ->
stream_cost_estimate)
2017-01-24 19:29:47 -05:00
Jeremy Kauffman 44412437ce unavailable content cleanup 2017-01-21 16:31:41 -05:00
Alex Liebowitz e5b4aaf175 Revamp "file not available" message
- 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
2017-01-21 01:52:35 -05:00
Alex Liebowitz 9b68f71199 Always use local availability checks (not Lighthouse) 2017-01-20 23:55:49 -05:00
Alex Liebowitz 78176e6b0a In FileTile, show a message when a file is unavailable 2017-01-20 11:44:08 -05:00
Alex Liebowitz 1c19537883 Clean up prop passing from FileTile to FileTileStream 2017-01-20 08:49:47 -05:00
Alex Liebowitz 9d0aa0d8da Add setting to hide unavailable content 2017-01-19 05:05:57 -05:00
Jeremy Kauffman 70db4c937e shitty file remove 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 7f135275df file list refactor 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 3b7d093201 my_files fixes 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 70d390ea2e no more overflow-y on tiles, let's cap titles for now 2017-01-16 23:44:06 -05:00
Jeremy Kauffman e0eb36d032 more file tile refactor and fix file info unsubscribe 2017-01-16 23:44:05 -05:00
Jeremy Kauffman b7f23aa0dd big refactor of file actions/buttons/tiles 2017-01-16 23:44:04 -05:00
Alex Liebowitz e1ec3bb979 Fix nsfw check in FileTile 2017-01-16 23:42:09 -05:00
Alex Liebowitz cddc1ecd22 Remove files from UI immediately (don't wait for daemon to confirm) 2017-01-16 23:42:07 -05:00
Alex Liebowitz a2641c1a98 Add support for custom conteint in <Link />
Before you could only specify an icon and text label.
2017-01-16 23:33:32 -05:00
Alex Liebowitz 1e61af3b24 Rename things in FileTile
- updateStatusCallback -> updateFileInfoCallback
- this._statusCheckInterval -> this._fileInfoCheckInterval
2017-01-16 23:33:31 -05:00
Alex Liebowitz 5fcedd0d01 Update props in FileTile
- Add fileInfo
- Remove path (now calculated from fileInfo)
2017-01-16 23:33:31 -05:00
Alex Liebowitz 182ec6064d FileTile improvements and refactoring
- 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
2017-01-16 23:33:31 -05:00
Alex Liebowitz ce82f8cc6f Make FileTile look up its own download status if not provided 2017-01-16 23:31:16 -05:00
Alex Liebowitz f424e2e439 Show Download link only if file is not published by user 2017-01-16 23:27:14 -05:00
Alex Liebowitz 64d7b680c3 Add propTypes and getDefaultProps() to FileTile 2017-01-16 23:27:14 -05:00
Alex Liebowitz 97f6f3bdf8 Style and formatting fixes in FileTile 2017-01-16 23:27:14 -05:00
Alex Liebowitz efa1a29d4f Rename SearchResultRow to FileTile and convert styles to CSS
Also moves the component to its own file (file-tile.js) so it can be
used outside the Discover page.
2017-01-16 23:27:14 -05:00