feat(samples): add document-validation-subcomponents sample app#606
Conversation
Add a React + TypeScript + Vite sample that builds a custom document review workspace by composing the individual subcomponents exported by @uipath/ui-widgets-validation-station (DocumentViewer, CompactDocTypeField, CompactFieldsForm, CompactTableEditor, CompactBusinessRules) rather than the all-in-one ValidationStation component. - OAuth 2.0 authorization code + PKCE login via @uipath/uipath-typescript - Lists Document Validation tasks and hydrates one with its full payload - Shares bucket artifacts across subcomponents via a single instanceId - Supports complete, save-as-draft, and exception-report flows Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Review findingsNew issues posted this run:
|
Update both document-validation sample apps to use the published 1.0.1 npm release, replacing the local tgz reference in the subcomponents app. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-opened threads from prior reviewThree previously-resolved threads were re-opened because the requested changes were not made:
|
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…README Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-opened threads from prior reviewTwo previously-resolved threads were re-opened because the requested changes were not made:
The other two issues from the prior review (local |
Aligns document-validation-subcomponents-app with the check-samples example-config rule and the convention used by every other sample app. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Raina451
left a comment
There was a problem hiding this comment.
trying to understand, whats the difference between document-validation-subcomponents-app and existing one: https://github.com/UiPath/uipath-typescript/tree/main/samples/document-validation-app ?
Do we need 2 different samples?
CC: @maninder-uipath
Re-opened threads from prior reviewTwo previously-resolved threads were re-opened because the requested changes were not made:
|
|
@Raina451 Yes, both are intentional. The newly added one uses the individual subcomponents so users can build a custom layout; the other uses the full component for the standard layout. |
Raina451
left a comment
There was a problem hiding this comment.
minor comments. rest lgtm
|
@nickgatej can you also add this app metadata in docs/samples/index.html , ref: https://github.com/UiPath/uipath-typescript/pull/602/changes#diff-f32a7d2e6a232a50369df8c8ba3ffd5fede6afe02df88ea5ece244ac4c0e6718 |
… commit note Scope the subcomponents sample to OR.Tasks OR.Buckets OR.Folders.Read: folder resolution is read-only, so OR.Folders.Read suffices. Also removes the "Never commit uipath.json" note (the file is already gitignored) per review feedback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-opened threads from prior reviewTwo previously-resolved threads were re-opened because the requested changes were not made:
|
|



Summary
samples/document-validation-subcomponents-app) that builds a custom human-in-the-loop document review workspace by composing the individual subcomponents exported by@uipath/ui-widgets-validation-station—DocumentViewer,CompactDocTypeField,CompactFieldsForm,CompactTableEditor, andCompactBusinessRules— rather than the all-in-oneValidationStationcomponent.@uipath/uipath-typescriptSDK.Tasks.getAllwith an OData filter) and hydrates one with its full validation payload (Tasks.getByIdwithTaskType.DocumentValidation).useBucketArtifactshook and shares them across subcomponents via a singleinstanceId.Task.complete), save-as-draft, and exception-report (OrchestratorDuModule.submitExceptionReport) flows.document-validation-appsample, which uses the monolithicValidationStationcomponent.Test plan
npm installinsamples/document-validation-subcomponents-appnpm run buildsucceedsnpm run lintpassesnpm run dev— OAuth login, task list loads, subcomponents render and stay linked via sharedinstanceId🤖 Generated with Claude Code