Skip to content

Update icon settings in auth_oidc - #3382

Open
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_502_STABLEfrom
wip-135748-m502
Open

Update icon settings in auth_oidc#3382
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_502_STABLEfrom
wip-135748-m502

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 7, 2026 17:19
@weilai-irl Lai Wei (weilai-irl) self-assigned this Aug 7, 2026
@weilai-irl Lai Wei (weilai-irl) added this to the 2026-03 milestone Aug 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the auth_oidc plugin’s login icon configuration by reducing the available stock icon choices to OIDC-relevant options, adding new SVG assets, and introducing an upgrade-time migration to preserve existing sites’ selected icons when previously-available core Moodle icons are removed.

Changes:

  • Replace the stock icon selector list with a curated set (Microsoft/M365/OpenID/Keycloak) and update the default icon choice.
  • Add new SVG icon assets and update language strings for the new icon alt texts.
  • Add an upgrade step to migrate removed icon selections into the plugin’s custom icon area so existing sites keep the same visual icon.

Reviewed changes

Copilot reviewed 8 out of 15 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
auth/oidc/version.php Bumps the plugin version to trigger the upgrade/migration.
auth/oidc/settings.php Replaces icon choices, updates default icon, and changes custom icon accepted upload types.
auth/oidc/pix/openid.svg Adds OpenID stock icon asset.
auth/oidc/pix/office_365.svg Adds Office 365 stock icon asset.
auth/oidc/pix/microsoft.svg Adds Microsoft stock icon asset.
auth/oidc/pix/microsoft_365.svg Adds Microsoft 365 stock icon asset.
auth/oidc/pix/microsoft_365_copilot.svg Adds Microsoft 365 Copilot stock icon asset.
auth/oidc/lib.php Updates custom icon initialization to remove stale extensions and preserve the uploaded extension.
auth/oidc/lang/en/auth_oidc.php Updates icon alt strings and custom icon help text.
auth/oidc/db/upgrade.php Adds an upgrade step to migrate removed icon selections.
auth/oidc/classes/utils.php Implements the icon migration logic into the custom icon area.
auth/oidc/classes/loginflow/authcode.php Updates default icon key and adjusts the rendered name spacing when an icon is shown.
auth/oidc/classes/adminsetting/iconselect.css Minor CSS tweak for icon selection styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread auth/oidc/version.php
Comment thread auth/oidc/db/upgrade.php
Comment thread auth/oidc/lib.php Outdated
Comment thread auth/oidc/lib.php
Comment thread auth/oidc/settings.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants