Repository navigation
web/elements: re-arrange sidebar footer dependency - #27033
Conversation
✅ 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 #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
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 40448521731 -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-c27929f03f3085eb82025fc3d0c411a50d884553
# Distroless image: AUTHENTIK_TAG=gh-c27929f03f3085eb82025fc3d0c411a50d884553-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-c27929f03f3085eb82025fc3d0c411a50d884553
# Distroless image: tag: gh-c27929f03f3085eb82025fc3d0c411a50d884553-distrolessAfterwards, run the upgrade commands from the latest release notes. |
d9515af to
66bc448
Compare
4c94a35 to
1885c31
Compare
53dc00d to
4e79b4a
Compare
# 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.
4e79b4a to
c27929f
Compare
…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) ...
…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) ...
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-labelsoverrode 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-controlsin the Interface pointed at nothing, because it was referencing anidthat 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-corehas 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.versionis defined, and if it is,versionCurrentis 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
make all)make docs)