diff --git a/apps/web/src/components/media/MediaCard.test.tsx b/apps/web/src/components/media/MediaCard.test.tsx
index 4ebaca4..f1d4ce0 100644
--- a/apps/web/src/components/media/MediaCard.test.tsx
+++ b/apps/web/src/components/media/MediaCard.test.tsx
@@ -29,7 +29,6 @@ vi.mock("../../lib/artifact-url", () => ({
import { exportPresetsFor, isActiveMediaStatus, MediaCardView } from "./MediaCard";
-const target = { groupId: "group-1" };
const video = {
artifactId: "video-1",
kind: "video" as const,
@@ -64,7 +63,7 @@ describe("media card", () => {
["failed", "Failed"],
["cancelled", "Cancelled"],
] as const)("labels a %s job as %s", (status, label) => {
- const html = renderToString();
+ const html = renderToString();
expect(html).toContain(`data-status="${status}"`);
expect(html).toContain(label);
expect(html).toContain("Cut the intro");
@@ -74,7 +73,6 @@ describe("media card", () => {
const html = renderToString(
,
@@ -88,21 +86,14 @@ describe("media card", () => {
});
it("leaves the progress value out when the backend does not report one", () => {
- const html = renderToString(
- ,
- );
+ const html = renderToString();
expect(html).toContain('role="progressbar"');
expect(html).not.toContain("aria-valuenow");
});
it("offers download, export and transcribe for a finished video", () => {
const html = renderToString(
- ,
+ ,
);
expect(html).toContain('data-player="video"');
expect(html).toContain('href="/artifact/video-1?download=1"');
@@ -119,7 +110,6 @@ describe("media card", () => {
const onlyTranscribe = renderToString(
,
@@ -129,7 +119,7 @@ describe("media card", () => {
expect(onlyTranscribe).not.toContain("Export");
const nothingAvailable = renderToString(
- ,
+ ,
);
expect(nothingAvailable).toContain("Download clip.mp4");
expect(nothingAvailable).not.toContain("Export");
@@ -147,7 +137,6 @@ describe("media card", () => {
{ ...video, artifactId: "vtt-1", kind: "file", name: "clip.vtt" },
],
})}
- target={target}
available={everything}
onAction={noop}
/>,
@@ -160,10 +149,7 @@ describe("media card", () => {
it("shows why a job failed", () => {
const html = renderToString(
- ,
+ ,
);
expect(html).toContain("GPU server is unreachable");
});
diff --git a/apps/web/src/components/media/MediaCard.tsx b/apps/web/src/components/media/MediaCard.tsx
index 4ffb50d..da2626e 100644
--- a/apps/web/src/components/media/MediaCard.tsx
+++ b/apps/web/src/components/media/MediaCard.tsx
@@ -174,12 +174,10 @@ function OutputActions({
*/
export function MediaCardView({
block,
- target,
available = NOTHING_AVAILABLE,
onAction,
}: {
block: MediaJobBlock;
- target: ArtifactTarget;
available?: MediaCardAvailability;
/** Starts a follow-up job or cancels this one; rejects with a message to show. */
onAction?: (action: MediaCardAction) => Promise;
@@ -263,7 +261,6 @@ export function MediaCardView({
{images.map((output) => (
@@ -288,7 +285,6 @@ export function MediaCardView({
>
) : (
;
+ return ;
}