mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-24 02:59:55 -05:00
feat: improved onboarding part 1 (#2186)
* feat: analytics events * improved forms * store state * lint * cleanup tenant name * nits * add environment to the form * environment tag * include env with tenant * lint * fix gen * address comments * feedback * fix: layout * navigation state * rm dep * lint * address review * lint * lint * fix: build
This commit is contained in:
@@ -34,6 +34,8 @@ TenantMember:
|
||||
$ref: "./tenant.yaml#/TenantMember"
|
||||
TenantMemberList:
|
||||
$ref: "./tenant.yaml#/TenantMemberList"
|
||||
TenantEnvironment:
|
||||
$ref: "./tenant.yaml#/TenantEnvironment"
|
||||
TenantMemberRole:
|
||||
$ref: "./tenant.yaml#/TenantMemberRole"
|
||||
TenantResource:
|
||||
|
||||
@@ -20,6 +20,9 @@ Tenant:
|
||||
uiVersion:
|
||||
$ref: "#/TenantUIVersion"
|
||||
description: The UI of the tenant.
|
||||
environment:
|
||||
$ref: "#/TenantEnvironment"
|
||||
description: The environment type of the tenant.
|
||||
required:
|
||||
- metadata
|
||||
- name
|
||||
@@ -67,6 +70,14 @@ TenantAlertingSettings:
|
||||
- maxAlertingFrequency
|
||||
type: object
|
||||
|
||||
# IMPORTANT: keep values in sync with sql/schema/v0.sql#TenantEnvironment
|
||||
TenantEnvironment:
|
||||
enum:
|
||||
- "local"
|
||||
- "development"
|
||||
- "production"
|
||||
type: string
|
||||
|
||||
CreateTenantRequest:
|
||||
properties:
|
||||
name:
|
||||
@@ -85,6 +96,13 @@ CreateTenantRequest:
|
||||
engineVersion:
|
||||
$ref: "#/TenantVersion"
|
||||
description: The engine version of the tenant. Defaults to V0.
|
||||
environment:
|
||||
$ref: "#/TenantEnvironment"
|
||||
description: The environment type of the tenant.
|
||||
onboardingData:
|
||||
type: object
|
||||
description: Additional onboarding data to store with the tenant.
|
||||
additionalProperties: true
|
||||
required:
|
||||
- name
|
||||
- slug
|
||||
|
||||
Reference in New Issue
Block a user