Add options to show links to additional Microsoft apps in the Microsoft block - #3372
Open
Lai Wei (weilai-irl) wants to merge 1 commit into
Open
Add options to show links to additional Microsoft apps in the Microsoft block#3372Lai Wei (weilai-irl) wants to merge 1 commit into
Lai Wei (weilai-irl) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the Moodle block_microsoft plugin to optionally show links to additional Microsoft 365 and Viva apps within the Microsoft block, controlled by new admin settings (including tenant-specific URL settings for some Viva apps).
Changes:
- Adds admin settings (checkboxes) to enable/disable additional Microsoft 365/Viva links, plus required URL settings for Viva Amplify/Connections/Learning.
- Renders the new links in the block when enabled, and adds corresponding CSS + SVG icons.
- Introduces URL-validation regex constants and a custom admin setting type to require a URL when its companion “Show …” checkbox is enabled.
Reviewed changes
Copilot reviewed 7 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| blocks/microsoft/version.php | Updates plugin version (currently to a decimal value). |
| blocks/microsoft/styles.css | Adds icon CSS classes for the new app links. |
| blocks/microsoft/settings.php | Adds new admin settings for showing app links + configuring tenant URLs. |
| blocks/microsoft/lib.php | Adds regex constants used to validate tenant-specific Viva URLs. |
| blocks/microsoft/lang/en/block_microsoft.php | Adds new UI strings for the new links/settings and URL-required error. |
| blocks/microsoft/classes/admin_setting_required_url.php | Adds a custom admin setting to require a URL when a related checkbox is enabled. |
| blocks/microsoft/block_microsoft.php | Adds the new app links to the block output when enabled. |
| blocks/microsoft/pix/*.svg | Adds new SVG icons for the additional apps. |
Suppressed comments (3)
blocks/microsoft/block_microsoft.php:448
- Links opened with target="_blank" should include rel="noopener noreferrer" to prevent reverse-tabnabbing.
$vivaamplifyattrs = ['target' => '_blank', 'class' => 'servicelink block_microsoft_vivaamplify'];
blocks/microsoft/block_microsoft.php:461
- Links opened with target="_blank" should include rel="noopener noreferrer" to prevent reverse-tabnabbing.
$vivaconnectionsattrs = ['target' => '_blank', 'class' => 'servicelink block_microsoft_vivaconnections'];
blocks/microsoft/block_microsoft.php:474
- Links opened with target="_blank" should include rel="noopener noreferrer" to prevent reverse-tabnabbing.
$vivalearningattrs = ['target' => '_blank', 'class' => 'servicelink block_microsoft_vivalearning'];
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Lai Wei (weilai-irl)
force-pushed
the
wip-135731-m405
branch
from
August 7, 2026 13:43
9d3d2c2 to
2dc9578
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.
No description provided.