Skip to content

web/elements: re-arrange sidebar footer dependency - #27033

Merged
GirlBossRush merged 3 commits into
mainfrom
web/elements/sidebar-footer-dependency
Oct 27, 2026
Merged

GirlBossRush merged 3 commits into
mainfrom
web/elements/sidebar-footer-dependency

Conversation

@kensternberg-authentik

Copy link
Copy Markdown
Contributor

web/element: Move the SidebarVersion out of Elements.

What

This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed VersionDetails.

Why

SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does not need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project.

Details

SidebarVersion had a lot of aria that wasn’t necessary. The aria-labels overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using <span> and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout.

aria-controls in the Interface pointed at nothing, because it was referencing an id that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place.

The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed.

The hover styling has been moved into SidebarVersion explicitly.

VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its exportparts.

@patterfly-element/pfe-core has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it.

The check-for-undefined in the VersionDetails renderer did nothing; we already check if this.version is defined, and if it is, versionCurrent is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈

Since we’re exposing [part] names for styleability, I’ve changed the class names inside VersionDetails into [part~=] selectors. We’re not performance-bound, and it reduced the clutter.

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 19, 2026 22:23
@kensternberg-authentik
kensternberg-authentik requested a review from a team as a code owner October 19, 2026 22:23
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 35ec851
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6ada4379b4c03c63cc507774
😎 Deploy Preview https://deploy-preview-27033--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.

@netlify

netlify Bot commented Oct 19, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6ecd5f1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ad6985d31f134d5200acf74
😎 Deploy Preview https://deploy-preview-27033--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 19, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27033      +/-   ##
==========================================
+ Coverage   92.36%   92.41%   +0.04%     
==========================================
  Files        1192     1192              
  Lines       80462    80462              
  Branches     4351     4351              
==========================================
+ Hits        74319    74357      +38     
+ Misses       6077     6039      -38     
  Partials       66       66              
Flag Coverage Δ
conformance 32.29% <ø> (-0.01%) ⬇️
e2e 36.97% <ø> (+0.39%) ⬆️
integration 29.19% <ø> (+<0.01%) ⬆️
rust 44.42% <ø> (ø)
unit 94.06% <ø> (+<0.01%) ⬆️
unit-migrate 94.06% <ø> (+<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 Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

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

gh run download 40448521731 -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-c27929f03f3085eb82025fc3d0c411a50d884553
# Distroless image: AUTHENTIK_TAG=gh-c27929f03f3085eb82025fc3d0c411a50d884553-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-c27929f03f3085eb82025fc3d0c411a50d884553
        # Distroless image: tag: gh-c27929f03f3085eb82025fc3d0c411a50d884553-distroless

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

@GirlBossRush GirlBossRush self-assigned this Oct 20, 2026
@GirlBossRush
GirlBossRush self-requested a review October 20, 2026 04:21
@GirlBossRush GirlBossRush added a11y Features or issues related to accessibility area:frontend Features or issues related to the browser, TypeScript, Node.js, etc labels Oct 20, 2026
@BeryJu BeryJu changed the title Web/elements: re-arrange sidebar footer dependency web/elements: re-arrange sidebar footer dependency Oct 20, 2026
@kensternberg-authentik
kensternberg-authentik changed the base branch from main to web/sidebar/validate-sidebar-entries October 22, 2026 17:30
@kensternberg-authentik
kensternberg-authentik force-pushed the web/elements/sidebar-footer-dependency branch from d9515af to 66bc448 Compare October 23, 2026 13:36
@GirlBossRush
GirlBossRush force-pushed the web/elements/sidebar-footer-dependency branch 3 times, most recently from 4c94a35 to 1885c31 Compare October 27, 2026 03:29
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Oct 27, 2026
@GirlBossRush
GirlBossRush force-pushed the web/elements/sidebar-footer-dependency branch from 53dc00d to 4e79b4a Compare October 27, 2026 04:03
Base automatically changed from web/sidebar/validate-sidebar-entries to main October 27, 2026 04:13
# What

This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`.

# Why

SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project.

# Details

SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout.

`aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place.

The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed.

The hover styling has been moved into SidebarVersion explicitly.

VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`.

`@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it.

The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈

Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter.
@GirlBossRush
GirlBossRush force-pushed the web/elements/sidebar-footer-dependency branch from 4e79b4a to c27929f Compare October 27, 2026 04:13
@GirlBossRush
GirlBossRush merged commit 39b0497 into main Oct 27, 2026
288 of 290 checks passed
@GirlBossRush
GirlBossRush deleted the web/elements/sidebar-footer-dependency branch October 27, 2026 05:25
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Oct 27, 2026
kensternberg-authentik added a commit that referenced this pull request Oct 30, 2026
…estamp' into web/elements/ak-timestamp

* refs/remotes/origin/web/elements/ak-timestamp: (119 commits)
  Potential fix for pull request finding 'Implicit operand conversion'
  Move constant to be, y'know, a constant.
  web/elements: formalize the timestamp display
  web/elements: rebuild ak-checkbox-group as a form-associated element (#27048)
  web/elements: re-arrange sidebar footer dependency (#27033)
  web/elements: rebuild ak-array-input as a form-associated element (#27046)
  web/admin: Simplify sidebar entries handling (#27112)
  revert: core: bump paramiko from 5.0.1 to 5.1.0 (#27258)
  web: Flow overlays cleanup (#27028)
  website/integrations: add agent-claude code doc (#27195)
  providers/oauth2: support saml token exchange (#27135)
  root: bump rust deps (#27190)
  root: bump Go to 1.27.3 (#27151)
  website/docs: update ha and LDAP provider docs (#27119)
  website/docs: events: change sidebar title and ordering (#27130)
  core: bump library/golang from `1896654` to `fbb7ae4` in /lifecycle/container (#27157)
  core: bump library/node from `1653c74` to `36793bc` in /lifecycle/container (#27158)
  core: bump library/node from `62314d9` to `a98e6fd` in /website (#27159)
  core: bump library/nginx from 1.31.6-trixie to 1.31.8-trixie in /website (#27160)
  ci: bump the codeql group across 1 directory with 3 updates (#27165)
  ...
kensternberg-authentik added a commit that referenced this pull request Oct 30, 2026
…ntab' into web/elements/ak-crontab

* refs/remotes/origin/web/elements/ak-crontab: (221 commits)
  web/elements: introduce the crontab component
  Potential fix for pull request finding 'Implicit operand conversion'
  Move constant to be, y'know, a constant.
  web/elements: formalize the timestamp display
  web/elements: rebuild ak-checkbox-group as a form-associated element (#27048)
  web/elements: re-arrange sidebar footer dependency (#27033)
  web/elements: rebuild ak-array-input as a form-associated element (#27046)
  web/admin: Simplify sidebar entries handling (#27112)
  revert: core: bump paramiko from 5.0.1 to 5.1.0 (#27258)
  web: Flow overlays cleanup (#27028)
  website/integrations: add agent-claude code doc (#27195)
  providers/oauth2: support saml token exchange (#27135)
  root: bump rust deps (#27190)
  root: bump Go to 1.27.3 (#27151)
  website/docs: update ha and LDAP provider docs (#27119)
  website/docs: events: change sidebar title and ordering (#27130)
  core: bump library/golang from `1896654` to `fbb7ae4` in /lifecycle/container (#27157)
  core: bump library/node from `1653c74` to `36793bc` in /lifecycle/container (#27158)
  core: bump library/node from `62314d9` to `a98e6fd` in /website (#27159)
  core: bump library/nginx from 1.31.6-trixie to 1.31.8-trixie in /website (#27160)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants