feat: add workspace account page and mobile app shell
Normalize the UI with shared primitives, add a workspace-backed account surface, and improve authenticated mobile navigation, map behavior, and dashboard browsing.
This commit is contained in:
@@ -13,6 +13,48 @@ export interface SessionUser extends AppUser {
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
export type WorkspaceType = 'personal' | 'company';
|
||||
export type WorkspaceRole = 'owner' | 'admin' | 'member';
|
||||
|
||||
export interface AccountWorkspace {
|
||||
id: string;
|
||||
name: string;
|
||||
workspaceType: WorkspaceType;
|
||||
role: WorkspaceRole;
|
||||
memberCount: number;
|
||||
}
|
||||
|
||||
export interface AccountSummary {
|
||||
totalSearchJobs: number;
|
||||
totalDeepResearchBatches: number;
|
||||
totalBusinesses: number;
|
||||
}
|
||||
|
||||
export interface AccountBillingPlaceholder {
|
||||
status: 'not_configured';
|
||||
planName: string | null;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface AccountTeamPlaceholder {
|
||||
canManageMembers: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface AccountPageData {
|
||||
profile: AppUser;
|
||||
workspace: AccountWorkspace;
|
||||
summary: AccountSummary;
|
||||
billing: AccountBillingPlaceholder;
|
||||
team: AccountTeamPlaceholder;
|
||||
}
|
||||
|
||||
export interface UpdateAccountProfileRequest {
|
||||
displayName?: string;
|
||||
avatarUrl?: string | null;
|
||||
workspaceName?: string;
|
||||
}
|
||||
|
||||
export interface GeoJsonGeometry {
|
||||
type: 'Polygon' | 'MultiPolygon';
|
||||
coordinates: unknown;
|
||||
|
||||
Reference in New Issue
Block a user