Repository navigation
Address 26.8.2 drift, make drift easier to act on and reduce drift surface - #45
Merged
Merged
Conversation
Ekhorn
force-pushed
the
update-theme
branch
3 times, most recently
from
November 24, 2026 09:04
764f6a2 to
e4bea69
Compare
Split the report into failures and other changes, with tables keyed by our page: the keys Keycloak added or removed against ours and whether the installed Keycloakify has them, and reworded messages beside what our page shows. The diff commands use the paths the check actually read and sit in an optional section at the end. The header says how many Keycloakify releases we are behind, asked through Yarn so that .yarnrc.yml applies.
Most strings on the login pages come from Keycloakify's compiled bundle. The server resolves a few for the page: the terms text, required action names and labels a realm configures. A child theme's messages_*.properties and a realm's localization overrides reach those.
Follow Keycloak's provider section: "or" above a list of up to three,
"Sign in with {0}" on each button, and past three a two-column grid
under "or sign in with" with name-only buttons. Each button carries
Keycloak's icon for the provider, served from the parent theme, with
the label centred after it, and the panel around the providers is gone.
Keycloakify has no message for the three labels yet, so src/i18n.ts
stands in with Keycloak's English, which every language shows until it
ships them.
The dev server now serves resources our theme lacks from the parent
theme, as Keycloak does, and has a setting with five providers to show
the grid.
Count releases Yarn's age gate still holds back and those in a newer major, and tidy the report's wording.
A copy base adds or drops beside one the parent theme serves in both versions is neither, since that one is still served. The report listed it as a new page, or as gone.
Keycloak ships Chinese by script, reading zh-CN from zh_Hans and zh-TW from zh_Hant, and merges a regional tag over its language, de under de-CH. The stock renderer loaded neither, so those showed English in the dev server.
The build adds a lookup to each kept template for the message keys its page names, and the jar no longer ships Keycloakify's copy of Keycloak's messages. Keycloak resolves them while it renders the page, in every language it has, with child-theme and realm overrides. The dev server resolves them through its stock renderer.
Pages now read only what Keycloak resolved into x-keycloakify.messages, then OWN_MESSAGES, and otherwise show the key, as Keycloak does. This removes the stand-ins, the second render, 39KB from main.js and the per-language bundles. The language switcher takes Keycloak's labels. The dev server also resolves the key-shaped strings in kcContext, as Keycloakify's template does.
Ekhorn
marked this pull request as ready for review
November 24, 2026 11:42
richturner
approved these changes
Nov 24, 2026
Ekhorn
added a commit
that referenced
this pull request
Nov 24, 2026
* Update to 26.8.2 * Address 26.8.2 drift, make drift easier to act on and reduce drift surface (#45) --------- Co-authored-by: Koen <44117179+Ekhorn@users.noreply.github.com>
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.
Description
Addresses the drift issues on the Keycloak 26.8.2 update. The Keycloak drift report is now easier to understand and act on: it separates failures from other changes, lays out what changed in tables with the pages it affects, and gives the commands to read each upstream diff. The login theme now takes all its messages from Keycloak instead of Keycloakify's bundled copy as it's not regularly updated, which removes a source of drift and makes the bundle 39 KB smaller.
Highlights
main.jsis 39 KB lighter, 34 assets become 5, and the Docker image shrinks by nearly 5 MB.Testing
Deployed an image to a test server and checked the translations. Pages in other languages now render once: before, they briefly showed English on refresh.
Changelog
Theme changes
Translations come from Keycloak
OWN_MESSAGEScovers the few keys Keycloak has no message for.langanddirfollow Keycloak's, including right to left.Smaller bundle, one render
main.jsgoes from 306 KB to 267 KB (−13%), and the 29 per-language bundles are gone (34 assets → 5).Keycloak check
Dev server