3 Commits
Author SHA1 Message Date
Supra4E8C f7ad088698 feat: implement ProviderArtwork component and integrate into various features 2026-11-19 22:10:43 +08:00
Supra4E8C 24f78e86f1 fix(oauth): decode escaped plugin entry metadata 2026-11-05 09:12:05 +08:00
WizisCool eb8cbb4520 fix(oauth): render every plugin-declared OAuth login entry
A plugin registered through CPA v8.0.49+ can expose several OAuth login
entries, and since v8.0.51 each entry may publish its own display name and
logo. The plugins list carries `oauth_providers` and
`oauth_provider_entries`, but only the singular `oauth_provider` was read, so
a multi-portal plugin could only ever surface its first portal here.

- Parse `oauth_providers` with the same per-element validation the singular
  field already receives (lowercased, deduped, bounded to backend-accepted
  identifiers).
- Parse `oauth_provider_entries` into per-entry name/logo, keeping only
  identifiers the plugin actually declared; older backends that omit the
  field change nothing.
- Emit one OAuth card per declared identifier, titling and drawing each with
  its own entry metadata and falling back to the plugin name and logo. The
  plugin-id fallback for `supports_oauth`-only plugins and the built-in
  provider guard are unchanged.
- Match any declared identifier in `resolveQuotaPluginId` so a credential
  typed by a secondary portal resolves to its owning plugin instead of the
  sole-plugin guess.

`oauthProvider` keeps its exact previous shape, so existing consumers are
untouched.

Fixes #536
2026-11-02 15:07:24 +08:00