mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
feat(onboarding): update type system — meta, firstName/lastName, org.id, databases
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
18e7a96754
commit
eade74be6e
@@ -1,11 +1,16 @@
|
|||||||
export type OnboardingSsoConfig = {
|
export type OnboardingSsoProvider = { id: string; label: string };
|
||||||
providers: { id: string; label: string }[];
|
|
||||||
forced: boolean;
|
export type OnboardingMeta = {
|
||||||
passkeyEnabled: boolean;
|
passkeyEnabled: boolean;
|
||||||
|
hasExistingUsers: boolean;
|
||||||
|
ssoProviders: OnboardingSsoProvider[];
|
||||||
|
defaultUserMode: boolean;
|
||||||
|
resumeStepId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OnboardingAccountData = {
|
export type OnboardingAccountData = {
|
||||||
name: string;
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
email: string;
|
email: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -15,10 +20,11 @@ export type OnboardingSecurityData = {
|
|||||||
|
|
||||||
export type OnboardingPreferencesData = {
|
export type OnboardingPreferencesData = {
|
||||||
theme: 'light' | 'dark';
|
theme: 'light' | 'dark';
|
||||||
avatarDataUrl?: string;
|
avatarUrl?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OnboardingOrgData = {
|
export type OnboardingOrgData = {
|
||||||
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
logoDataUrl?: string;
|
logoDataUrl?: string;
|
||||||
};
|
};
|
||||||
@@ -48,7 +54,7 @@ export type OnboardingAgent = {
|
|||||||
storageId?: string;
|
storageId?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OnboardingMockDatabase = {
|
export type OnboardingDatabase = {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
engine: 'postgres' | 'mysql' | 'mongodb';
|
engine: 'postgres' | 'mysql' | 'mongodb';
|
||||||
@@ -61,13 +67,14 @@ export type OnboardingDbSettings = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type OnboardingProjectData = {
|
export type OnboardingProjectData = {
|
||||||
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
description: string;
|
description: string;
|
||||||
databaseIds: string[];
|
databaseIds: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OnboardingFlowData = {
|
export type OnboardingFlowData = {
|
||||||
sso?: { providerId: string };
|
meta?: OnboardingMeta;
|
||||||
account?: OnboardingAccountData;
|
account?: OnboardingAccountData;
|
||||||
security?: OnboardingSecurityData;
|
security?: OnboardingSecurityData;
|
||||||
preferences?: OnboardingPreferencesData;
|
preferences?: OnboardingPreferencesData;
|
||||||
@@ -77,6 +84,7 @@ export type OnboardingFlowData = {
|
|||||||
storages?: OnboardingChannel[];
|
storages?: OnboardingChannel[];
|
||||||
defaults?: OnboardingDefaultsData;
|
defaults?: OnboardingDefaultsData;
|
||||||
agents?: OnboardingAgent[];
|
agents?: OnboardingAgent[];
|
||||||
|
databases?: OnboardingDatabase[];
|
||||||
project?: OnboardingProjectData;
|
project?: OnboardingProjectData;
|
||||||
dbSettings?: Record<string, OnboardingDbSettings>;
|
dbSettings?: Record<string, OnboardingDbSettings>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user