Skip to content

Commit

Permalink
Truncate the clientId (keycloak#28406) (keycloak#31398)
Browse files Browse the repository at this point in the history
* Truncate the clientId

fixes: keycloak#28284

Signed-off-by: Erik Jan de Wit <[email protected]>

* fxed tests

Signed-off-by: Erik Jan de Wit <[email protected]>

---------

Signed-off-by: Erik Jan de Wit <[email protected]>
(cherry picked from commit 73e22b3)
  • Loading branch information
edewit authored Jul 22, 2024
1 parent 3500618 commit 6b76886
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default class ListingPage extends CommonElements {
}

goToItemDetails(itemName: string) {
cy.get(this.#itemsRows).contains(itemName).click();
cy.get(this.#itemsRows).contains(itemName).click({ force: true });

return this;
}
Expand Down
24 changes: 13 additions & 11 deletions js/apps/admin-ui/src/clients/ClientsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,19 @@ const ClientDetailLink = (client: ClientRepresentation) => {
const { t } = useTranslation();
const { realm } = useRealm();
return (
<Link
key={client.id}
to={toClient({ realm, clientId: client.id!, tab: "settings" })}
>
{client.clientId}
{!client.enabled && (
<Badge key={`${client.id}-disabled`} isRead className="pf-u-ml-sm">
{t("disabled")}
</Badge>
)}
</Link>
<TableText wrapModifier="truncate">
<Link
key={client.id}
to={toClient({ realm, clientId: client.id!, tab: "settings" })}
>
{client.clientId}
{!client.enabled && (
<Badge key={`${client.id}-disabled`} isRead className="pf-u-ml-sm">
{t("disabled")}
</Badge>
)}
</Link>
</TableText>
);
};

Expand Down

0 comments on commit 6b76886

Please sign in to comment.