feat: Implement organization-based SSO login with an AsyncCombobox and add logo variant branding options.

This commit is contained in:
2026-02-26 11:50:34 -03:00
parent 824da230a4
commit 947abcb0bc
24 changed files with 823 additions and 143 deletions
+5
View File
@@ -26,6 +26,7 @@ export interface Organization {
platform_name?: string;
primary_color?: string;
secondary_color?: string;
logo_variant?: string;
}
export interface Recommendation {
title: string;
@@ -446,6 +447,10 @@ const apiFetch = async (url: string, options: RequestInit = {}, isCMS: boolean =
};
export const lmsApi = {
async searchOrganizations(query: string): Promise<{ id: string, name: string, domain?: string }[]> {
return apiFetch(`/organizations/search?q=${encodeURIComponent(query)}`, {}, true);
},
async getCatalog(orgId?: string, userId?: string): Promise<Course[]> {
const params = new URLSearchParams();
if (orgId) params.append('organization_id', orgId);