Skip to content

Address 26.8.2 drift, make drift easier to act on and reduce drift surface - #45

Merged
richturner merged 13 commits into
updatefrom
update-theme
Nov 24, 2026
Merged

richturner merged 13 commits into
updatefrom
update-theme

Conversation

@Ekhorn

@Ekhorn Ekhorn commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

  • A report that is easier to act on.
  • No drift in translations: the wording always matches the Keycloak we run.
  • More languages: 41 instead of Keycloakify's 30.
  • Smaller: main.js is 39 KB lighter, 34 assets become 5, and the Docker image shrinks by nearly 5 MB.
  • No flash of English: pages in other languages render once.
  • Realm and child-theme message overrides now reach our pages.

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

  • Upgrade Keycloakify from 11.15.11 to 11.16.4.

Theme changes

  • Identity providers are laid out and labelled as on Keycloak 26.8's own page: At or below 3 providers it shows "Sign in with …" on each button. Above 3 it shows the buttons in a grid and changes the labels.
  • The buttons now also show Keycloak's provider icons.

Translations come from Keycloak

  • Keycloak resolves every message while it renders the page, from a lookup the build adds to each template. Keycloakify's i18n and bundled messages are gone, and OWN_MESSAGES covers the few keys Keycloak has no message for.
  • The wording matches the Keycloak we run, in all 41 of its languages (Keycloakify has 30), with child-theme and realm overrides. New or reworded messages no longer wait for a Keycloakify release.
  • The language switcher, lang and dir follow Keycloak's, including right to left.

Smaller bundle, one render

  • main.js goes from 306 KB to 267 KB (−13%), and the 29 per-language bundles are gone (34 assets → 5).
  • Pages in other languages no longer fetch a language file and render a second time.
  • Each page's HTML grows by about 1 KB for the lookups.
  • The Docker image is reduced by nearly 5 MB.

Keycloak check

  • The upgrade report now lists relabelled controls with their pages, reworded messages, new pages and the newest Keycloakify release.
  • What it reports on the 26.8.2 bump before and now.

Dev server

  • The dev server resolves messages through Keycloak's stock renderer, as production does.

@Ekhorn
Ekhorn force-pushed the update-theme branch 3 times, most recently from 764f6a2 to e4bea69 Compare November 24, 2026 09:04
@Ekhorn
Ekhorn changed the base branch from main to update November 24, 2026 09:07
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 Ekhorn changed the title Drift changes test Make drift easier to act on and reduce drift surface Nov 24, 2026
@Ekhorn Ekhorn self-assigned this Nov 24, 2026
@Ekhorn
Ekhorn marked this pull request as ready for review November 24, 2026 11:42
@Ekhorn Ekhorn changed the title Make drift easier to act on and reduce drift surface Address 26.8.2 drift, make drift easier to act on and reduce drift surface Nov 24, 2026
@Ekhorn
Ekhorn requested a review from richturner November 24, 2026 12:33
@richturner
richturner merged commit d1fcc6e into update Nov 24, 2026
3 checks passed
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>
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