Skip to content

🐞 Admin Portal > User attribute missing key#2634

Open
BelSequent wants to merge 2 commits intomainfrom
fix/meta-11994/main
Open

🐞 Admin Portal > User attribute missing key#2634
BelSequent wants to merge 2 commits intomainfrom
fix/meta-11994/main

Conversation

@BelSequent
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 7, 2026 12:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes missing/incorrect display labels for Keycloak user attributes in the Admin Portal by improving how attribute labels are derived and by allowing tenant-specific localization overrides to apply even when the attribute key is not present in the default English translation bundle.

Changes:

  • Improve getAttributeLabel formatting to handle both camelCase and snake_case placeholders and to strip ${profile.attributes.*} prefixes.
  • Update getTranslationLabel to use t(key) + “missing key” detection (fallback when t returns the key) instead of checking presence in the default English translation object.
  • Document how to add localization overrides for custom user attribute labels in the Admin Portal.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/admin-portal/src/services/UserService.ts Makes attribute label rendering more robust and ensures localization overrides can be used for custom attribute keys.
docs/docusaurus/docs/02-election_managers/01-tutorials/99-admin_portal_tutorials_add-user-attributes-to-keycloak.md Adds guidance for overriding user attribute labels via tenant localization settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://docs.sequentech.io/docusaurus/pr-preview/pr-2634/

Built to branch doc-previews at 2026-05-07 13:31 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

(cherry picked from commit 7604b27)
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

return translated
}
}
return getAttributeLabel(displayName ?? "")
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.

2 participants