Skip to content

web/elements: vendor sidebar and add icons - #27289

Merged
kensternberg-authentik merged 2 commits into
mainfrom
web/elements/sidebar-grid-control
Nov 5, 2026
Merged

kensternberg-authentik merged 2 commits into
mainfrom
web/elements/sidebar-grid-control

Conversation

@kensternberg-authentik

Copy link
Copy Markdown
Contributor

web/admin: Put icons in the sidebar.

Description

This commit updates the Sidebar to have icons next to top-level headers.

What

  1. Add icons to AdminSidebarEntries. The type of SidebarItem and SidebarEntry have been updated to support this change.
  2. Add a unit test to Admin to validate that every SidebarItem we generate has a path or children. This is not an exclusive-or; it allows for both. I’m leaving room for another feature. 😈
  3. Bring the entirety of the sidebar into a new namespace, ak-c-sidebar. It is now vendored. Anything we weren’t using, I’ve thrown overboard.
  4. Each row is now a grid with very solid definitions for the width of the icon and the toggle; the label is given the rest of the horizontal space. This lets us define both the icon and the “rail” (movement/reassurance indicator) and position them perfectly without having to invoke pixels at our end.
  5. Update the renderers to produce three different kinds of navigation rows: links, toggles, and toggle-plus-link.

It's very pretty:

image ---

Checklist

  • [🍾] The project has been linted, built, and tested (make all)
  • [🍾] The documentation has been updated and formatted (make docs)
  • [🍾] I have read the AI usage policy.

@kensternberg-authentik
kensternberg-authentik marked this pull request as ready for review October 27, 2026 23:37
@kensternberg-authentik
kensternberg-authentik requested a review from a team as a code owner October 27, 2026 23:37
@netlify

netlify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 80ebdc0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aeb9e06f5b4a1a358e44c90
😎 Deploy Preview https://deploy-preview-27289--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 Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.99%. Comparing base (7961cc5) to head (8aed8b0).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #27289   +/-   ##
=======================================
  Coverage   92.99%   92.99%           
=======================================
  Files        1227     1227           
  Lines       85319    85319           
  Branches     4894     4894           
=======================================
  Hits        79340    79340           
  Misses       5892     5892           
  Partials       87       87           
Flag Coverage Δ
conformance 30.55% <ø> (+<0.01%) ⬆️
e2e 35.28% <ø> (+<0.01%) ⬆️
integration 28.03% <ø> (+0.01%) ⬆️
rust 51.12% <ø> (ø)
unit 94.52% <ø> (+<0.01%) ⬆️
unit-migrate 94.53% <ø> (ø)

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 Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 41920281098 -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-8aed8b01a69cac373747c7ee99c9220bed7d1602
# Distroless image: AUTHENTIK_TAG=gh-8aed8b01a69cac373747c7ee99c9220bed7d1602-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-8aed8b01a69cac373747c7ee99c9220bed7d1602
        # Distroless image: tag: gh-8aed8b01a69cac373747c7ee99c9220bed7d1602-distroless

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

@kensternberg-authentik
kensternberg-authentik enabled stacked auto-merge (squash) November 4, 2026 15:48
@kensternberg-authentik
kensternberg-authentik disabled stacked auto-merge November 4, 2026 15:48
@GirlBossRush
GirlBossRush added this pull request to stack #27623 November 4, 2026 20:59
@GirlBossRush
GirlBossRush force-pushed the web/elements/sidebar-grid-control branch from df54f7a to 80ebdc0 Compare November 4, 2026 21:05
@kensternberg-authentik
kensternberg-authentik merged commit eebd7de into main Nov 5, 2026
171 checks passed
@kensternberg-authentik
kensternberg-authentik deleted the web/elements/sidebar-grid-control branch November 5, 2026 18:17
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
…b-controller' into web/admin/breadcrumb-controller

* refs/remotes/origin/web/admin/breadcrumb-controller: (214 commits)
  The updated format for crumbs required an update to the unit tests.
  web/admin: Add a Breadcrumb context manager to the navigation suite
  Adding the Breadcrumbs visual component.
  Revised naming code to track certain features.
  web/elements: vendor sidebar and add icons (#27289)
  providers/oauth2: don't set state in responses if not supplied (#9735)
  web/elements: expansion visual hierarchy (#27562)
  providers/oauth2: accept ML-DSA keys for DPoP (#27174)
  website/docs: draft 2026.11 release notes (#26814)
  sources/ldap: store the directory date when resetting a password (#27578)
  events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102)
  web/admin: fix ldap source parent group form (#26421)
  stages/prompt: preserve empty initial values (#25148)
  core: batch expired cache and channel record cleanup (#27587)
  web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598)
  ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630)
  core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626)
  ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628)
  ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629)
  ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627)
  ...
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
…k-controller

* web/admin/breadcrumb-controller: (215 commits)
  Changes requested by reviewer (@GirlBossRush).
  The updated format for crumbs required an update to the unit tests.
  web/admin: Add a Breadcrumb context manager to the navigation suite
  Adding the Breadcrumbs visual component.
  Revised naming code to track certain features.
  web/elements: vendor sidebar and add icons (#27289)
  providers/oauth2: don't set state in responses if not supplied (#9735)
  web/elements: expansion visual hierarchy (#27562)
  providers/oauth2: accept ML-DSA keys for DPoP (#27174)
  website/docs: draft 2026.11 release notes (#26814)
  sources/ldap: store the directory date when resetting a password (#27578)
  events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102)
  web/admin: fix ldap source parent group form (#26421)
  stages/prompt: preserve empty initial values (#25148)
  core: batch expired cache and channel record cleanup (#27587)
  web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598)
  ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630)
  core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626)
  ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628)
  ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629)
  ...
GirlBossRush added a commit that referenced this pull request Nov 10, 2026
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]>
GirlBossRush added a commit that referenced this pull request Nov 10, 2026
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]>
GirlBossRush added a commit that referenced this pull request Nov 10, 2026
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]>
GirlBossRush added a commit that referenced this pull request Nov 10, 2026
…type-check tests (#27681)

* web/elements: restore sidebar toggle expanded state and nested sublists

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

* web/components: move the drawer panel into its own module

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.

* web: let unit tests import Lit elements

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.

* web: fix lint warnings

* web: reference browser globals directly

Drop the self and globalThis prefixes in favour of bare globals, and use window for browser-specific APIs such as window.location, window.open and window.postMessage. Declare setTimeout and setInterval as returning a number, since @types/node is always in the program and its timers return Timeout.

* web/common: remove the dev request middleware's listeners on dispose

Dispose only removed the hashchange listener, leaving the refresh and click listeners attached.

* web: type-check colocated tests

Add the tsconfig.unit.json the unit project already referenced, run build:types against it, and fix the type errors it exposes.

* Fix lint.

---------

Co-authored-by: Ken Sternberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants