Skip to content

web: preserve custom event action labels - #25655

Merged
BeryJu merged 1 commit into
goauthentik:mainfrom
ryanpesek:custom-event-label-fix
Sep 7, 2026
Merged

BeryJu merged 1 commit into
goauthentik:mainfrom
ryanpesek:custom-event-label-fix

Conversation

@ryanpesek

Copy link
Copy Markdown
Contributor

Summary

Restore the raw action fallback when displaying unrecognized event actions in the web UI.
ak_create_event("foo") creates an event with the action custom_foo. After the event label localization refactor in #23063, actions not present in the frontend’s generated enum map rendered as blank titles.
This change:

  • Preserves translated labels for recognized built-in actions.
  • Displays custom_foo and other unrecognized actions using their raw values.
  • Keeps missing actions rendered as an empty string.
  • Broadens the formatter input to reflect the arbitrary strings the API can return at runtime.

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.

@ryanpesek
ryanpesek requested a review from a team as a code owner September 1, 2026 20:17
@netlify

netlify Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit fd13311
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a9732dbf7e5b500081995f1
😎 Deploy Preview https://deploy-preview-25655--authentik-integrations.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 Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit fd13311
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a9732db02e11b00072fb800
😎 Deploy Preview https://deploy-preview-25655--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 Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit fd13311
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a9732db0fea52000833c3cf
😎 Deploy Preview https://deploy-preview-25655--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 Sep 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.66%. Comparing base (c3737e3) to head (fd13311).
⚠️ Report is 64 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25655      +/-   ##
==========================================
- Coverage   91.70%   91.66%   -0.05%     
==========================================
  Files        1152     1152              
  Lines       73507    73507              
  Branches     4054     4054              
==========================================
- Hits        67413    67383      -30     
- Misses       6052     6082      +30     
  Partials       42       42              
Flag Coverage Δ
conformance 34.39% <ø> (ø)
e2e 39.04% <ø> (-0.01%) ⬇️
integration 30.54% <ø> (-0.45%) ⬇️
rust 42.92% <ø> (ø)
unit 93.25% <ø> (+<0.01%) ⬆️
unit-migrate 93.27% <ø> (+<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.

@BeryJu BeryJu added backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Sep 4, 2026
@BeryJu
BeryJu merged commit 0925b71 into goauthentik:main Sep 7, 2026
137 checks passed
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #25834

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25833

GirlBossRush pushed a commit that referenced this pull request Sep 7, 2026
preserve labels for custom event actions
GirlBossRush pushed a commit that referenced this pull request Sep 7, 2026
…on-2026.8) (#25833)

web: preserve custom event action labels (#25655)

preserve labels for custom event actions

Co-authored-by: Ryan Pesek <[email protected]>
GirlBossRush pushed a commit that referenced this pull request Sep 7, 2026
…on-2026.5) (#25834)

web: preserve custom event action labels (#25655)

preserve labels for custom event actions

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

Labels

backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants