From 4841dde1103192e805d228d3356b1bdb6ae37a82 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 3 Apr 2026 16:06:03 +0000 Subject: [PATCH] =?UTF-8?q?Remo=C3=A7=C3=A3o=20completa=20e=20definitiva?= =?UTF-8?q?=20de=20toda=20e=20qualquer=20refer=C3=AAncia=20ao=20Clerk=20no?= =?UTF-8?q?=20front-end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/DeveloperDashboard.tsx | 4 ++-- src/client/pages/OrganizationSelector.tsx | 15 --------------- src/client/services/systemSettingsService.ts | 6 +++--- src/client/types.ts | 1 - 4 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 src/client/pages/OrganizationSelector.tsx diff --git a/src/client/pages/DeveloperDashboard.tsx b/src/client/pages/DeveloperDashboard.tsx index 0987d15..5eee8fe 100644 --- a/src/client/pages/DeveloperDashboard.tsx +++ b/src/client/pages/DeveloperDashboard.tsx @@ -419,7 +419,7 @@ export const DeveloperDashboard: React.FC = () => {
{admins.map(admin => ( -
+
{admin.name.charAt(0).toUpperCase()}
@@ -441,7 +441,7 @@ export const DeveloperDashboard: React.FC = () => {
{commonUsers.map(user => ( -
+
{ - const navigate = useNavigate(); - - useEffect(() => { - navigate('/', { replace: true }); - }, [navigate]); - - return null; -}; diff --git a/src/client/services/systemSettingsService.ts b/src/client/services/systemSettingsService.ts index c7e18b0..79a0792 100644 --- a/src/client/services/systemSettingsService.ts +++ b/src/client/services/systemSettingsService.ts @@ -15,7 +15,7 @@ export const systemSettingsService = { }, updateSettings: async (settings: Partial): Promise => { - // Axios interceptors in api.ts automatically handle x-clerk-user-id and x-organization-id headers + // Axios interceptors handle organization-id headers const response = await api.put('/system-settings', settings); return response.data; }, @@ -51,7 +51,7 @@ export const systemSettingsService = { export interface GlobalUser { _id: string; - clerkId: string; + id: string; name: string; email: string; role: string; @@ -69,7 +69,7 @@ export interface GlobalOrganization { name: string; email: string; role: 'admin' | 'user' | 'guest'; - clerkUserId: string; + userId: string; isBanned: boolean; }[]; } diff --git a/src/client/types.ts b/src/client/types.ts index 9a314ff..67e8ac0 100644 --- a/src/client/types.ts +++ b/src/client/types.ts @@ -190,7 +190,6 @@ export type UserRole = 'guest' | 'user' | 'admin'; export interface AppUser { id: string; _id?: string; - clerkId?: string; logtoId?: string; email: string; name: string;