Repository navigation
web: build system had some legacy stuff that I found confusing while working on the CSS ordering - #20698
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20698 +/- ##
=======================================
Coverage 92.26% 92.26%
=======================================
Files 1032 1032
Lines 59658 59658
Branches 2537 2537
=======================================
+ Hits 55045 55046 +1
+ Misses 4548 4547 -1
Partials 65 65
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
| * @see {@link https://github.com/evanw/esbuild/blob/b914dd30294346aa15fcc04278f4b4b51b8b43b5/internal/logger/msg_ids.go#L211 ESBuild source} | ||
| * @expires 2025-08-11 | ||
| */ | ||
| "invalid-source-url": "silent", |
There was a problem hiding this comment.
This is part of what inspired the check. I saw this "expiration" note and dug in. It's not needed anymore.
| ...BASE_ESBUILD_OPTIONS, | ||
| entryPoints, | ||
| plugins, | ||
| }; |
There was a problem hiding this comment.
These are the things that we modify with our current ESBuildOptions: entrypoints, and plugins. We should be explicit about that. Until our mods get so large we can't keep track of them, in which case we need a different build system.
|
|
||
| const entryPointNames = Object.keys(EntryPoint); | ||
| const entryPoints = Object.values(EntryPoint); | ||
| const entryPointsDescription = entryPointNames.join("\n\t"); |
There was a problem hiding this comment.
In "store vs. calculate" thinking, the repeated use of these expressions had the potential to lead to Last Line problems, so I pulled them out and gave them names.
| * @type {Readonly<BuildOptions>} | ||
| * @type {Plugin[]} | ||
| */ | ||
| const BASE_ESBUILD_PLUGINS = [ |
There was a problem hiding this comment.
Pulled this out and gave it its own identity so that ESBuildOptions() could be explicit about annotation. The big win here is that deepmerge will perform concatenation, but that's not clear; a dev in the future who assumes it does something more clever may end up with duplicate plugins. By bringing the concatenation into view, we reduce that possibility.
| tests/openid_conformance/exports/*.zip | ||
| compose.override.yml | ||
|
|
||
| ### LLMs and "coding assistants" ### |
There was a problem hiding this comment.
This was just necessary. Don't store slop sessions in our code.
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-d07b1056cb29fcd5562f47559ec29ff4d6a4651b
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-d07b1056cb29fcd5562f47559ec29ff4d6a4651bAfterwards, run the upgrade commands from the latest release notes. |
* main: (50 commits) web/flow/stages: permit the form handler to look in the light or shadowDOM for controls (#20832) web/style/flow: flow css barrel file (#20833) web/flow: provide labels for the stage import-and-invoke table (#20834) core: bump goauthentik/fips-python from `3636935` to `46b26b8` in /lifecycle/container (#20842) core: bump library/nginx from `0236ee0` to `d0913a1` in /website (#20843) core, web: update translations (#20835) core: bump goauthentik/fips-debian from `0975985` to `2517845` in /lifecycle/container (#20841) core: bump twilio from 9.10.2 to 9.10.3 (#20838) core: bump aws-cdk-lib from 2.241.0 to 2.242.0 (#20840) ci: bump astral-sh/setup-uv from 7.3.1 to 7.4.0 in /.github/actions/setup (#20844) providers/SCIM: Add discover support (#20658) core: allow interfaces to specify alternative stylesheets (#20774) website/docs: update agent docs (#20782) core, web: update translations (#20809) lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810) core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811) core: bump cachetools from 7.0.4 to 7.0.5 (#20812) core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814) core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815) web: bump the storybook group across 1 directory with 5 updates (#20816) ...
* main: (455 commits) web/e2e: accept options in NavigatorFixture.waitForPathname (#21507) web/styles: switch to upstream RedHat variable fonts and brighten orange palette (#21509) web/styles: add ak-c-loading-skeleton CSS component (#21510) core, web: update translations (#21532) core: bump lxml from 6.0.2 to 6.0.3 (#21523) core: bump library/node from `45babd1` to `9707cd4` in /lifecycle/container (#21522) tasks: better error message for Retry exceptions (#18235) web/admin: fix user list avatar (#21531) core: bump django from v5.2.12 to 5.2.13 (#21520) core: add cooldown to dependabot (#21286) web/admin: include avatar in user list page (#21518) events: add index on Event.user.pk (#19576) ci: always run apt update (#21516) enterprise/search: move QL to open source] (#21484) core: add logging when session decode fails (#21514) website/docs: Refactor email configuration (#21130) core: bump types-ldap3 from 2.9.13.20260402 to 2.9.13.20260408 (#21493) packages/ak-common/db: init (#21357) packages/ak-axum/extract/host: init (#21323) web: bump knip from 6.3.0 to 6.3.1 in /web (#21505) ...
…nt-2026-03-03' into web/build-system/lint-2026-03-03 * refs/remotes/origin/web/build-system/lint-2026-03-03:
* main: core: bump ruff from 0.15.9 to 0.15.10 (#21559) core: bump types-jwcrypto from 1.5.0.20260408 to 1.5.7.20260409 (#21561) core: bump lxml from 6.0.3 to 6.0.4 (#21560) ci: bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#21566) ci: bump docker/build-push-action from 7.0.0 to 7.1.0 (#21563) ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#21565) core: bump library/golang from `da39430` to `c0074c7` in /lifecycle/container (#21567) ci: bump taiki-e/install-action from 2.75.1 to 2.75.5 in /.github/actions/setup (#21569) web: bump mermaid from 11.13.0 to 11.14.0 in /web (#21527) core, web: update translations (#21552) web: bump basic-ftp from 5.2.1 to 5.2.2 in /web (#21543) web: User Wizard, Modal Revisions Merge Branch (#21336) web/elements: default @listen target to host element and add split-button Dropdown (#21512)
* main: web: build system had some legacy stuff that I found confusing while working on the CSS ordering (#20698) core: bump ruff from 0.15.9 to 0.15.10 (#21559) core: bump types-jwcrypto from 1.5.0.20260408 to 1.5.7.20260409 (#21561) core: bump lxml from 6.0.3 to 6.0.4 (#21560) ci: bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#21566) ci: bump docker/build-push-action from 7.0.0 to 7.1.0 (#21563) ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#21565) core: bump library/golang from `da39430` to `c0074c7` in /lifecycle/container (#21567) ci: bump taiki-e/install-action from 2.75.1 to 2.75.5 in /.github/actions/setup (#21569) web: bump mermaid from 11.13.0 to 11.14.0 in /web (#21527) core, web: update translations (#21552) web: bump basic-ftp from 5.2.1 to 5.2.2 in /web (#21543) web: User Wizard, Modal Revisions Merge Branch (#21336) web/elements: default @listen target to host element and add split-button Dropdown (#21512) ci: parallel tests (#21515) website/docs: add another sentence to First Steps about restricting access to apps (#21517) web/elements: add scrollbar helpers and apply to Interface (#21511) web/elements: add viewport helpers and extend intersection observer (#21508)
web: replace deepmerge with more explicit configuration; 'build --proxy' misnamed, changed to 'build -styles-only
make web)