enh: copied-tooltip#1850
Open
Mazi02 wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the web UI by adding a short-lived “Copied” tooltip when users copy stream URLs/keys and generated admin tokens, making copy actions clearer without adding persistent UI elements.
Changes:
- Added Alpine helpers (
copyAndShow,copied,copyTimeout) to display a “Copied” tooltip for various copy-to-clipboard actions. - Updated course lecture management and admin token templates to wrap copy targets with a tooltip container.
- Introduced a shared
.copy-tooltipCSS utility (including an arrow pseudo-element) for consistent tooltip styling.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| web/template/partial/course/manage/lecture-management-card.gohtml | Adds tooltip behavior for copying stream server URL and stream key in lecture management. |
| web/template/admin/admin_tabs/token.gohtml | Adds tooltip behavior for copying the generated token and RTMP details in the admin token flow. |
| web/assets/css/main.css | Adds the reusable .copy-tooltip styling (positioning, colors, arrow). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+61
to
63
| <option value="admin" class="text-4" x-show="role == 1" x-init="role = {{ .Role }}"> | ||
| Scope: admin | ||
| </option> |
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.
Motivation and Context
Having a "copied" tooltip makes a better and cleaner UI.
Description
Adding a tooltip to confirm that keys or other things got copied.
Steps for Testing
NOTE: after 1.5 seconds it should disappear.
Screenshots