File downloads and refactoring #3918
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#3918
Loading…
Reference in a new issue
No description provided.
Delete branch "file_downloads_and_refactoring"
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?
I think this is close. What it does:
makeSelectFileRenderModeForUri
combined withrenderFilePageLayout
is a good way of understanding the possible paths. Can walk through some of this on standup tomorrow if interested.@ -0,0 +7,4 @@
title: string,
};
export default function I18nMessage(props: Props) {
This doesn't do anything. If iframes are serving files from the same domain, growable iframes would work. Ironically we just changed this.
@ -19,0 +25,4 @@
icon,
className,
isPageTitle = false,
isBodyTable = false,
For cards that should have title as an h1
@ -19,0 +26,4 @@
className,
isPageTitle = false,
isBodyTable = false,
actionIconPadding = true,
New option for cards where the entire body is a table (there was one on Help)
@ -34,2 +53,4 @@
</div>
)}
{actions && (
<div
add support cards without titles
@ -24,0 +27,4 @@
'nag--error': type === 'error',
'nag--inline': inline,
})}
>
Add support for inline nags (used on the player). Inline is possibly a bad term as I review this, should possibly be absolute?
@ -63,3 +57,3 @@
<div className="section__actions">
<ActionWrapper>
<Button
button="alt"
🤮
@ -80,0 +72,4 @@
<tr>
<td> {__('Effective Amount')}</td>
<td>{claim.meta.effective_amount} LBC</td>
</tr>
Expandable should become a card option. As should @jessopb's newest collapsible elements (they're collapsible cards).
@ -20,4 +15,3 @@
import Yrbl from 'component/yrbl';
import DocumentViewer from 'component/viewers/documentViewer';
import PdfViewer from 'component/viewers/pdfViewer';
moved into proxied selector, this way we can assume when selecting a streamUrl it will just work
media and content types should not need to be messed with for the most part
just use renderMode
@ -0,0 +1,43 @@
// @flow
import React from 'react';
New view for downloadable content. Download only content does not go through
<FileRenderInitiator>
(previous ViewerInitiator)@ -0,0 +1,25 @@
import { connect } from 'react-redux';
"TextViewer" is now FileRenderInline
This is used for all content types that are renderable (i.e. not downloadable) but not "playable" (go into floating player)
these are essentially the 4 ways a page can be laid out:
@kauffj The app crashes when I try to run this branch. I also see
"export 'UNSUPPORTED_ON_WEB' (imported as 'RENDER_MODES') was not found in 'constants/file_render_modes'
whoops.
@kauffj I made some changes to the buttons. I think this is ready but it looks like streaming video on desktop is broken.
It looks like an effect is continuously re-ran. This can be merged after that is resolved.
see comment ^
@kauffj nevermind. I'm just gonna fix this now so we can merge it since it's a lot of changes
thanks @seanyesmunt