Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "^24.0.0"
cache: yarn
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: bahmutov/npm-install@20216767ca67f0f7b4d095dc5859c5700a6581cb # v1.12.1
- run: npm run build-keycloak-theme
- uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
Expand All @@ -73,6 +73,8 @@ jobs:
generate_release_notes: true
draft: false
prerelease: ${{ needs.check_if_version_upgraded.outputs.is_pre_release == 'true' }}
files: dist_keycloak/keycloak-theme-*.jar
# Must not assume keycloakify's default keycloak-theme- prefix: the
# only target we build is named in vite.config.ts and would not match.
files: dist_keycloak/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
persist-credentials: false

- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "^24.0.0"
cache: yarn
Expand Down
944 changes: 0 additions & 944 deletions .yarn/releases/yarn-4.17.0.cjs

This file was deleted.

1,000 changes: 1,000 additions & 0 deletions .yarn/releases/yarn-4.18.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ enableScripts: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.17.0.cjs
yarnPath: .yarn/releases/yarn-4.18.0.cjs
53 changes: 28 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ol-keycloakify",
"version": "0.1.5",
"version": "0.1.6",
"description": "Keycloakify theme for Open Learning",
"repository": {
"type": "git",
Expand All @@ -27,10 +27,10 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@keycloak/keycloak-admin-client": "26.6.1",
"@keycloakify/keycloak-account-ui": "~260601.0.0",
"@keycloakify/keycloak-ui-shared": "~260601.0.0",
"@mitodl/smoot-design": "^6.10.0",
"@keycloak/keycloak-admin-client": "26.7.0",
"@keycloakify/keycloak-account-ui": "~260700.0.0",
"@keycloakify/keycloak-ui-shared": "~260700.0.2",
"@mitodl/smoot-design": "^6.33.1",
"@mui/lab": "^7.0.1-beta",
"@mui/material": "^7",
"@patternfly/patternfly": "^5.4.2",
Expand All @@ -47,39 +47,42 @@
"keycloak-js": "^26",
"keycloakify": "^11",
"lodash-es": "^4.18.1",
"oidc-spa": "~10.0.5",
"oidc-spa": "~10.2.10",
"posthog-js": "^1",
"react": "^19",
"react-dom": "^19",
"react-hook-form": "^7.70.0",
"react-i18next": "^16.5.1",
"react-router-dom": "^6.30.3"
"react-router-dom": "^6.30.4"
},
"devDependencies": {
"@biomejs/biome": "^2.5.1",
"@chromatic-com/storybook": "5.2.1",
"@storybook/addon-a11y": "10.4.6",
"@storybook/addon-docs": "10.4.6",
"@storybook/addon-onboarding": "10.4.6",
"@storybook/addon-vitest": "10.4.6",
"@storybook/react": "10.4.6",
"@storybook/react-vite": "10.4.6",
"@biomejs/biome": "^2.5.9",
"@chromatic-com/storybook": "5.3.0",
"@storybook/addon-a11y": "10.5.9",
"@storybook/addon-docs": "10.5.9",
"@storybook/addon-onboarding": "10.5.9",
"@storybook/addon-vitest": "10.5.9",
"@storybook/react": "10.5.9",
"@storybook/react-vite": "10.5.9",
"@types/lodash-es": "^4.17.12",
"@types/node": "24.13.2",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.4",
"@vitejs/plugin-react": "^6",
"@vitest/browser": "4.1.9",
"@vitest/coverage-v8": "4.1.9",
"keycloakify-emails": "3.3.1",
"playwright": "1.61.1",
"storybook": "10.4.6",
"@vitest/browser": "4.1.11",
"@vitest/coverage-v8": "4.1.11",
"keycloakify-emails": "3.4.0",
"playwright": "1.62.1",
"storybook": "10.5.9",
"typescript": "5.9.3",
"vite": "8.1.0",
"vitest": "4.1.9"
"vite": "8.2.1",
"vitest": "4.1.11"
},
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"packageManager": "yarn@4.17.0"
"packageManager": "yarn@4.18.0",
"resolutions": {
"jsx-email/react-router-dom": "7.18.2"
}
Comment thread
blarghmatey marked this conversation as resolved.
Resolved
}
2 changes: 1 addition & 1 deletion public/keycloak-theme/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# === Owned files start ===
# === Owned files end =====

# === @keycloakify/keycloak-account-ui v260601.0.0 ===
# === @keycloakify/keycloak-account-ui v260700.0.3 ===
/account/early-color-scheme.js
160 changes: 157 additions & 3 deletions src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# === Owned files start ===
# === Owned files end =====

# === @keycloakify/keycloak-ui-shared v260601.0.0 ===
# === @keycloakify/keycloak-ui-shared v260700.0.2 ===
/shared/SessionExpirationWarningOverlay.tsx
/shared/keycloak-ui-shared/index.ts
/shared/keycloak-ui-shared/main.ts
Expand Down Expand Up @@ -73,12 +73,13 @@
/shared/keycloak-ui-shared/controls/table/PaginatingTableToolbar.tsx
/shared/keycloak-ui-shared/controls/table/TableToolbar.tsx

# === @keycloakify/keycloak-account-ui v260601.0.0 ===
# === @keycloakify/keycloak-account-ui v260700.0.3 ===
/account/api.ts
/account/colorScheme.ts
/account/environment.ts
/account/i18n-type.ts
/account/i18next.d.ts
/account/index.ts
/account/KcAccountUi.tsx
/account/KcContext.ts
/account/KcPage.tsx
Expand Down Expand Up @@ -140,9 +141,9 @@
/account/i18n/messages_th.properties
/account/i18n/messages_tr.properties
/account/i18n/messages_uk.properties
/account/i18n/messages_vi.properties
/account/i18n/messages_zh_Hans.properties
/account/i18n/messages_zh_Hant.properties
/account/oid4vci/Oid4Vci.tsx
/account/organizations/Organizations.tsx
/account/personal-info/PersonalInfo.tsx
/account/resources/EditTheResource.tsx
Expand All @@ -160,5 +161,158 @@
/account/utils/joinPath.ts
/account/utils/useAccountAlerts.ts
/account/utils/usePromise.ts
/account/verifiable-credentials/CredentialRow.tsx
/account/verifiable-credentials/IssuedCredentialsModal.tsx
/account/verifiable-credentials/UserAttributesDialog.tsx
/account/verifiable-credentials/VerifiableCredentials.tsx
/account/assets/passkeys/1password-dark.svg
/account/assets/passkeys/1password-light.svg
/account/assets/passkeys/acs-light.png
/account/assets/passkeys/aliasvault-light.svg
/account/assets/passkeys/allthenticator-light.png
/account/assets/passkeys/android-light.png
/account/assets/passkeys/apple-light.svg
/account/assets/passkeys/arculus-light.png
/account/assets/passkeys/atkey-light.png
/account/assets/passkeys/atkey1-light.png
/account/assets/passkeys/atkey2-light.png
/account/assets/passkeys/atkey4-light.png
/account/assets/passkeys/atlkey-light.png
/account/assets/passkeys/atos-light.png
/account/assets/passkeys/authenton1-light.png
/account/assets/passkeys/bitwarden-light.svg
/account/assets/passkeys/burp-light.svg
/account/assets/passkeys/cardos-light.png
/account/assets/passkeys/chipwon-light.png
/account/assets/passkeys/chrome-light.svg
/account/assets/passkeys/chunghwa-light.png
/account/assets/passkeys/crayonic-light.png
/account/assets/passkeys/cryptnox-light.png
/account/assets/passkeys/dapple-light.png
/account/assets/passkeys/dashlane-dark.svg
/account/assets/passkeys/dashlane-light.svg
/account/assets/passkeys/deepnet-light.png
/account/assets/passkeys/devolutions-light.svg
/account/assets/passkeys/edge-light.svg
/account/assets/passkeys/egomet-light.png
/account/assets/passkeys/ellipticsecure-light.png
/account/assets/passkeys/enpass-dark.svg
/account/assets/passkeys/enpass-light.svg
/account/assets/passkeys/ensurity-light.png
/account/assets/passkeys/ensurity1-light.png
/account/assets/passkeys/ensurity2-light.png
/account/assets/passkeys/ensurity3-light.png
/account/assets/passkeys/enterprise-light.svg
/account/assets/passkeys/ess-light.png
/account/assets/passkeys/ewbm-light.png
/account/assets/passkeys/excelsecu-light.png
/account/assets/passkeys/feitian-light.png
/account/assets/passkeys/fido-light.png
/account/assets/passkeys/fido1-light.png
/account/assets/passkeys/foongtone-light.png
/account/assets/passkeys/goldkey-light.png
/account/assets/passkeys/google-light.png
/account/assets/passkeys/google1-light.svg
/account/assets/passkeys/gotrust-light.png
/account/assets/passkeys/gstag-light.png
/account/assets/passkeys/heimlane-light.svg
/account/assets/passkeys/hid-light.png
/account/assets/passkeys/hideez-light.png
/account/assets/passkeys/hyper-light.png
/account/assets/passkeys/hyper1-light.png
/account/assets/passkeys/hypr-light.png
/account/assets/passkeys/icloud-dark.svg
/account/assets/passkeys/icloud-light.svg
/account/assets/passkeys/id-one-light.png
/account/assets/passkeys/ideem-light.png
/account/assets/passkeys/idemia-light.png
/account/assets/passkeys/idex-light.png
/account/assets/passkeys/idmelon-light.svg
/account/assets/passkeys/idmelon1-light.png
/account/assets/passkeys/iist-light.png
/account/assets/passkeys/initial-light.svg
/account/assets/passkeys/ipasswords-light.svg
/account/assets/passkeys/kaspersky-light.svg
/account/assets/passkeys/keepassdx-dark.svg
/account/assets/passkeys/keepassdx-light.svg
/account/assets/passkeys/keepassxc-dark.svg
/account/assets/passkeys/keepassxc-light.svg
/account/assets/passkeys/keeper-light.svg
/account/assets/passkeys/key-id-light.png
/account/assets/passkeys/keyvault-light.png
/account/assets/passkeys/keyxentic-light.png
/account/assets/passkeys/konai-light.png
/account/assets/passkeys/kqc-light.png
/account/assets/passkeys/lastpass-dark.svg
/account/assets/passkeys/lastpass-light.svg
/account/assets/passkeys/ledger-light.png
/account/assets/passkeys/logmeonce-dark.svg
/account/assets/passkeys/logmeonce-light.svg
/account/assets/passkeys/mettlesemi-light.png
/account/assets/passkeys/microsoft-light.svg
/account/assets/passkeys/neowave-light.png
/account/assets/passkeys/nitrokey-light.png
/account/assets/passkeys/nordpass-dark.svg
/account/assets/passkeys/nordpass-light.svg
/account/assets/passkeys/nxp-light.png
/account/assets/passkeys/nymi-light.png
/account/assets/passkeys/octatco-light.png
/account/assets/passkeys/onekey-light.png
/account/assets/passkeys/onespan-light.png
/account/assets/passkeys/onespan1-light.png
/account/assets/passkeys/onespan2-light.png
/account/assets/passkeys/onespan3-light.png
/account/assets/passkeys/onespan4-light.png
/account/assets/passkeys/onespan5-light.png
/account/assets/passkeys/onespan7-light.png
/account/assets/passkeys/onlykey-light.png
/account/assets/passkeys/opensk-light.png
/account/assets/passkeys/pone-light.png
/account/assets/passkeys/precision-light.png
/account/assets/passkeys/precision1-light.png
/account/assets/passkeys/precision2-light.png
/account/assets/passkeys/proton-light.svg
/account/assets/passkeys/pwsafe-light.svg
/account/assets/passkeys/rsa-light.png
/account/assets/passkeys/samsung-light.svg
/account/assets/passkeys/secora-light.png
/account/assets/passkeys/secora1-light.png
/account/assets/passkeys/securitag-light.png
/account/assets/passkeys/sentry-light.png
/account/assets/passkeys/sesame-light.svg
/account/assets/passkeys/shalo-light.png
/account/assets/passkeys/sherlocked-light.svg
/account/assets/passkeys/smartdisplayer-light.png
/account/assets/passkeys/solo-light.png
/account/assets/passkeys/starsign-light.png
/account/assets/passkeys/sticky-light.svg
/account/assets/passkeys/swissbit-light.png
/account/assets/passkeys/t-shield-light.png
/account/assets/passkeys/taglio-light.png
/account/assets/passkeys/thales-light.png
/account/assets/passkeys/thales1-dark.svg
/account/assets/passkeys/thales1-light.svg
/account/assets/passkeys/thales3-dark.svg
/account/assets/passkeys/thales3-light.svg
/account/assets/passkeys/thetis-light.png
/account/assets/passkeys/token-light.png
/account/assets/passkeys/token2-light.png
/account/assets/passkeys/toothpic-dark.svg
/account/assets/passkeys/toothpic-light.svg
/account/assets/passkeys/truu-light.png
/account/assets/passkeys/utrust-light.png
/account/assets/passkeys/valmido-light.png
/account/assets/passkeys/veridium-light.png
/account/assets/passkeys/verimark-light.png
/account/assets/passkeys/verimark1-light.png
/account/assets/passkeys/verocard-light.png
/account/assets/passkeys/vincss-light.png
/account/assets/passkeys/vivokey-light.png
/account/assets/passkeys/webcomm-light.png
/account/assets/passkeys/windows-light.svg
/account/assets/passkeys/winmagic-light.png
/account/assets/passkeys/yubikey-light.png
/account/assets/passkeys/zoho-light.svg
/account/assets/passkeys/ztpass-light.png
/account/components/datalist/EmptyRow.tsx
/account/components/page/Page.tsx
11 changes: 7 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineConfig } from "vite"
import { fileURLToPath } from "node:url"
import react from "@vitejs/plugin-react"
import type { BuildContext } from "keycloakify/bin/shared/buildContext"
import { keycloakify } from "keycloakify/vite-plugin"
import { buildEmailTheme } from "keycloakify-emails"
import { BuildContext } from "keycloakify/bin/shared/buildContext"
import { fileURLToPath } from "node:url"
import { defineConfig } from "vite"

const __dirname = fileURLToPath(new URL(".", import.meta.url))

Expand All @@ -14,7 +14,10 @@ export default defineConfig({
themeName: ["ol-learn", "ol-data-platform"],
accountThemeImplementation: "Single-Page",
keycloakVersionTargets: {
"22-to-25": true,
// We run Keycloak 26 exclusively. The 22-to-25 target only differs by
// bundling a LoginFormsProviderFactory shim that 26 does not need, and
// building it produces a second jar declaring the same theme names.
"22-to-25": false,
"all-other-versions": `keycloakify-theme_v11-21_and_v26plus.jar`
},
environmentVariables: [
Expand Down
Loading