Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fix/scrolling-with-…
Browse files Browse the repository at this point in the history
…scrollbar
  • Loading branch information
ehconitin committed Jan 23, 2025
2 parents 6a67bb1 + 337b6a8 commit a3dbeb5
Show file tree
Hide file tree
Showing 228 changed files with 4,494 additions and 1,468 deletions.
19 changes: 2 additions & 17 deletions packages/twenty-e2e-testing/tests/workflow-creation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ test('Create workflow', async ({ page }) => {
await createWorkflowButton.click(),
]);

const nameInputClosedState = page.getByText('Name').first();
await nameInputClosedState.click();

const nameInput = page.getByRole('textbox');
await nameInput.fill(NEW_WORKFLOW_NAME);
await nameInput.press('Enter');
Expand All @@ -37,23 +34,11 @@ test('Create workflow', async ({ page }) => {
const newWorkflowId = body.data.createWorkflow.id;

try {
const newWorkflowRowEntryName = page
.getByTestId(`row-id-${newWorkflowId}`)
.locator('div')
.filter({ hasText: NEW_WORKFLOW_NAME })
.nth(2);

await Promise.all([
page.waitForURL(
(url) => url.pathname === `/object/workflow/${newWorkflowId}`,
),

newWorkflowRowEntryName.click(),
]);

const workflowName = page.getByRole('button', { name: NEW_WORKFLOW_NAME });

await expect(workflowName).toBeVisible();

await expect(page).toHaveURL(`/object/workflow/${newWorkflowId}`);
} finally {
await deleteWorkflow({
page,
Expand Down
128 changes: 90 additions & 38 deletions packages/twenty-front/src/generated-metadata/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export type Billing = {
__typename?: 'Billing';
billingUrl?: Maybe<Scalars['String']['output']>;
isBillingEnabled: Scalars['Boolean']['output'];
trialPeriods: Array<TrialPeriodDto>;
trialPeriods: Array<BillingTrialPeriodDto>;
};

/** The different billing plans available */
Expand All @@ -128,13 +128,96 @@ export enum BillingPlanKey {
PRO = 'PRO'
}

export type BillingPlanOutput = {
__typename?: 'BillingPlanOutput';
baseProduct: BillingProductDto;
meteredProducts: Array<BillingProductDto>;
otherLicensedProducts: Array<BillingProductDto>;
planKey: BillingPlanKey;
};

export type BillingPriceLicensedDto = {
__typename?: 'BillingPriceLicensedDTO';
recurringInterval: SubscriptionInterval;
stripePriceId: Scalars['String']['output'];
unitAmount: Scalars['Float']['output'];
};

export type BillingPriceMeteredDto = {
__typename?: 'BillingPriceMeteredDTO';
recurringInterval: SubscriptionInterval;
stripePriceId: Scalars['String']['output'];
tiers?: Maybe<Array<BillingPriceTierDto>>;
tiersMode?: Maybe<BillingPriceTiersMode>;
};

export type BillingPriceTierDto = {
__typename?: 'BillingPriceTierDTO';
flatAmount?: Maybe<Scalars['Float']['output']>;
unitAmount?: Maybe<Scalars['Float']['output']>;
upTo?: Maybe<Scalars['Float']['output']>;
};

/** The different billing price tiers modes */
export enum BillingPriceTiersMode {
GRADUATED = 'GRADUATED',
VOLUME = 'VOLUME'
}

export type BillingPriceUnionDto = BillingPriceLicensedDto | BillingPriceMeteredDto;

export type BillingProductDto = {
__typename?: 'BillingProductDTO';
description: Scalars['String']['output'];
images?: Maybe<Array<Scalars['String']['output']>>;
name: Scalars['String']['output'];
prices: Array<Maybe<BillingPriceUnionDto>>;
type: BillingUsageType;
};

export type BillingProductPriceDto = {
__typename?: 'BillingProductPriceDTO';
created: Scalars['Float']['output'];
recurringInterval: SubscriptionInterval;
stripePriceId: Scalars['String']['output'];
unitAmount: Scalars['Float']['output'];
};

export type BillingProductPricesOutput = {
__typename?: 'BillingProductPricesOutput';
productPrices: Array<BillingProductPriceDto>;
totalNumberOfPrices: Scalars['Int']['output'];
};

export type BillingSessionOutput = {
__typename?: 'BillingSessionOutput';
url?: Maybe<Scalars['String']['output']>;
};

export type BillingSubscription = {
__typename?: 'BillingSubscription';
id: Scalars['UUID']['output'];
interval?: Maybe<SubscriptionInterval>;
status: SubscriptionStatus;
};

export type BillingTrialPeriodDto = {
__typename?: 'BillingTrialPeriodDTO';
duration: Scalars['Float']['output'];
isCreditCardRequired: Scalars['Boolean']['output'];
};

export type BillingUpdateOutput = {
__typename?: 'BillingUpdateOutput';
/** Boolean that confirms query was successful */
success: Scalars['Boolean']['output'];
};

export enum BillingUsageType {
LICENSED = 'LICENSED',
METERED = 'METERED'
}

export type BooleanFieldComparison = {
is?: InputMaybe<Scalars['Boolean']['input']>;
isNot?: InputMaybe<Scalars['Boolean']['input']>;
Expand Down Expand Up @@ -372,12 +455,11 @@ export enum FeatureFlagKey {
IsAdvancedFiltersEnabled = 'IsAdvancedFiltersEnabled',
IsAirtableIntegrationEnabled = 'IsAirtableIntegrationEnabled',
IsAnalyticsV2Enabled = 'IsAnalyticsV2Enabled',
IsBillingPlansEnabled = 'IsBillingPlansEnabled',
IsCommandMenuV2Enabled = 'IsCommandMenuV2Enabled',
IsCopilotEnabled = 'IsCopilotEnabled',
IsEventObjectEnabled = 'IsEventObjectEnabled',
IsFreeAccessEnabled = 'IsFreeAccessEnabled',
IsFunctionSettingsEnabled = 'IsFunctionSettingsEnabled',
IsGmailSendEmailScopeEnabled = 'IsGmailSendEmailScopeEnabled',
IsJsonFilterEnabled = 'IsJsonFilterEnabled',
IsLocalizationEnabled = 'IsLocalizationEnabled',
IsMicrosoftSyncEnabled = 'IsMicrosoftSyncEnabled',
Expand Down Expand Up @@ -548,7 +630,7 @@ export type Mutation = {
activateWorkspace: Workspace;
authorizeApp: AuthorizeApp;
challenge: LoginToken;
checkoutSession: SessionEntity;
checkoutSession: BillingSessionOutput;
computeStepOutputSchema: Scalars['JSON']['output'];
createDraftFromWorkflowVersion: WorkflowVersion;
createOIDCIdentityProvider: SetupSsoOutput;
Expand Down Expand Up @@ -593,7 +675,7 @@ export type Mutation = {
syncRemoteTableSchemaChanges: RemoteTable;
track: Analytics;
unsyncRemoteTable: RemoteTable;
updateBillingSubscription: UpdateBillingEntity;
updateBillingSubscription: BillingUpdateOutput;
updateLabPublicFeatureFlag: Scalars['Boolean']['output'];
updateOneField: Field;
updateOneObject: Object;
Expand Down Expand Up @@ -982,20 +1064,6 @@ export type PostgresCredentials = {
workspaceId: Scalars['String']['output'];
};

export type ProductPriceEntity = {
__typename?: 'ProductPriceEntity';
created: Scalars['Float']['output'];
recurringInterval: SubscriptionInterval;
stripePriceId: Scalars['String']['output'];
unitAmount: Scalars['Float']['output'];
};

export type ProductPricesEntity = {
__typename?: 'ProductPricesEntity';
productPrices: Array<ProductPriceEntity>;
totalNumberOfPrices: Scalars['Int']['output'];
};

export type PublicFeatureFlag = {
__typename?: 'PublicFeatureFlag';
key: FeatureFlagKey;
Expand Down Expand Up @@ -1025,7 +1093,7 @@ export type PublishServerlessFunctionInput = {

export type Query = {
__typename?: 'Query';
billingPortalSession: SessionEntity;
billingPortalSession: BillingSessionOutput;
checkUserExists: UserExistsOutput;
checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid;
clientConfig: ClientConfig;
Expand All @@ -1043,7 +1111,7 @@ export type Query = {
findWorkspaceInvitations: Array<WorkspaceInvitation>;
getAvailablePackages: Scalars['JSON']['output'];
getPostgresCredentials?: Maybe<PostgresCredentials>;
getProductPrices: ProductPricesEntity;
getProductPrices: BillingProductPricesOutput;
getPublicWorkspaceDataBySubdomain: PublicWorkspaceDataOutput;
getServerlessFunctionSourceCode?: Maybe<Scalars['JSON']['output']>;
getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal;
Expand All @@ -1055,6 +1123,7 @@ export type Query = {
listSSOIdentityProvidersByWorkspaceId: Array<FindAvailableSsoidpOutput>;
object: Object;
objects: ObjectConnection;
plans: Array<BillingPlanOutput>;
relation: Relation;
relations: RelationConnection;
validatePasswordResetToken: ValidatePasswordResetToken;
Expand Down Expand Up @@ -1368,11 +1437,6 @@ export enum ServerlessFunctionSyncStatus {
READY = 'READY'
}

export type SessionEntity = {
__typename?: 'SessionEntity';
url?: Maybe<Scalars['String']['output']>;
};

export type SetupOidcSsoInput = {
clientID: Scalars['String']['input'];
clientSecret: Scalars['String']['input'];
Expand Down Expand Up @@ -1497,12 +1561,6 @@ export type TransientToken = {
transientToken: AuthToken;
};

export type TrialPeriodDto = {
__typename?: 'TrialPeriodDTO';
duration: Scalars['Float']['output'];
isCreditCardRequired: Scalars['Boolean']['output'];
};

export type UuidFilterComparison = {
eq?: InputMaybe<Scalars['UUID']['input']>;
gt?: InputMaybe<Scalars['UUID']['input']>;
Expand All @@ -1520,12 +1578,6 @@ export type UuidFilterComparison = {
notLike?: InputMaybe<Scalars['UUID']['input']>;
};

export type UpdateBillingEntity = {
__typename?: 'UpdateBillingEntity';
/** Boolean that confirms query was successful */
success: Scalars['Boolean']['output'];
};

export type UpdateFieldInput = {
defaultValue?: InputMaybe<Scalars['JSON']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
Expand Down
Loading

0 comments on commit a3dbeb5

Please sign in to comment.