Add Status Bar to the desktop app #4259
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#4259
Loading…
Reference in a new issue
No description provided.
Delete branch "status-bar"
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?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: #3776
What is the current behavior?
No status bar when hovering over a clickable link.
What is the new behavior?
Status bar (ala web browser) appears to show where a link is pointing to.
@ -0,0 +29,4 @@
}
handleUrlChange(event: any, url: string) {
// We want to retain the previous URL so that it can fade out
The fade out animation is great 👍
@ -6,2 +6,4 @@
import Header from 'component/header';
import Footer from 'web/component/footer';
/* @if TARGET='app' */
import StatusBar from 'component/common/status-bar';
This import statement should be wrapped in
Instead of adding a bunch of empty props. You can just add this below
That should fix the flow errors
This is awesome! I left a few comments, but it looks really good! And seems to work great. Can you also add a changelog addition?
https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md
Another thing I just noticed. When I hover over the sidebar on the right. The link that shows in the status bar is
lbry://$/following
It should probably show as
/$/following
Something like this?
But flow seems still unhappy:
Ugh. I guess you can just add a flow comment above that line
// $FlowFixMe
That should "fix" it.
Summary of fixes for the re-commits above ^
lbry://
protocol mistakenly shown for non-claims.I squashed my new changes into the old commits. That will make it cleaner for the final merge, but I realized it will be hard for you to see what has recently change. Hopefully this is ok. Let me know if you have any preferences about this for future PRs.
great idea @infinite-persistence!
One last comment then this is good to go!
@ -167,0 +172,4 @@
dispUrl = 'Home';
} else if (dispUrl.startsWith(lbryProto + '$/')) {
dispUrl = dispUrl.replace(lbryProto, '/');
}
I think this also needs a line that just returns "Home"
Right now I see "lbry://"
Summary of fixes for the re-commits