feat(clipboard): add copy URL to clipboard functionality #1548
Open
lucs7 wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a “copy calendar subscription URL” interaction across schedule, calendar, and admin views by wiring subscription links to a clipboard helper and showing feedback via Bootstrap toasts.
Changes:
- Added global
copyUrlToClipboard()andshowToastById()helpers inphpscheduleit.js. - Updated multiple Smarty templates so clicking Atom/iCalendar/Subscription links copies the URL (instead of navigating) and triggers a toast.
- Centralized toast markup in
tpl/globalfooter.tpland added a newUrlCopiedToClipboardtranslation string in several locales.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| Web/scripts/schedule.js | Uses the new global toast helper when setting a default schedule. |
| Web/scripts/phpscheduleit.js | Adds global toast + clipboard helper functions (with fallback). |
| tpl/Schedule/schedule.tpl | Converts schedule subscription links to copy-to-clipboard behavior. |
| tpl/globalfooter.tpl | Adds shared toast container/markup for clipboard + default-schedule feedback. |
| tpl/Calendar/mycalendar.subscription.tpl | Converts “Subscribe to calendar” link to copy-to-clipboard behavior and removes inline URL display. |
| tpl/Calendar/calendar.subscription.tpl | Converts calendar subscription link to copy-to-clipboard behavior. |
| tpl/Admin/Schedules/manage_schedules.tpl | Converts admin schedule Atom/iCalendar links to copy-to-clipboard behavior. |
| tpl/Admin/Resources/manage_resources_public.tpl | Converts admin resource Atom/iCalendar links to copy-to-clipboard behavior. |
| lang/pt_br.php | Adds UrlCopiedToClipboard translation (pt_BR). |
| lang/it_it.php | Adds UrlCopiedToClipboard translation (it_IT). |
| lang/fr_fr.php | Adds UrlCopiedToClipboard translation (fr_FR). |
| lang/es.php | Adds UrlCopiedToClipboard translation (es). |
| lang/en_us.php | Adds UrlCopiedToClipboard translation (en_US). |
| lang/de_de.php | Adds UrlCopiedToClipboard translation (de_DE). |
JohnVillalovos
force-pushed
the
feature/ics-clipboard
branch
from
July 14, 2026 00:25
e0241b6 to
7e0a334
Compare
…tifications for ics and atom links
JohnVillalovos
force-pushed
the
feature/ics-clipboard
branch
from
July 14, 2026 00:41
7e0a334 to
664a57e
Compare
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.
This pull request introduces a new feature that allows users to easily copy calendar subscription URLs (iCalendar and Atom feeds) to their clipboard with a single click, and provides immediate feedback via a toast notification.