Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2a296c0
chore: migrate from yarn to pnpm
timwessman Jun 1, 2026
f638345
feat: runtime env config, Node 24 and Helsinki base images
timwessman Jun 2, 2026
6903799
fix: restrict runtime env-config.js to VITE_ keys (no secret leakage)
timwessman Jun 2, 2026
b39d85d
build: temporaly ref to review pipeline
terovirtanen Jun 5, 2026
d4ab74d
chore: sync pnpm lockfile with main's vite 8 / vitest 4 bumps
timwessman Jun 5, 2026
6ace253
fix: parse boolean env vars correctly, fix OIDC scope error label
timwessman Jun 5, 2026
3e3adb8
build: trim Docker build context via .dockerignore
timwessman Jun 5, 2026
d343838
build: copy only build-needed files in Dockerfile
timwessman Jun 5, 2026
04c1e95
fix: sanitize env before copying to container
timwessman Jun 11, 2026
3ad5445
fix: set dev OIDC config for review env browser tests
timwessman Jun 11, 2026
c8f4dc4
build: removed temporal ref
timwessman Jun 11, 2026
b90ccab
chore: revert review pipeline configMap Refs: KK-1539
mikkojamG Jun 23, 2026
ff9a912
chore: cleanup Dockerfile Refs: KK-1539
mikkojamG Jun 23, 2026
7f60697
chore: remove unnecessary test-env-config Refs: KK-1539
mikkojamG Jun 23, 2026
f0d95fc
ci: temp pipeline ref: KK-1539
mikkojamG Jun 23, 2026
9120c6a
ci: .env file Refs: KK-1539
mikkojamG Jun 23, 2026
c6bcabf
ci: clean .env files Refs: KK-1539
mikkojamG Jun 23, 2026
cd2e9b4
ci: .env defaults Refs: KK-1539
mikkojamG Jun 23, 2026
f1b9a36
ci: remove unnecessary PORT env Refs: KK-1539
mikkojamG Jun 23, 2026
3808695
ci: remove env-config.js
mikkojamG Jun 23, 2026
882d217
ci: ignore env-config.js file Refs: KK-1539
mikkojamG Jun 23, 2026
c5d3613
chore: bump pnpm Refs: KK-1539
mikkojamG Jun 26, 2026
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
49 changes: 46 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,55 @@
# Keep the build context small and the appbase/staticbuilder layers cache-stable:
# only src/, index.html, public/, scripts/ and the build configs are needed for
# `pnpm build` (tsconfig "include" is just ["src"]). Everything excluded here is
# outside the production build graph.

# Dependencies & build output (reinstalled/regenerated in the image)
node_modules
build
npm-debug.log
.eslintcache

# Docker / compose (not needed inside the image)
Dockerfile*
docker-compose*
compose.*
.dockerignore

# VCS & editor
.git
.gitignore
README.md
LICENSE
.vscode
build

# Local env files that may contain secrets. The image gets its config at runtime
# (env.sh) and its key template from .env.example — never bake local secrets into
# an image layer.
*.local

# Docs, CI/CD and repo meta — not part of the production build
README.md
LICENSE.md
CHANGELOG.md
CODEOWNERS
docs
.github
pipelines

# Tests & test tooling (the build only compiles src/)
tests
browser-tests
.testcaferc.json

# GraphQL codegen (run separately, not during the production build)
codegen.ts
apollo.config.js

# Lint / commit / release tooling (git-hook & release-time only)
.husky
lint-staged.config.js
commitlint.config.cjs
release-please-config.json
.release-please-manifest.json

# Quality reports
sonar-project.properties
sonar-report.json
15 changes: 8 additions & 7 deletions .env.example → .env
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# This file is for using public test environments of
# Kukkuu backend, Helsinki Profile and Keycloak.
PORT=3001
VITE_OIDC_SERVER_TYPE=KEYCLOAK
VITE_OIDC_RETURN_TYPE="code"
VITE_OIDC_AUTHORITY=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus/
VITE_OIDC_CLIENT_ID="kukkuu-admin-ui-test"
VITE_OIDC_KUKKUU_API_CLIENT_ID="kukkuu-api-test"
VITE_OIDC_SCOPE="openid profile email"
VITE_OIDC_AUDIENCES=kukkuu-api-test
VITE_OIDC_AUTOMATIC_SILENT_RENEW_ENABLED=true
VITE_API_URI=https://kukkuu.api.test.hel.ninja/graphql
VITE_IS_TEST_ENVIRONMENT=0
VITE_IDLE_TIMEOUT_IN_MS=3600000

BROWSER_TESTS_UID=
BROWSER_TESTS_PWD=
BROWSER_TESTS_ENV_URL=http://localhost:3001
VITE_SENTRY_TRACES_SAMPLE_RATE=
VITE_SENTRY_REPLAYS_SESSION_SAMPLE_RATE=
VITE_SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE=
VITE_SENTRY_DSN=
VITE_SENTRY_ENVIRONMENT=
VITE_SENTRY_TRACE_PROPAGATION_TARGETS=
VITE_CSP_REPORT_URI=
3 changes: 0 additions & 3 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file is for using a local Kukkuu backend, and the
# public test environments of Helsinki Profile and Keycloak.
PORT=3001
VITE_OIDC_SERVER_TYPE=KEYCLOAK
VITE_OIDC_RETURN_TYPE="code"
VITE_OIDC_AUTHORITY=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus/
Expand Down
2 changes: 0 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
PORT=3001
VITE_OIDC_AUDIENCES=kukkuu-api-dev
VITE_OIDC_AUTHORITY=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus/
VITE_OIDC_CLIENT_ID=kukkuu-admin-ui-dev
VITE_OIDC_KUKKUU_API_CLIENT_ID=kukkuu-api-dev
VITE_OIDC_RETURN_TYPE=code
VITE_OIDC_SCOPE="openid profile email"
VITE_OIDC_SERVER_TYPE=KEYCLOAK
# VITE_API_URI=https://kukkuu.api.test.hel.ninja/graphql
VITE_API_URI=http://localhost:8081/graphql
VITE_IS_TEST_ENVIRONMENT=0
VITE_IDLE_TIMEOUT_IN_MS=3600000
Expand Down
1 change: 0 additions & 1 deletion .env.test.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ VITE_OIDC_KUKKUU_API_CLIENT_ID="kukkuu-api-dev"
VITE_OIDC_CLIENT_ID="kukkuu-admin-ui-dev"
VITE_OIDC_AUTHORITY=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus/
VITE_API_URI=http://localhost:8081/graphql

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src/domain/api/generatedTypes/graphql.tsx
build/*
public/env-config.js
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
uses: City-of-Helsinki/.github/.github/workflows/ci-pnpm-node.yml@main
secrets: inherit
with:
node-version: 20
node-version: 24
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
# production
/build

# runtime env config generated by scripts/update-runtime-env.ts
public/env-config.js

# misc
.DS_Store
.eslintcache
.env.local
.env.development.local
.env.test.local
Expand All @@ -22,13 +26,15 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
.yarn/
.yarnrc.yml

# browser test screenshots
screenshots
report

# don't store these .env files in version control
.env
.env.development
.env.production

Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
yarn doctoc .
yarn lint-staged --relative
pnpm doctoc .
pnpm lint-staged --relative
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.19.5
v24.15.0
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.yarn
graphql.ts
graphql.tsx
graphql.tsx
public/env-config.js
52 changes: 0 additions & 52 deletions .prod/nginx.conf.template

This file was deleted.

29 changes: 12 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,40 @@

## [4.3.0](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.7...kukkuu-admin-v4.3.0) (2026-06-11)


### Features

* Migrate kukkuu admin yarn to pnpm ([f5e2734](https://github.com/City-of-Helsinki/kukkuu-admin/commit/f5e273498b070051842dcbefa23806d44af68496))
- Migrate kukkuu admin yarn to pnpm ([f5e2734](https://github.com/City-of-Helsinki/kukkuu-admin/commit/f5e273498b070051842dcbefa23806d44af68496))

## [4.2.7](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.6...kukkuu-admin-v4.2.7) (2026-06-04)


### Dependencies

* Bump axios from 1.15.2 to 1.16.0 ([79204b7](https://github.com/City-of-Helsinki/kukkuu-admin/commit/79204b728675752f05c470acc9b4e845b46c9dce))
* Bump vitest from 3.2.4 to 4.1.0 ([885459e](https://github.com/City-of-Helsinki/kukkuu-admin/commit/885459ed1b46f84775f37f86101298d481a01860))
* Vite 8 migration required for vitest ([43d1d0d](https://github.com/City-of-Helsinki/kukkuu-admin/commit/43d1d0d660b05727ed36049561db8176cb06f9b7))
- Bump axios from 1.15.2 to 1.16.0 ([79204b7](https://github.com/City-of-Helsinki/kukkuu-admin/commit/79204b728675752f05c470acc9b4e845b46c9dce))
- Bump vitest from 3.2.4 to 4.1.0 ([885459e](https://github.com/City-of-Helsinki/kukkuu-admin/commit/885459ed1b46f84775f37f86101298d481a01860))
- Vite 8 migration required for vitest ([43d1d0d](https://github.com/City-of-Helsinki/kukkuu-admin/commit/43d1d0d660b05727ed36049561db8176cb06f9b7))

## [4.2.6](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.5...kukkuu-admin-v4.2.6) (2026-05-11)


### Dependencies

* Bump @babel/plugin-transform-modules-systemjs ([1e3f286](https://github.com/City-of-Helsinki/kukkuu-admin/commit/1e3f2866726349dd5706f76a25f3afff635247a9))
* Bump axios from 1.15.0 to 1.15.2 ([adf5e91](https://github.com/City-of-Helsinki/kukkuu-admin/commit/adf5e914a006614951c741d6937ee3830db24b6b))
* Bump fast-uri from 3.1.0 to 3.1.2 ([96c7236](https://github.com/City-of-Helsinki/kukkuu-admin/commit/96c7236ba1f0f2e1d63e540b85fa77fe923079e2))
* Bump postcss from 8.5.9 to 8.5.14 ([8a7a355](https://github.com/City-of-Helsinki/kukkuu-admin/commit/8a7a3555f8159ca2ceb2461d64f1483802077d4e))
- Bump @babel/plugin-transform-modules-systemjs ([1e3f286](https://github.com/City-of-Helsinki/kukkuu-admin/commit/1e3f2866726349dd5706f76a25f3afff635247a9))
- Bump axios from 1.15.0 to 1.15.2 ([adf5e91](https://github.com/City-of-Helsinki/kukkuu-admin/commit/adf5e914a006614951c741d6937ee3830db24b6b))
- Bump fast-uri from 3.1.0 to 3.1.2 ([96c7236](https://github.com/City-of-Helsinki/kukkuu-admin/commit/96c7236ba1f0f2e1d63e540b85fa77fe923079e2))
- Bump postcss from 8.5.9 to 8.5.14 ([8a7a355](https://github.com/City-of-Helsinki/kukkuu-admin/commit/8a7a3555f8159ca2ceb2461d64f1483802077d4e))

## [4.2.5](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.4...kukkuu-admin-v4.2.5) (2026-04-23)


### Dependencies

* Bump follow-redirects from 1.15.11 to 1.16.0 ([ec53e69](https://github.com/City-of-Helsinki/kukkuu-admin/commit/ec53e69e268ed40fe76059641b43ba3bdea74153))
- Bump follow-redirects from 1.15.11 to 1.16.0 ([ec53e69](https://github.com/City-of-Helsinki/kukkuu-admin/commit/ec53e69e268ed40fe76059641b43ba3bdea74153))

## [4.2.4](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.3...kukkuu-admin-v4.2.4) (2026-04-15)


### Dependencies

* Bump axios from 1.13.5 to 1.15.0 ([3f128bb](https://github.com/City-of-Helsinki/kukkuu-admin/commit/3f128bb4b2d136255218916aff6295f733f8cf19))
* Bump vite from 6.4.1 to 6.4.2 ([4e9d83f](https://github.com/City-of-Helsinki/kukkuu-admin/commit/4e9d83fdd587b4f121ade218a52676a0f8e9ce49))
* Update vulnerable packages ([c188e40](https://github.com/City-of-Helsinki/kukkuu-admin/commit/c188e40850420117949d6a54d41dd23a65dca56a))
- Bump axios from 1.13.5 to 1.15.0 ([3f128bb](https://github.com/City-of-Helsinki/kukkuu-admin/commit/3f128bb4b2d136255218916aff6295f733f8cf19))
- Bump vite from 6.4.1 to 6.4.2 ([4e9d83f](https://github.com/City-of-Helsinki/kukkuu-admin/commit/4e9d83fdd587b4f121ade218a52676a0f8e9ce49))
- Update vulnerable packages ([c188e40](https://github.com/City-of-Helsinki/kukkuu-admin/commit/c188e40850420117949d6a54d41dd23a65dca56a))

## [4.2.3](https://github.com/City-of-Helsinki/kukkuu-admin/compare/kukkuu-admin-v4.2.2...kukkuu-admin-v4.2.3) (2026-03-23)

Expand Down
Loading
Loading