-
-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use onboarding status to conditionally show badge and message
- Loading branch information
Showing
13 changed files
with
172 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
frontend/src/openapi/models/personalDashboardProjectDetailsSchemaOnboardingStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOf } from './personalDashboardProjectDetailsSchemaOnboardingStatusOneOf'; | ||
import type { PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThree } from './personalDashboardProjectDetailsSchemaOnboardingStatusOneOfThree'; | ||
|
||
/** | ||
* The current onboarding status of the project. | ||
*/ | ||
export type PersonalDashboardProjectDetailsSchemaOnboardingStatus = | ||
| PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOf | ||
| PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThree; |
10 changes: 10 additions & 0 deletions
10
frontend/src/openapi/models/personalDashboardProjectDetailsSchemaOnboardingStatusOneOf.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus } from './personalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus'; | ||
|
||
export type PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOf = { | ||
status: PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus; | ||
}; |
15 changes: 15 additions & 0 deletions
15
...nd/src/openapi/models/personalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus = | ||
(typeof PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus)[keyof typeof PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export const PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfStatus = | ||
{ | ||
'onboarding-started': 'onboarding-started', | ||
onboarded: 'onboarded', | ||
} as const; |
12 changes: 12 additions & 0 deletions
12
...end/src/openapi/models/personalDashboardProjectDetailsSchemaOnboardingStatusOneOfThree.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus } from './personalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus'; | ||
|
||
export type PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThree = { | ||
/** The name of the feature flag */ | ||
feature: string; | ||
status: PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus; | ||
}; |
14 changes: 14 additions & 0 deletions
14
...c/openapi/models/personalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus = | ||
(typeof PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus)[keyof typeof PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export const PersonalDashboardProjectDetailsSchemaOnboardingStatusOneOfThreeStatus = | ||
{ | ||
'first-flag-created': 'first-flag-created', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
frontend/src/openapi/models/personalDashboardSchemaAdminsItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type PersonalDashboardSchemaAdminsItem = { | ||
/** @nullable */ | ||
email?: string | null; | ||
/** The user ID. */ | ||
id: number; | ||
/** @nullable */ | ||
imageUrl?: string | null; | ||
/** The user's name. */ | ||
name?: string; | ||
/** The user's username. */ | ||
username?: string; | ||
}; |
23 changes: 23 additions & 0 deletions
23
frontend/src/openapi/models/personalDashboardSchemaProjectOwnersItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { PersonalDashboardSchemaProjectOwnersItemOwnerType } from './personalDashboardSchemaProjectOwnersItemOwnerType'; | ||
|
||
export type PersonalDashboardSchemaProjectOwnersItem = { | ||
/** | ||
* The user's email address. | ||
* @nullable | ||
*/ | ||
email?: string | null; | ||
/** | ||
* The URL of the user's profile image. | ||
* @nullable | ||
*/ | ||
imageUrl?: string | null; | ||
/** The name displayed for the user. Can be the user's name, username, or email, depending on what they have provided. */ | ||
name: string; | ||
/** The type of the owner; will always be `user`. */ | ||
ownerType: PersonalDashboardSchemaProjectOwnersItemOwnerType; | ||
}; |
16 changes: 16 additions & 0 deletions
16
frontend/src/openapi/models/personalDashboardSchemaProjectOwnersItemOwnerType.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* The type of the owner; will always be `user`. | ||
*/ | ||
export type PersonalDashboardSchemaProjectOwnersItemOwnerType = | ||
(typeof PersonalDashboardSchemaProjectOwnersItemOwnerType)[keyof typeof PersonalDashboardSchemaProjectOwnersItemOwnerType]; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export const PersonalDashboardSchemaProjectOwnersItemOwnerType = { | ||
user: 'user', | ||
} as const; |