web: Lit Development Mode, performance fixes.#19825
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. |
602f997 to
5db9597
Compare
| @@ -54,7 +54,7 @@ | |||
| * a dark sidebar on light themes. Only minor changes are needed for the dark mode. | |||
| * @see PatternFly's nav.css for reference: | |||
| */ | |||
| :host([theme="light"]) .pf-c-nav { | |||
| :host(:not([theme="dark"])) .pf-c-nav { | |||
There was a problem hiding this comment.
AFAICT this was the last remaining check for a light theme. The path to removing all the theme attribute style overrides will be awhile, but this marks one fewer dependency
| public get activeWhen(): RegExp[] { | ||
| return this.activeMatchers; | ||
| } |
There was a problem hiding this comment.
Fixes Lit warning about missing getter.
| public override connectedCallback(): void { | ||
| super.connectedCallback(); | ||
| this.synchronize(); | ||
| } | ||
|
|
||
| public override disconnectedCallback(): void { | ||
| super.disconnectedCallback(); | ||
| cancelAnimationFrame(this.#scrollAnimationFrame); |
There was a problem hiding this comment.
Fixes Lit warning about chained updates
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19825 +/- ##
==========================================
- Coverage 93.25% 93.23% -0.03%
==========================================
Files 965 965
Lines 53184 53184
==========================================
- Hits 49598 49585 -13
- Misses 3586 3599 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5db9597 to
d084446
Compare
| "lit-element": "^4.2.2", | ||
| "lit-html": "^3.3.2", |
There was a problem hiding this comment.
Fix to hoist Lit into a single version
https://lit.dev/docs/tools/development/#multiple-lit-versions
d084446 to
fe7eb87
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-d084446c58484e127048c736ce20e2d018b62bb8
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-d084446c58484e127048c736ce20e2d018b62bb8Afterwards, run the upgrade commands from the latest release notes. |
* main: (52 commits) website: QL Search keyboard interactions docs, examples. (#16259) website/integrations: immich: add signing algorithm (#19187) website/docs: endpoint devices: add version command (#19767) common: introduce common (#19852) web: bump @sentry/browser from 10.37.0 to 10.38.0 in /web in the sentry group across 1 directory (#19871) core: bump debugpy from 1.8.19 to 1.8.20 (#19872) ci: bump actions/cache from 5.0.2 to 5.0.3 (#19873) web: bump chromedriver from 144.0.1 to 145.0.0 in /web (#19874) web: Captcha Refinements, Part 2 (#19757) root: assign cherry-pick PRs to original author (#19858) web: Lit Development Mode, performance fixes. (#19825) web: Fix development theme overrides (#19826) website/docs: add tip for recovering from accidental main branch work (#19865) web: bump API Client version (#19857) rbac: clean up roles and permissions (#19588) web: bump API Client version (#19851) website/docs: add more info to entra id scim doc (#19849) sources/oauth: Fix an issue where wechat may crash duing login. (#18973) providers/scim: fix email validation mismatch (#19848) providers/scim: modify user- and group syncing behavior (#13947) ...
Details
This PR enables Lit's development mode, adding additional console logs to track down non-idiomatic Lit.
Additionally, a small number of fixes for some common warnings are included such as:
requestUpdate.activeThemeproperty triggeringrequestUpdatefor elements without shadow roots.