Skip to content

Conversation

@VaguelySerious
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2025

🦋 Changeset detected

Latest commit: b621180

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@workflow/web-shared Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Nov 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 7, 2025 11:34pm
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 7, 2025 11:34pm
example-workflow Ready Ready Preview Comment Nov 7, 2025 11:34pm
workbench-nitro-workflow Ready Ready Preview Comment Nov 7, 2025 11:34pm
workbench-nuxt-workflow Ready Ready Preview Comment Nov 7, 2025 11:34pm
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 7, 2025 11:34pm
workbench-vite-workflow Ready Ready Preview Comment Nov 7, 2025 11:34pm
workflow-docs Ready Ready Preview Comment Nov 7, 2025 11:34pm

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The ./components/ui/skeleton module was missing, causing a TypeScript import error in workflow-trace-view.tsx. The component is used to display loading skeletons with className prop support.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/components/ui/skeleton.tsx b/packages/web-shared/src/components/ui/skeleton.tsx
new file mode 100644
index 0000000..0186ec0
--- /dev/null
+++ b/packages/web-shared/src/components/ui/skeleton.tsx
@@ -0,0 +1,15 @@
+import { cn } from '../../lib/utils';
+
+function Skeleton({
+  className,
+  ...props
+}: React.HTMLAttributes<HTMLDivElement>) {
+  return (
+    <div
+      className={cn('animate-pulse rounded-md bg-muted', className)}
+      {...props}
+    />
+  );
+}
+
+export { Skeleton };
\ No newline at end of file

Analysis

Missing skeleton component causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/workflow-trace-view.tsx due to missing skeleton component import

How to reproduce:

cd packages/web-shared && pnpm run build

Result:

src/workflow-trace-view.tsx(5,26): error TS2307: Cannot find module './components/ui/skeleton' or its corresponding type declarations.
Fix on Vercel

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The useState hook is imported from React but never used in the component, causing a TypeScript compilation error due to the noUnusedLocals setting.

View Details
📝 Patch Details
diff --git a/packages/web-shared/src/workflow-trace-view.tsx b/packages/web-shared/src/workflow-trace-view.tsx
index 47987df..3152953 100644
--- a/packages/web-shared/src/workflow-trace-view.tsx
+++ b/packages/web-shared/src/workflow-trace-view.tsx
@@ -1,5 +1,5 @@
 import type { Event, Hook, Step, WorkflowRun } from '@workflow/world';
-import { useEffect, useMemo, useState } from 'react';
+import { useEffect, useMemo } from 'react';
 import { toast } from 'sonner';
 import type { EnvMap } from './api/workflow-server-actions';
 import { Skeleton } from './components/ui/skeleton';

Analysis

Unused import causes TypeScript compilation failure

What fails: TypeScript compiler fails on packages/web-shared/src/workflow-trace-view.tsx due to unused useState import

How to reproduce:

cd packages/web-shared && npx tsc --noEmit

Result:

src/workflow-trace-view.tsx(2,30): error TS6133: 'useState' is declared but its value is never read.
Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants