- 
                Notifications
    You must be signed in to change notification settings 
- Fork 63
Extract web UI API client and trace viewer into shared package #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 🦋 Changeset detectedLatest commit: 28a5603 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
 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 | 
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
| join(nitro.options.rootDir, 'workflows'), | ||
| ...nitro.options.scanDirs.map((dir) => join(dir, 'workflows')), | ||
| ].map((dir) => resolve(nitro.options.rootDir, dir))).sort(); | ||
| return unique( | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just a formatting change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - must have originally not been formatted with biome
| @@ -0,0 +1,59 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also symlink the LICENSE from the repo root please like we do in all the other packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also symlink the LICENSE from repo root pls. otherwise, this is great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The TypeScript compiler fails because the imported hydrateWorkflowArguments function from '@workflow/core/serialization' is never used in the file.
View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,
Analysis
Unused import causes TypeScript compilation failure
What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments
How to reproduce:
cd packages/web-shared && pnpm run buildResult:
src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The hydrateWorkflowArguments import is declared but never used in the file, causing TypeScript compilation to fail with error TS6133.
View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,
Analysis
Unused import causes TypeScript compilation failure
What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments
How to reproduce:
cd packages/web-shared && pnpm run buildResult:
src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The file imports hydrateWorkflowArguments from @workflow/core/serialization but never uses it, causing a TypeScript compilation error TS6133.
View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..40e0752 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,6 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
 import type {
   Event,
   Hook,
Analysis
TypeScript unused import causes build failure
What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments
How to reproduce:
cd packages/web-shared && pnpm run buildResult:
src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.
 ELIFECYCLE  Command failed with exit code 2.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The hydrateWorkflowArguments import is declared but never used in the file, causing a TypeScript compilation error.
View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..40e0752 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,6 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
 import type {
   Event,
   Hook,
Analysis
Unused import causes TypeScript compilation failure
What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments
How to reproduce:
cd packages/web-shared && pnpm run buildResult:
src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The TypeScript build fails because hydrateWorkflowArguments is imported but never used in the file, triggering error TS6133 due to the strict noUnusedLocals compiler setting.
View Details
📝 Patch Details
diff --git a/packages/web-shared/src/api/workflow-server-actions.ts b/packages/web-shared/src/api/workflow-server-actions.ts
index ffe549e..2ad7ade 100644
--- a/packages/web-shared/src/api/workflow-server-actions.ts
+++ b/packages/web-shared/src/api/workflow-server-actions.ts
@@ -2,7 +2,7 @@
 
 import { hydrateResourceIO } from '@workflow/core/observability';
 import { createWorld, start } from '@workflow/core/runtime';
-import { hydrateWorkflowArguments } from '@workflow/core/serialization';
+
 import type {
   Event,
   Hook,
Analysis
Unused import causes TypeScript compilation failure
What fails: TypeScript compiler fails on packages/web-shared/src/api/workflow-server-actions.ts due to unused import hydrateWorkflowArguments
How to reproduce:
pnpm turbo run build --filter=@workflow/web-sharedResult:
src/api/workflow-server-actions.ts(5,1): error TS6133: 'hydrateWorkflowArguments' is declared but its value is never read.
Addresses #30 by extracting re-usable NextJS code for any o11y deployment.
See slack thread for context.