mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Merge pull request #25896 from overleaf/rh-load-odc-data
Load ODC data when revisiting onboarding form GitOrigin-RevId: 506df5d58a8b0305d83b9f43986a55fd309a2720
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
import { SplitTestInfo } from '../../../types/split-test'
|
||||
import { ValidationStatus } from '../../../types/group-management/validation'
|
||||
import { ManagedInstitution } from '../../../types/subscription/dashboard/managed-institution'
|
||||
import { OnboardingFormData } from '../../../types/onboarding'
|
||||
import { GroupSSOTestResult } from '../../../modules/group-settings/frontend/js/utils/types'
|
||||
import {
|
||||
AccessToken,
|
||||
@@ -53,6 +54,7 @@ import { DefaultNavbarMetadata } from '@/features/ui/components/types/default-na
|
||||
import { FooterMetadata } from '@/features/ui/components/types/footer-metadata'
|
||||
import type { ScriptLogType } from '../../../modules/admin-panel/frontend/js/features/script-logs/script-log'
|
||||
import { ActiveExperiment } from './labs-utils'
|
||||
|
||||
export interface Meta {
|
||||
'ol-ExposedSettings': ExposedSettings
|
||||
'ol-addonPrices': Record<
|
||||
@@ -170,6 +172,7 @@ export interface Meta {
|
||||
'ol-notifications': NotificationType[]
|
||||
'ol-notificationsInstitution': InstitutionType[]
|
||||
'ol-oauthProviders': OAuthProviders
|
||||
'ol-odcData': OnboardingFormData
|
||||
'ol-odcRole': string
|
||||
'ol-overallThemes': OverallThemeMeta[]
|
||||
'ol-pages': number
|
||||
|
||||
25
services/web/types/onboarding.ts
Normal file
25
services/web/types/onboarding.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export type UsedLatex = 'never' | 'occasionally' | 'often'
|
||||
export type Occupation =
|
||||
| 'university'
|
||||
| 'company'
|
||||
| 'nonprofitngo'
|
||||
| 'government'
|
||||
| 'other'
|
||||
|
||||
export type OnboardingFormData = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
primaryOccupation: Occupation | null
|
||||
usedLatex: UsedLatex | null
|
||||
companyDivisionDepartment: string
|
||||
companyJobTitle: string
|
||||
governmentJobTitle: string
|
||||
institutionName: string
|
||||
otherJobTitle: string
|
||||
nonprofitDivisionDepartment: string
|
||||
nonprofitJobTitle: string
|
||||
role: string
|
||||
subjectArea: string
|
||||
updatedAt?: Date
|
||||
shouldReceiveUpdates?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user