chore(web): use @parallelworks/ui 0.20, with the chat from @parallelworks/ui/ai - #369
Open
giraffesyo wants to merge 1 commit into
Open
giraffesyo wants to merge 1 commit into
giraffesyo wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong or missing
Studio depended on
@parallelworks/ai-chat0.5.0 and@parallelworks/ui0.17. The chat package has moved into@parallelworks/uias@parallelworks/ui/ai, and ui 0.20 changed how workflow forms and graphs work. Both packages also shipped their own Tailwind build, which forced Studio to manage the cascade order between them.What changed
@parallelworks/ai-chatfor@parallelworks/ui/aiand upgraded@parallelworks/uito ^0.20.0. ui's prebuilt stylesheet now includes the chat rules, so the separate chat stylesheet and itspw-ai-chatlayer are gone. ui still emits a top-levelbaselayer, solayers.csskeeps declaring it first.DependencyGraphPreviewnow comes from@parallelworks/ui/graph, since/workflowwas renamed.WorkflowEnginesupplied throughUIProvider. Studio mountsUIProviderat the root with a loader that imports@parallelworks/workflow-parser(new dependency, ^0.6.0) on first use, so the parser stays out of the initial bundle. The form and the graph each sit in aSuspenseboundary while it loads.initializeValuesis called as before, with no blank-default predicate, matching 0.17's default behavior.How it was verified
pnpm build: web type-check and build plus the server build pass.pnpm test: all 217 server tests pass. Web has 52 of 53 passing. The failure,test/attachmentsCursor.test.tsx, also fails without this change on my machine (Node 26, wherelocalStorageis undefined whensrc/adapter.tsloads), and CI runs Node 22.pnpm devand checked in headless Chromium:?embed=dagwith a mocked two-job workflow): renders Build → Test./api/querywhile the local index was loading.