Repository navigation
web/table: fetch on first render when already visible - #22376
Merged
GirlBossRush merged 15 commits intoMay 18, 2026
Merged
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 #22376 +/- ##
===========================================
+ Coverage 80.97% 93.24% +12.26%
===========================================
Files 1032 1032
Lines 60055 60057 +2
Branches 400 400
===========================================
+ Hits 48632 56001 +7369
+ Misses 11423 4056 -7367
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
GirlBossRush
force-pushed
the
task-triage-rac-endpoint-modal
branch
4 times, most recently
from
May 15, 2026 12:15
2ec1794 to
09a3360
Compare
GirlBossRush
commented
May 15, 2026
GirlBossRush
commented
May 15, 2026
kensternberg-authentik
approved these changes
May 15, 2026
Tables inside `<ak-modal>` rendered empty until the user clicked the refresh button. The 2026.5 RC native-`<dialog>` migration taught `AKModal.updated()` to force `visible = true` on its slotted child, but `Table.firstUpdated()` was delegating to `#synchronizeRefreshSchedule()`, which only flushes a *previously deferred* refresh. With visibility forced on before the first update cycle, no deferred refresh was ever queued, so the synchronizer no-op'd and nothing fetched. Switch the first-update hook to call `fetch()` directly. `fetch()` already handles both states correctly: if the table is visible it issues the request immediately, and if it isn't it queues the deferred refresh that the synchronizer flushes when visibility flips on. Beyond the modal case this also covers any future caller that mounts a Table already-visible. Reproduced and verified against the user-library RAC endpoint launcher (the surface from the beta report). Added a Playwright e2e (`rac-launch-modal.test.ts`) that seeds a RAC provider + two endpoints via the API, opens the launcher, and asserts the endpoint rows appear without a manual refresh — fails on `main`, passes with this change. A 2026.5 backport will follow as a separate PR. Co-Authored-By: Agent (authentik-m-triage-rac-proper-shared-lilac) <[email protected]>
`changeme` in the playpen-specific default for `AK_TEST_BOOTSTRAP_TOKEN` trips the spellcheck lint job. Add an inline `cspell:ignore` directive so the fallback can stay (CI sets the env var so the default is only used locally inside playpen sandboxes).
GirlBossRush
force-pushed
the
task-triage-rac-endpoint-modal
branch
from
May 17, 2026 18:38
2eed554 to
c12173c
Compare
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
🍒 Cherry-pick to |
kensternberg-authentik
added a commit
that referenced
this pull request
May 18, 2026
* main: (31 commits) core: bump aws-cdk-lib from 2.253.0 to 2.253.1 (#22378) website: Docs and README new screenshots (#22341) root: Update CODEOWNERS for spellcheck dictionaries (#22408) core, web: update translations (#22372) translate: Updates for project authentik and language fr_FR (#22366) core: align django-channels-postgres psycopg[pool] floor with #22201 (#22363) core: bump msgraph-sdk from 1.56.0 to 1.57.0 (#22379) ci: bump actions/create-github-app-token from 3.1.1 to 3.2.0 (#22381) core: bump types-docker from 7.1.0.20260409 to 7.1.0.20260508 (#22417) core: bump types-ldap3 from 2.9.13.20260408 to 2.9.13.20260508 (#22423) core: bump types-zxcvbn from 4.5.0.20260408 to 4.5.0.20260508 (#22418) web/table: fetch on first render when already visible (#22376) web: bump stylelint from 17.11.0 to 17.11.1 in /web (#22430) web: bump @typescript/native-preview from 7.0.0-dev.20260507.1 to 7.0.0-dev.20260510.1 in /web (#22426) web: bump lit from 3.3.2 to 3.3.3 in /web (#22427) web: bump @lit/localize-tools from 0.8.1 to 0.8.2 in /web (#22428) web: bump dompurify from 3.4.2 to 3.4.3 in /web (#22429) core: bump types-channels from 4.3.0.20260421 to 4.3.0.20260508 (#22419) web: bump @codemirror/legacy-modes from 6.5.2 to 6.5.3 in /web (#22431) core: bump types-requests from 2.33.0.20260503 to 2.33.0.20260508 (#22420) ...
kensternberg-authentik
added a commit
that referenced
this pull request
May 18, 2026
* main: (53 commits) core: bump aws-cdk-lib from 2.253.0 to 2.253.1 (#22378) website: Docs and README new screenshots (#22341) root: Update CODEOWNERS for spellcheck dictionaries (#22408) core, web: update translations (#22372) translate: Updates for project authentik and language fr_FR (#22366) core: align django-channels-postgres psycopg[pool] floor with #22201 (#22363) core: bump msgraph-sdk from 1.56.0 to 1.57.0 (#22379) ci: bump actions/create-github-app-token from 3.1.1 to 3.2.0 (#22381) core: bump types-docker from 7.1.0.20260409 to 7.1.0.20260508 (#22417) core: bump types-ldap3 from 2.9.13.20260408 to 2.9.13.20260508 (#22423) core: bump types-zxcvbn from 4.5.0.20260408 to 4.5.0.20260508 (#22418) web/table: fetch on first render when already visible (#22376) web: bump stylelint from 17.11.0 to 17.11.1 in /web (#22430) web: bump @typescript/native-preview from 7.0.0-dev.20260507.1 to 7.0.0-dev.20260510.1 in /web (#22426) web: bump lit from 3.3.2 to 3.3.3 in /web (#22427) web: bump @lit/localize-tools from 0.8.1 to 0.8.2 in /web (#22428) web: bump dompurify from 3.4.2 to 3.4.3 in /web (#22429) core: bump types-channels from 4.3.0.20260421 to 4.3.0.20260508 (#22419) web: bump @codemirror/legacy-modes from 6.5.2 to 6.5.3 in /web (#22431) core: bump types-requests from 2.33.0.20260503 to 2.33.0.20260508 (#22420) ...
GirlBossRush
added a commit
that referenced
this pull request
May 18, 2026
…2376 to version-2026.5) (#22438) web/table: fetch on first render when already visible (#22376) * web/table: fetch on first render when already visible Tables inside `<ak-modal>` rendered empty until the user clicked the refresh button. The 2026.5 RC native-`<dialog>` migration taught `AKModal.updated()` to force `visible = true` on its slotted child, but `Table.firstUpdated()` was delegating to `#synchronizeRefreshSchedule()`, which only flushes a *previously deferred* refresh. With visibility forced on before the first update cycle, no deferred refresh was ever queued, so the synchronizer no-op'd and nothing fetched. Switch the first-update hook to call `fetch()` directly. `fetch()` already handles both states correctly: if the table is visible it issues the request immediately, and if it isn't it queues the deferred refresh that the synchronizer flushes when visibility flips on. Beyond the modal case this also covers any future caller that mounts a Table already-visible. Reproduced and verified against the user-library RAC endpoint launcher (the surface from the beta report). Added a Playwright e2e (`rac-launch-modal.test.ts`) that seeds a RAC provider + two endpoints via the API, opens the launcher, and asserts the endpoint rows appear without a manual refresh — fails on `main`, passes with this change. A 2026.5 backport will follow as a separate PR. * web/test: silence cspell on AK_TEST_BOOTSTRAP_TOKEN fallback `changeme` in the playpen-specific default for `AK_TEST_BOOTSTRAP_TOKEN` trips the spellcheck lint job. Add an inline `cspell:ignore` directive so the fallback can stay (CI sets the env var so the default is only used locally inside playpen sandboxes). * Flesh out RAC test coverage. * Use simple search for applications list. * Add order. * Ignore playwright result. * Remove unused. * Tidy for test. * Fix test selectors. * Fix overlap. * Defer to connected callback. * Use consistent Patternfly input outline. * Clean up labels. * Only trigger navigation on non-current entries. * Ensure that selected type is retained. --------- Co-authored-by: Teffen Ellis <[email protected]> Co-authored-by: Agent (authentik-m-triage-rac-proper-shared-lilac) <[email protected]>
kensternberg-authentik
added a commit
that referenced
this pull request
May 18, 2026
…ken-content-stylings * web/flow/expose-flow-in-lightdom: (34 commits) Fix spacing and arrangement of 'Remember Me', now that it's in the lightDOM. Some minor nitpicking and cleanup. Lots of comments; removed some dead code. Merge mess. core: bump aws-cdk-lib from 2.253.0 to 2.253.1 (#22378) website: Docs and README new screenshots (#22341) root: Update CODEOWNERS for spellcheck dictionaries (#22408) core, web: update translations (#22372) translate: Updates for project authentik and language fr_FR (#22366) core: align django-channels-postgres psycopg[pool] floor with #22201 (#22363) core: bump msgraph-sdk from 1.56.0 to 1.57.0 (#22379) ci: bump actions/create-github-app-token from 3.1.1 to 3.2.0 (#22381) core: bump types-docker from 7.1.0.20260409 to 7.1.0.20260508 (#22417) core: bump types-ldap3 from 2.9.13.20260408 to 2.9.13.20260508 (#22423) core: bump types-zxcvbn from 4.5.0.20260408 to 4.5.0.20260508 (#22418) web/table: fetch on first render when already visible (#22376) web: bump stylelint from 17.11.0 to 17.11.1 in /web (#22430) web: bump @typescript/native-preview from 7.0.0-dev.20260507.1 to 7.0.0-dev.20260510.1 in /web (#22426) web: bump lit from 3.3.2 to 3.3.3 in /web (#22427) web: bump @lit/localize-tools from 0.8.1 to 0.8.2 in /web (#22428) web: bump dompurify from 3.4.2 to 3.4.3 in /web (#22429) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tables inside
<ak-modal>rendered empty until the user clicked the refresh button — surfaced by a beta tester on the 2026.5 RC against the RAC endpoint launcher in the user library.Root cause
The native-
<dialog>modal migration (#21336) taughtAKModal.updated()to forcevisible = trueon its slotted child.Table.firstUpdated()was delegating to#synchronizeRefreshSchedule(), which only flushes a previously deferred refresh. With visibility forced on before the first update cycle, no deferred refresh was ever queued — so the synchronizer no-op'd and nothing fetched.Fix
Call
fetch()directly fromTable.firstUpdated().fetch()already handles both states correctly:The change therefore also covers any future caller that mounts a
Tablealready-visible, not just the modal path.protected override firstUpdated(changedProperties: PropertyValues<this>): void { super.firstUpdated(changedProperties); - this.#synchronizeRefreshSchedule(); + this.fetch(); }Test plan
main, populates without a manual refresh with this change.web/test/browser/rac-launch-modal.test.ts— seeds a RAC provider + two endpoints via the API, opens the launcher modal, asserts the endpoint rows appear without any user interaction. Fails onmain, passes with this change.make lint-fixclean.Disclosure
Triaged and authored end-to-end by an agent running in a sandbox against
goauthentik/authentik@main. Reviewed and shipped by @GirlBossRush.