Skip to content

Commit 77ebec1

Browse files
committed
Post merge fixes
1 parent d8d11c1 commit 77ebec1

File tree

9 files changed

+20
-221
lines changed

9 files changed

+20
-221
lines changed

apps/webapp/app/api.server.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/webapp/app/components/runs/v3/RollbackDeploymentDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function PromoteDeploymentDialog({
8989
name="redirectUrl"
9090
value={redirectPath}
9191
variant="primary/medium"
92-
LeadingIcon={isLoading ? "spinner-white" : ArrowPathIcon}
92+
LeadingIcon={isLoading ? SpinnerWhite : ArrowPathIcon}
9393
disabled={isLoading}
9494
shortcut={{ modifiers: ["mod"], key: "enter" }}
9595
>

apps/webapp/app/services/sensitiveDataReplacer.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
import type { RedactString } from "@trigger.dev/core";
1+
import { z } from "zod";
2+
3+
export const RedactStringSchema = z.object({
4+
__redactedString: z.literal(true),
5+
strings: z.array(z.string()),
6+
interpolations: z.array(z.string()),
7+
});
8+
9+
export type RedactString = z.infer<typeof RedactStringSchema>;
210

311
// Replaces redacted strings with "******".
412
// For example, this object: {"Authorization":{"__redactedString":true,"strings":["Bearer ",""],"interpolations":["sk-1234"]}}

apps/webapp/app/utils/createHttpSourceRequest.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/webapp/app/utils/formatErrors.server.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/webapp/app/utils/mergeProperties.server.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/core/src/v3/schemas/common.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,12 @@ export const SerializedError = z.object({
361361
});
362362

363363
export type SerializedError = z.infer<typeof SerializedError>;
364+
365+
export const RuntimeEnvironmentTypeSchema = z.enum([
366+
"PRODUCTION",
367+
"STAGING",
368+
"DEVELOPMENT",
369+
"PREVIEW",
370+
]);
371+
372+
export type RuntimeEnvironmentType = z.infer<typeof RuntimeEnvironmentTypeSchema>;

packages/core/src/v3/schemas/webhooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { z } from "zod";
2-
import { RuntimeEnvironmentTypeSchema } from "../../schemas/api.js";
32
import { RunStatus } from "./api.js";
4-
import { TaskRunError } from "./common.js";
3+
import { RuntimeEnvironmentTypeSchema, TaskRunError } from "./common.js";
54

65
/** Represents a failed run alert webhook payload */
76
const AlertWebhookRunFailedObject = z.object({

pnpm-lock.yaml

Lines changed: 0 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)