Skip to content

web: restore sidebar markup, fix the notifications import cycle, and type-check tests - #27681

Merged
GirlBossRush merged 8 commits into
mainfrom
web/admin-sidebar-aria-expanded
Nov 10, 2026
Merged

GirlBossRush merged 8 commits into
mainfrom
web/admin-sidebar-aria-expanded

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Details

This PR restores the sidebar markup that the #27319 merge reverted, and fixes the build and test issues found along the way.

  • Restore aria-expanded on the sidebar toggle and nest child rows in a subnav list
  • Move the notification drawer panel into its own module to break an import cycle that crashed the admin interface
  • Let unit tests import Lit elements: compile legacy decorators and install @lit-labs/ssr-dom-shim globals
  • Fix lint warnings
  • Reference browser globals directly instead of through window or self; declare timers as returning a number
  • Remove every dev request middleware listener on dispose
  • Add tsconfig.unit.json, run build:types against it, and fix the type errors it exposes in colocated tests

@GirlBossRush
GirlBossRush marked this pull request as ready for review November 6, 2026 17:42
@GirlBossRush
GirlBossRush requested a review from a team as a code owner November 6, 2026 17:42
@GirlBossRush GirlBossRush self-assigned this Nov 6, 2026
@netlify

netlify Bot commented Nov 6, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 261ce36
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aee1168952aa92e200411f4
😎 Deploy Preview https://deploy-preview-27681--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.04%. Comparing base (16a86a3) to head (d78f365).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

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           
Flag Coverage Δ
conformance 30.38% <ø> (+<0.01%) ⬆️
e2e 35.05% <ø> (+<0.01%) ⬆️
integration 27.88% <ø> (-0.01%) ⬇️
rust 51.12% <ø> (ø)
unit 94.57% <ø> (+<0.01%) ⬆️
unit-migrate 94.58% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download 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-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-distroless

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush
GirlBossRush force-pushed the web/admin-sidebar-aria-expanded branch 3 times, most recently from e659726 to f9530fe Compare November 10, 2026 15:24
@netlify

netlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit baa038d
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6af3432860ddfcf0344ae5bd
😎 Deploy Preview https://deploy-preview-27681--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush changed the title web/elements: restore sidebar toggle expanded state and nested sublists web: restore sidebar markup, fix the notifications import cycle, and type-check tests Nov 10, 2026
GirlBossRush and others added 4 commits November 10, 2026 16:38
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.
@GirlBossRush
GirlBossRush force-pushed the web/admin-sidebar-aria-expanded branch 2 times, most recently from 48cd988 to 6457ca2 Compare November 10, 2026 17:06
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Nov 10, 2026
@GirlBossRush GirlBossRush added this to the Release 2026.11.0 milestone Nov 10, 2026
@GirlBossRush
GirlBossRush enabled auto-merge (squash) November 10, 2026 18:18
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.
@GirlBossRush
GirlBossRush force-pushed the web/admin-sidebar-aria-expanded branch from 3fdd8ec to d78f365 Compare November 10, 2026 23:09
@GirlBossRush
GirlBossRush merged commit 9f3edaa into main Nov 10, 2026
170 checks passed
@GirlBossRush
GirlBossRush deleted the web/admin-sidebar-aria-expanded branch November 10, 2026 23:29
kensternberg-authentik added a commit that referenced this pull request Nov 11, 2026
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants