Repository navigation
Conversation
Render the Stream ID inside a pill badge alongside the reusable CopyButton component in StreamDetailsModal header with keyboard accessibility and aria-label="Copy Stream ID". Fixes LabsCrypt#1633
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a one-click Copy Stream ID pill badge using the reusable
<CopyButton />component in theStreamDetailsModalheader (frontend/src/components/dashboard/StreamDetailsModal.tsx) so users can quickly copy the Stream ID with keyboard and screen-reader support.Type of Change
Related Issues
Closes #1633
Fixes #1633
/claim #1633
Changes Made
ID: {stream.id}header pill badge alongside<CopyButton text={stream.id} label="Copy" copiedLabel="Copied!" ariaLabel="Copy Stream ID" copiedAriaLabel="Stream ID copied" successMessage="Stream ID copied" />infrontend/src/components/dashboard/StreamDetailsModal.tsx.min-w-0,max-w-full,truncate) so long Stream IDs render cleanly on both mobile and desktop modal headers.frontend/src/components/dashboard/StreamDetailsModal.test.tsxto verify that clicking theCopy Stream IDbutton copiesstream.idtonavigator.clipboard, triggers the"Stream ID copied"toast, and transitions the button to the green checkmark copied state.Testing
Test Coverage
Test Steps
npx vitest run src/components/dashboard/StreamDetailsModal.test.tsx src/__tests__/a11y.test.tsxinfrontend/(7/7 tests pass, including axe-core accessibility audit).npx tsc --noEmitinfrontend/(0 errors).npx eslint src/components/dashboard/StreamDetailsModal.tsx src/components/dashboard/StreamDetailsModal.test.tsxinfrontend/(0 errors, 0 warnings).Checklist
Additional Notes
Payout Details
0x9a51790aC01c54184bcFa067bC38f7F0E7C6F6B6