Stream Key Button #7127
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#7127
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
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?
Fixes
Stream Key is now hidden instead of showing.
Adds Stream Key Button to show and hide Stream Key.
Issue Number: 6494
What is the current behavior?
Stream Key is visible
What is the new behavior?
Stream Key is now hidden
Ability to show and hide Stream Key
What kind of change does this PR introduce?
Please check all that apply to this PR using "x":
Hey @GlobalGamer2015, nice to see you checking out the Odysee repo! Thanks for the PR! We'll get a review on this soon.
Rename to actual function name for clarity
It's unnecessary to create a separate Component just for unmask functionality, and it is also not the React-way to tweak the DOM directly.
copyableStreamkey
itself.copyableStreamkey
, then augment the originalcopyableText
to support an optional parameterisPassword
(orenableMask
or something).As mentioned in a prior comment, a separate component is not necessary.
On top of that, the button location is not ideal, and there is no gap between components. Here's one suggestion:
It is not necessary to show a toast when hiding and showing the key.
Done, it passed lint checker on my end.
I removed the Component entirely.
I'm not that great with React so I'm not able to replicate that.
Removed this Component entirely.
Thanks for the update!
Please undo this. You'll just need to add
Stream Key is now hidden. ([#7127](https://github.com/lbryio/lbry-desktop/pull/7127))
into the existing### Fixed
entry under## [Unreleased for Desktop]
. No need to bump the version.Please undo this.
Rename to
CopyableStreamkey
Undone.
Undone and placed in correct area.
Renamed
Issues:
<form>
is weird, as we are not submitting anything.Take a look at how to use
useState
.A rough guide:
<form>
andtype=password
password
, you don't have to change the way you perform the copy anymore.showKey
copyable
with asterix if state is hiddenvalue={showKey ? copyable || '' : '***')
Button is fixed.
I'm not using Dom, I'm using what was already in the file itself.
The
<form>
is being used to hold the main reference instead of a single FormField item..select()
) when being copied, which we couldn't do via React.<form>
is not the right tag for that use-case. A<div>
would probably do.Merging
It works, and the changes are localized in 1 component, so good to go for now. Thanks!
Can we show you some appreciation?