add storage stats card to My LBRY downloads page #278
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#278
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "storage-stats"
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?
Mostly minor.
Could probably use more helper functions with some of the repeat code I see.
@ -0,0 +8,4 @@
TouchableOpacity,
View
} from 'react-native';
import { formatBytes } from '../../utils/helper';
We really need to get aliases or resolves added to remove these.
I die a little inside every time I see these crazy paths, assign an issue to me if you need me to work on this.
@ -14,0 +4,4 @@
const params = { uri };
if (nav && nav.routes && nav.routes.length > 0 && 'Main' === nav.routes[0].routeName) {
const mainRoute = nav.routes[0];
const discoverRoute = mainRoute.routes[0];
Can you add more helper methods for detecting the state of routes?
This is a lot of fragile code that can quickly become unmanageable.
@ -41,0 +37,4 @@
const value = (bytes / (1024.0 * 1024.0 * 1024.0)).toFixed(decimalPoints);
return `${value} GB`;
}
Can define constants for a lot of these that are reused.
@ -0,0 +8,4 @@
TouchableOpacity,
View
} from 'react-native';
import { formatBytes } from '../../utils/helper';
I plan to sort this out later. I just haven't taken the time to figure out how to do this yet.