Skip to content

Commit

Permalink
DEVPROD-5879 Update no code change text (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
bynn authored Apr 9, 2024
1 parent f13f96d commit 64dcaf1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
21 changes: 8 additions & 13 deletions apps/parsley/src/gql/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ export type MutationSchedulePatchTasksArgs = {

export type MutationScheduleTasksArgs = {
taskIds: Array<Scalars["String"]["input"]>;
versionId?: InputMaybe<Scalars["String"]["input"]>;
versionId: Scalars["String"]["input"];
};

export type MutationScheduleUndispatchedBaseTasksArgs = {
Expand Down Expand Up @@ -1899,7 +1899,7 @@ export enum ProjectSettingsAccess {
export type ProjectSettingsInput = {
aliases?: InputMaybe<Array<ProjectAliasInput>>;
githubWebhooksEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
projectId?: InputMaybe<Scalars["String"]["input"]>;
projectId: Scalars["String"]["input"];
projectRef?: InputMaybe<ProjectInput>;
subscriptions?: InputMaybe<Array<SubscriptionInput>>;
vars?: InputMaybe<ProjectVarsInput>;
Expand Down Expand Up @@ -2037,8 +2037,7 @@ export type QueryGithubProjectConflictsArgs = {
};

export type QueryHasVersionArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
patchId?: InputMaybe<Scalars["String"]["input"]>;
patchId: Scalars["String"]["input"];
};

export type QueryHostArgs = {
Expand Down Expand Up @@ -2074,8 +2073,7 @@ export type QueryMainlineCommitsArgs = {
};

export type QueryPatchArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
patchId?: InputMaybe<Scalars["String"]["input"]>;
patchId: Scalars["String"]["input"];
};

export type QueryPodArgs = {
Expand All @@ -2098,14 +2096,12 @@ export type QueryProjectSettingsArgs = {

export type QueryRepoEventsArgs = {
before?: InputMaybe<Scalars["Time"]["input"]>;
id?: InputMaybe<Scalars["String"]["input"]>;
limit?: InputMaybe<Scalars["Int"]["input"]>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
};

export type QueryRepoSettingsArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
};

export type QueryTaskArgs = {
Expand All @@ -2132,8 +2128,7 @@ export type QueryUserArgs = {
};

export type QueryVersionArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
versionId?: InputMaybe<Scalars["String"]["input"]>;
versionId: Scalars["String"]["input"];
};

export type RepoCommitQueueParams = {
Expand Down Expand Up @@ -2257,7 +2252,7 @@ export type RepoSettingsInput = {
aliases?: InputMaybe<Array<ProjectAliasInput>>;
githubWebhooksEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
projectRef?: InputMaybe<RepoRefInput>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
subscriptions?: InputMaybe<Array<SubscriptionInput>>;
vars?: InputMaybe<ProjectVarsInput>;
};
Expand Down
6 changes: 5 additions & 1 deletion apps/spruce/src/components/CodeChanges/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export const CodeChanges: React.FC<CodeChangesProps> = ({ patchId }) => {
return <div id="patch-error">{error.message}</div>;
}
if (!moduleCodeChanges.length) {
return <Title className="cy-no-code-changes">No code changes</Title>;
return (
<Title className="cy-no-code-changes">
Code changes do not exist, or are too large to display.
</Title>
);
}
return (
<div data-cy="code-changes">
Expand Down
21 changes: 8 additions & 13 deletions apps/spruce/src/gql/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ export type MutationSchedulePatchTasksArgs = {

export type MutationScheduleTasksArgs = {
taskIds: Array<Scalars["String"]["input"]>;
versionId?: InputMaybe<Scalars["String"]["input"]>;
versionId: Scalars["String"]["input"];
};

export type MutationScheduleUndispatchedBaseTasksArgs = {
Expand Down Expand Up @@ -1899,7 +1899,7 @@ export enum ProjectSettingsAccess {
export type ProjectSettingsInput = {
aliases?: InputMaybe<Array<ProjectAliasInput>>;
githubWebhooksEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
projectId?: InputMaybe<Scalars["String"]["input"]>;
projectId: Scalars["String"]["input"];
projectRef?: InputMaybe<ProjectInput>;
subscriptions?: InputMaybe<Array<SubscriptionInput>>;
vars?: InputMaybe<ProjectVarsInput>;
Expand Down Expand Up @@ -2037,8 +2037,7 @@ export type QueryGithubProjectConflictsArgs = {
};

export type QueryHasVersionArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
patchId?: InputMaybe<Scalars["String"]["input"]>;
patchId: Scalars["String"]["input"];
};

export type QueryHostArgs = {
Expand Down Expand Up @@ -2074,8 +2073,7 @@ export type QueryMainlineCommitsArgs = {
};

export type QueryPatchArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
patchId?: InputMaybe<Scalars["String"]["input"]>;
patchId: Scalars["String"]["input"];
};

export type QueryPodArgs = {
Expand All @@ -2098,14 +2096,12 @@ export type QueryProjectSettingsArgs = {

export type QueryRepoEventsArgs = {
before?: InputMaybe<Scalars["Time"]["input"]>;
id?: InputMaybe<Scalars["String"]["input"]>;
limit?: InputMaybe<Scalars["Int"]["input"]>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
};

export type QueryRepoSettingsArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
};

export type QueryTaskArgs = {
Expand All @@ -2132,8 +2128,7 @@ export type QueryUserArgs = {
};

export type QueryVersionArgs = {
id?: InputMaybe<Scalars["String"]["input"]>;
versionId?: InputMaybe<Scalars["String"]["input"]>;
versionId: Scalars["String"]["input"];
};

export type RepoCommitQueueParams = {
Expand Down Expand Up @@ -2257,7 +2252,7 @@ export type RepoSettingsInput = {
aliases?: InputMaybe<Array<ProjectAliasInput>>;
githubWebhooksEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
projectRef?: InputMaybe<RepoRefInput>;
repoId?: InputMaybe<Scalars["String"]["input"]>;
repoId: Scalars["String"]["input"];
subscriptions?: InputMaybe<Array<SubscriptionInput>>;
vars?: InputMaybe<ProjectVarsInput>;
};
Expand Down

0 comments on commit 64dcaf1

Please sign in to comment.