versao compilada
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-15 17:37:00 +02:00
parent 9a96ee8dfe
commit c13f250b87
935 changed files with 210656 additions and 272 deletions
+4
View File
@@ -11,6 +11,7 @@ export type PortalNavAccess = {
authenticated: boolean;
manager: boolean;
businesses?: boolean;
businessReviewUrl?: string | null;
education?: boolean;
ai?: boolean;
legacyContent?: boolean;
@@ -133,6 +134,9 @@ export function portalNavigation(access: PortalNavAccess): PortalNavItem[] {
),
]
: []),
...(access.authenticated && access.businesses && access.businessReviewUrl
? [link('review-businesses', 'Revisão de negócios', access.businessReviewUrl)]
: []),
],
},
{
+2
View File
@@ -2,6 +2,7 @@ export class ProfileValidationError extends Error {
constructor(
message: string,
public readonly fields: Record<string, string>,
public readonly reauthenticate = false,
) {
super(message);
}
@@ -33,6 +34,7 @@ export async function profileJson(
Array.isArray(value) ? value.join(' ') : String(value),
]),
),
response.headers.get('X-Portal-Reauthentication') === 'required',
);
return result;
}