Skip to content

web: fix PropertyMappingTestForm result layout - #28391

Open
B4dM4n wants to merge 1 commit into
goauthentik:mainfrom
B4dM4n:fix/property-mapping-test-result-layout
Open

B4dM4n wants to merge 1 commit into
goauthentik:mainfrom
B4dM4n:fix/property-mapping-test-result-layout

Conversation

@B4dM4n

@B4dM4n B4dM4n commented Dec 1, 2026

Copy link
Copy Markdown

Details

What does this PR change?

PropertyMappingTestForm.renderResult() now always renders the "Result" label. Before, the label sat inside the success branch, so it was rendered only when the test succeeded. Now it's placed once at the top of <ak-form-element-horizontal> and always renders.

Why is this change needed?

When a property mapping test failed, the result had no label, so the error output didn't line up with the rest of the horizontal form layout. With this change, successful and failed results use the same label and layout.

How was this tested?

  • Ran the fixed branch and current main side by side against the same local database, using two scope mappings:
    • return {"ok": True, "user": request.user.username} (successful result)
    • raise Exception("test failure") (failing result)
  • Opened Test on both mappings in both versions:
Before (main) After (this PR)
Successful Screenshot-2026-12-01-233234 Screenshot-2026-12-01-233620
Failing Screenshot-2026-12-01-233600 Screenshot-2026-12-01-233249
  • make web-check (oxlint, oxfmt), tsc and lit-analyse pass. make web-test-unit passes.

Linked issues

AI usage

Claude Code helped with running the checks, setting up the local before/after build comparison and drafting this description. I wrote the code change myself.


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.

@B4dM4n
B4dM4n requested a review from a team as a code owner December 1, 2026 23:14
@netlify

netlify Bot commented Dec 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2312413
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b0f54cc0bff7de5ba71f748
😎 Deploy Preview https://deploy-preview-28391--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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant