Repository navigation
web: restore sidebar markup, fix the notifications import cycle, and type-check tests - #27681
Conversation
✅ 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 #27681 +/- ##
=======================================
Coverage 93.04% 93.04%
=======================================
Files 1237 1237
Lines 86355 86355
Branches 4894 4894
=======================================
+ Hits 80350 80351 +1
+ Misses 5918 5917 -1
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 42920951797 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-d78f365690ddde3a8085e0907b86720da0946c40
# Distroless image: AUTHENTIK_TAG=gh-d78f365690ddde3a8085e0907b86720da0946c40-distroless
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-d78f365690ddde3a8085e0907b86720da0946c40
# Distroless image: tag: gh-d78f365690ddde3a8085e0907b86720da0946c40-distrolessAfterwards, run the upgrade commands from the latest release notes. |
e659726 to
f9530fe
Compare
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The breadcrumb controller merge (#27319) reverted the sidebar structure from #27289, moving aria-expanded back onto the list item and flattening child rows. Restore the nested subnav list, keep aria-expanded on the toggle, and keep the whole section button as the toggle when a group has no link of its own. Co-authored-by: Ken Sternberg <[email protected]>
The WithNotifications mixin imports the notification utilities, so registering the drawer elements there created an import cycle that crashed the admin interface on load. Render the panel from its own module instead.
Compile legacy decorators in the unit project, which skips tsconfig discovery, and install @lit-labs/ssr-dom-shim globals so element modules load under Node.
48cd988 to
6457ca2
Compare
Drop the self and globalThis prefixes, and use window for browser-specific APIs such as window.location, window.open, window.postMessage and the window event listener methods. ShadyDOM patches the window event methods and reads `this`, so bare calls from modules break compatibility mode. Declare setTimeout and setInterval as returning a number, since @types/node is always in the program and its timers return Timeout.
Dispose only removed the hashchange listener, leaving the refresh and click listeners attached.
Add the tsconfig.unit.json the unit project already referenced, run build:types against it, and fix the type errors it exposes.
3fdd8ec to
d78f365
Compare
* main: (893 commits) admin: fix exception when getting postgres version (#27747) core: bump axllent/mailpit from v1.33.0 to v1.33.1 in /tests/e2e (#27762) core: bump mypy from 2.3.1 to 2.4.1 (#27768) core: bump arc-swap from 1.9.3 to 1.9.4 (#27764) core: bump jsonpatch from 1.39 to 1.41 (#27769) core: bump goauthentik/fips-python from `85ced56` to `5b3692f` in /lifecycle/container (#27763) ci: bump taiki-e/install-action from 2.90.2 to 2.90.3 in /.github/actions/setup (#27765) web: pluralize count messages and centralize bulk action wording (#27579) web: restore sidebar markup, fix the notifications import cycle, and type-check tests (#27681) core: bump types-docker from 7.2.0.20261006 to 7.2.0.20261102 in the types group (#27727) website/integrations: add opencode (#27724) packages/django-channels-postgres: skip expired group channels in group_send (#27717) stages/prompt: use stable metric label for validation policy engine (#27735) core: bump djangorestframework-stubs[compatible-mypy] from 3.18.1 to 3.18.2 (#27671) core: bump importlib-metadata from 9.1.0 to 10.1.0 (#27731) core: bump pydantic from 2.14.2 to 2.14.3 (#27733) core: bump uuid from 1.29.0 to 1.29.1 (#27729) bump twisted from 26.4.0 to 26.10.0 (#27734) core: bump psycopg[c,pool] from 3.3.7 to 3.3.8 (#27730) core: bump goauthentik/fips-python from `c6a5b40` to `85ced56` in /lifecycle/container (#27726) ...
Details
This PR restores the sidebar markup that the #27319 merge reverted, and fixes the build and test issues found along the way.
aria-expandedon the sidebar toggle and nest child rows in asubnavlist@lit-labs/ssr-dom-shimglobalswindoworself; declare timers as returning a numbertsconfig.unit.json, runbuild:typesagainst it, and fix the type errors it exposes in colocated tests