feat(samples): add datafabric-app sample#496
Open
amrit-agarwal-1 wants to merge 7 commits into
Open
Conversation
- track src/lib/ files (add gitignore exception for root .gitignore rule) - drop `as unknown as` cast in useEntity; use SDK's EntityGetResponse - drop `Array.isArray(...) ? ... : (... as any).items` dead branches in useEntity, useChoiceSet, useChoiceSets, useEntities — SDK return shapes are already typed correctly - drop redundant cast on insertRecordById in RecordEditor; EntityInsertResponse guarantees Id is present - rewrite widgetCompat shim without `as unknown as`
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
getAllRecords() and ChoiceSets.getById() each return one server-capped page per call — passing no options does not return every row. Loop the cursor and accumulate so CSV export covers all records and the choice-set value count is accurate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Review findingsBug fix needed:
Convention violations (module-level constants rule from agent_docs/conventions.md):
All three previous inline threads were correctly resolved — the as unknown as cast, dead Array.isArray branch, and unnecessary cast have been cleaned up. |
swati354
reviewed
Jun 9, 2026
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
0311571 to
da569db
Compare
Contributor
Review findingsOne new finding this run:
|
maninder-uipath
approved these changes
Jun 11, 2026
- Drop local shadcn copies + cn() utility - Tailwind v3 → v4; postcss reuses @uipath/apollo-wind/postcss - @import '@uipath/apollo-wind/tailwind.css' (apollo Vertex tokens + dark) - Components now from @uipath/apollo-wind/components/ui/* - toast via apollo-wind's sonner re-export - Remove obsolete patchWidgetStyles vite plugin (widget ships v4-compatible CSS now) - Rewire AG Grid + .uipath-datatable-container vars to apollo-core --color-* tokens - Two-tier border hierarchy: --color-border-disabled outer, --color-border-grid rows - Single column separator via Quartz theme vars; resize-handle visual hidden
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
…et workarounds @uipath/ui-widgets-datatable 1.0.1 ships self-contained compiled CSS (no host @layer dependency) and fixes the telemetry contract, so the local workarounds are no longer needed: - Bump @uipath/ui-widgets-datatable ^1.0.0 -> ^1.0.1. - Remove the telemetry shim (src/lib/widgetCompat.ts) and its import in main.tsx — the widget no longer calls a missing telemetryClient.track. - Drop the stale CSS-workaround comment in EntityDetail.tsx referencing the already-removed syncWidgetStyles plugin. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
c4c7c41 to
4af27e9
Compare
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
1 similar comment
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
|
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 this adds
A new sample under samples/data-fabric-app/ that demonstrates the UiPath TypeScript SDK against Data Fabric Entities and Choice Sets. Follows the same setup pattern as the existing samples (uipath.json + @uipath/coded-apps-dev, OAuth via the SDK, deploys as a Coded App).
SDK surface exercised
Entities service — getAll, getById, getAllRecords, getRecordById, insertRecordById, updateRecordById, deleteRecordById, uploadAttachment, downloadAttachment, deleteAttachment.
ChoiceSets service — getAll, getById.
Key UX
Two-pane layout. Sidebar with collapsible Entities + Choice Sets sections (powered by Entities.getAll and ChoiceSets.getAll), unified search across both, single refresh button.
Entity detail. Schema panel (collapsible), records grid backed by @uipath/ui-widgets-datatable, a modal RecordEditor for create/edit with required-field validation and attachment upload/delete, read-only RowInspector modal showing all fields (including system) via getRecordById, CSV export.
Choice set detail. Dedicated view with metadata header (description, last updated) and a values table.
Smart entity-kind detection. VDOs, Cases, InternalEntity, and SystemEntity are detected up-front and rendered with a friendly notice instead of a failing API call.
Light + dark theme.
Link: https://procodeapps.alpha.uipath.host/data-fabric-app