chore: own review comments

This commit is contained in:
Stavros
2026-06-09 16:17:57 +03:00
parent 6a4d85dc41
commit 5c5d7a43ef
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export function useScreenParams(params: URLSearchParams): ScreenParams {
export function recompileScreenParams(params: ScreenParams): string {
const p = new URLSearchParams(
Object.fromEntries(
Object.entries(params).filter(([, v]) => v != null),
Object.entries(params).filter(([, v]) => v !== undefined),
) as Record<string, string>,
).toString();
+1 -1
View File
@@ -71,7 +71,7 @@
"authorizeSuccessTitle": "Authorized",
"authorizeSuccessSubtitle": "You will be redirected to the app in a few seconds.",
"authorizeErrorClientInfo": "An error occurred while loading the client information. Please try again later.",
"authorizeErrorMissingParams": "The following parameters are missing: {{missingParams}}",
"authorizeErrorInvalidParams": "The request is missing required parameters or has invalid parameters. Please check the URL and try again.",
"openidScopeName": "OpenID Connect",
"openidScopeDescription": "Allows the app to access your OpenID Connect information.",
"emailScopeName": "Email",
+1 -1
View File
@@ -71,7 +71,7 @@
"authorizeSuccessTitle": "Authorized",
"authorizeSuccessSubtitle": "You will be redirected to the app in a few seconds.",
"authorizeErrorClientInfo": "An error occurred while loading the client information. Please try again later.",
"authorizeErrorMissingParams": "The following parameters are missing: {{missingParams}}",
"authorizeErrorInvalidParams": "The request is missing required parameters or has invalid parameters. Please check the URL and try again.",
"openidScopeName": "OpenID Connect",
"openidScopeDescription": "Allows the app to access your OpenID Connect information.",
"emailScopeName": "Email",
+1 -3
View File
@@ -135,9 +135,7 @@ export const AuthorizePage = () => {
<CardHeader className="mb-2">
<div className="flex flex-col gap-3 items-center justify-center text-center">
<div className="bg-accent-foreground box-content text-muted text-xl font-bold font-sans rounded-lg size-8 p-2 flex items-center justify-center">
{screenParams.oidc_name !== undefined
? screenParams.oidc_name.slice(0, 1)
: "U"}
{screenParams.oidc_name ? screenParams.oidc_name.slice(0, 1) : "U"}
</div>
<CardTitle className="text-xl">
{t("authorizeCardTitle", {