Repository navigation
Conversation
The Validation Station, Classification Station and Document Viewer READMEs now cover the path an FDE takes to a working Coded Action App: pick a path (with a shared diagram of how documents get into the widgets), install, host the web component, quick start, saving, core props and troubleshooting. The depth moves to linked pages: - validation-station/docs: data-sources.md, events-and-commands.md, hosting.md, and the shared diagram under assets/ - validation-station/UPGRADING.md: release notes and the 1.0.x migration - classification-station/docs/reference.md: data sources, props, outputs The subcomponents guide is rewritten around five rules and a Coded Action App worked example. Development/License are wrapped in docs:ignore in every README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📊 Coverage Report
|
Classification Station and Document Viewer are unpublished, and the Classification Station docs need rework once the CVD input is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…her widgets - Rewrite the intro: what the component does and that the host app completes the task. - "Document Understanding workflow" / "Flow IDP extract node" for where the payload comes from; "individual inputs" for the artifacts path. - Name the subcomponents in the inputs table and link their page. - Drop the standalone Document Viewer and Classification Station from the README and the diagram; they are out of scope here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ity, tighten data sources - Remove the 'Comparing against the prediction' section and every prediction mention in the README, data-sources and UPGRADING. - Name the Create Document Validation Artifacts activity as the source of ContentValidationData (README and diagram). - Add editing the taxonomy or extraction before handing it over as a reason for pre-fetched mode; drop the mixed-modes sentence. - Shorten the 'Handle both callbacks' warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sergiubologa
left a comment
There was a problem hiding this comment.
left a few comments, but since this documentation will be used mostly by coding agents, I'll ask my agent to do a review from this perspective as well.
| import type { DuFramework } from "@uipath/uipath-typescript/document-understanding"; | ||
| import { useEffect, useState } from "react"; | ||
| - **A Document Understanding workflow** hands over the `ContentValidationData` that its _Create Document Validation Artifacts_ activity outputs (IntelligentOCR, DocumentUnderstanding.Activities). Pass it as `data`. | ||
| - **A Flow IDP extract node** hands over a `ProcessedDocument` (IXP). Pass it as `processedDocument`. |
There was a problem hiding this comment.
| - **A Flow IDP extract node** hands over a `ProcessedDocument` (IXP). Pass it as `processedDocument`. | |
| - **A Flow IXP extract node** hands over a `ProcessedDocument` (IXP). Pass it as `processedDocument`. |
| Your workflow decides the contract: | ||
|
|
||
| > **Note: Theming** | ||
| > Add either a `light` or `dark` class to your HTML `<body>` element to enable proper theming. | ||
|
|
||
| ```tsx | ||
| import { | ||
| configureValidationStationWc, | ||
| ValidationStation, | ||
| } from "@uipath/ui-widgets-validation-station"; | ||
| import { UiPath } from "@uipath/uipath-typescript/core"; | ||
| import type { DuFramework } from "@uipath/uipath-typescript/document-understanding"; | ||
| import { useEffect, useState } from "react"; | ||
| - **A Document Understanding workflow** hands over the `ContentValidationData` that its _Create Document Validation Artifacts_ activity outputs (IntelligentOCR, DocumentUnderstanding.Activities). Pass it as `data`. | ||
| - **A Flow IDP extract node** hands over a `ProcessedDocument` (IXP). Pass it as `processedDocument`. | ||
|
|
||
| // Once, at app startup — loads the web component from `du-vs-wc`, next to | ||
| // your app's own root by default. See "Hosting the web component" below. | ||
| configureValidationStationWc(); | ||
| Send it as **① one payload**, with `sdk` + `data` or `sdk` + `processedDocument`, and the widget fetches the rest and saves the review. Or send **② the individual inputs** you already hold as `artifacts`, and save the review yourself. The quick start below takes ①. | ||
|
|
||
| function App({ task }: { task: { data: DuFramework.ContentValidationData } }) { | ||
| const [sdk, setSdk] = useState<UiPath | null>(null); | ||
| | Widget | DU ① | DU ② | IXP ① | IXP ② | | ||
| | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--: | :--: | :---: | :---: | | ||
| | `ValidationStation`, the whole screen | ✓ | ✓ | ✓ | ✓ | | ||
| | [Subcomponents](https://github.com/UiPath/uipath-ui-widgets/blob/develop/packages/validation-station/docs/validation-station-subcomponents.md) `CompactFieldsForm`, `CompactTableEditor`, `DocumentViewer` | ✓ | ✓ | ✓ | ✓ | | ||
| | [Subcomponents](https://github.com/UiPath/uipath-ui-widgets/blob/develop/packages/validation-station/docs/validation-station-subcomponents.md) `CompactBusinessRules`, `CompactDocTypeField` | ✓ | ✓ | — | — | | ||
|
|
||
| useEffect(() => { | ||
| const init = async () => { | ||
| const uipath = new UiPath({ | ||
| baseUrl: "https://api.uipath.com", | ||
| orgName: "your-org", | ||
| tenantName: "your-tenant", | ||
| clientId: "your-client-id", | ||
| // `OR.Buckets` is the widget's own need; `OR.Tasks` is for the host | ||
| // code that fetches the task and completes it after submit. | ||
| scope: "OR.Buckets OR.Tasks", | ||
| redirectUri: "http://localhost:3000/callback", | ||
| }); | ||
| await uipath.initialize(); | ||
| setSdk(uipath); | ||
| }; | ||
| init(); | ||
| }, []); | ||
| Start with `ValidationStation`. Reach for the subcomponents only when the standard screen does not fit your layout. |
There was a problem hiding this comment.
| } | ||
| ```bash | ||
| npm install @uipath/ui-widgets-validation-station @uipath/uipath-typescript @uipath/coded-action-app react@^19.2.0 react-dom@^19.2.0 | ||
| npm install --save-dev @uipath/du-validation-station-wc@1.0.0-rc.6 |
There was a problem hiding this comment.
why is this needed to be installed? Isn't a dependency of @uipath/ui-widgets-validation-station and it's installed automatically?
| return <ValidationStation sdk={sdk} data={task.data} />; | ||
| } | ||
| ```bash | ||
| npm install @uipath/ui-widgets-validation-station @uipath/uipath-typescript @uipath/coded-action-app react@^19.2.0 react-dom@^19.2.0 |
There was a problem hiding this comment.
whould be nice to know here which deps are mandatory and which are optional. My understanding is that @uipath/coded-action-app is optional, if you simply want a self hosted app.
| 6. **Save-as-draft needs a flag.** Set `options={{ emitDtoStateChanges: true }}` on `CompactFieldsForm` or the save-as-draft flow (and `onSaveAsDraft`) never fires. | ||
| | Component | What it is | Edits | Saves | Extra props worth knowing | | ||
| | ---------------------- | ------------------------------------------ | ----------------- | ------- | -------------------------------------------------------------------------- | | ||
| | `DocumentViewer` ⚠️ | The page and text viewer, with highlights | — | — | `onTokensSelect`, `onCurrentPageChange`, `goToPage` | |
There was a problem hiding this comment.
I feel like the main readme file is wahy to verbose and complex. I like the subpages that are focused on one thing (data sources, events, upgrading, hosting, etc). I think the main readme should be pretty slim and extract from there a few other subpages: quick start guide, props -- I/O, the 2 paths (CVD & ProcessedDocument), troubleshooting.
| `@uipath/uipath-typescript` `>= 1.5.1` is required. `@uipath/coded-action-app` is only for a Coded Action App. The package is written in TypeScript, and every type it uses is exported from its root. | ||
|
|
||
| `theme` defaults to `"light"` and `language` defaults to `ValidationStationLanguage.English`, so the minimal mount just needs `sdk` and `data`. | ||
| ## Host the web component |
There was a problem hiding this comment.
there's a dedicated subpage for this, why having this section here as well?
|
Review from the point of view of a coding agent that has to build a Coded Action App from these docs. I checked the claims against Things that break the build
Token cost and how agents get to the docs
The
|

Why
The Validation Station README had grown into a full reference (908 lines). It is mostly read by FDEs with a customer case and DU data to validate, usually in a Coded Action App. It should get them to a working setup without wading through every prop and release note.
What
The README now follows this order: pick your path → install → host the web component → quick start → saving → core props → troubleshooting → going further. It opens with a diagram, How documents get into the widgets: a Document Understanding workflow's
ContentValidationDataor a Flow IDP extract node'sProcessedDocument, sent as one payload or as individual inputs, toValidationStationor its subcomponents.validation-station/README.mdvalidation-station/docs/validation-station-subcomponents.mdThe exported-types list and the prediction docs (
predictedExtractionResult,EnablePredictionDiff, and their UPGRADING entries) are dropped. The rest moves to linked pages:docs/data-sources.md: owning the round trip, IXP (ProcessedDocument)docs/events-and-commands.md: all props, save/draft/exception flows, document state, overlay, taxonomy editor, languages, examplesdocs/hosting.md: hosting in depth, Vite, fonts, notesUPGRADING.md: WC release notes and migrating from 1.0.xdocs/assets/how-documents-get-in.svg: the diagramOut of scope: the Classification Station and Document Viewer READMEs are unchanged. Neither package is published yet, and the Classification Station docs will need rework once its
ContentValidationDatainput is removed.Notes for review
develop, so they resolve only after merge. The docs site renders only the README; thedocs/pages are reachable on GitHub.uipath-typescriptsamples exist onmain; every export and prop in the snippets exists in the package source. The snippets were not compiled.completeTaskshape.🤖 Generated with Claude Code