Skip to content

Show getResourceKey on large instances; drop analytics skeleton#81

Merged
Panthevm merged 2 commits into
masterfrom
fix-fhirpath-lsp-search-count-and-analytics-skeleton
May 19, 2026
Merged

Show getResourceKey on large instances; drop analytics skeleton#81
Panthevm merged 2 commits into
masterfrom
fix-fhirpath-lsp-search-count-and-analytics-skeleton

Conversation

@Panthevm
Copy link
Copy Markdown
Collaborator

Summary

  • Bump submodule aidbox-ts-sdk to pick up aidbox-fhirpath-lsp search pagination fix (fhirpath-lsp: paginate StructureDefinition search with _count=1000 aidbox-ts-sdk#125). On production-sized boxes (>100 StructureDefinitions), /fhir/StructureDefinition?kind=resource returns only the first 100 entries with no link.next, so the LSP's getResourceTypes() did not see e.g. Patient/Resource. As a result FHIRPath completion hid getResourceKey/getReferenceKey in the ViewDefinition Builder.
  • Wire the dependency to file:aidbox-ts-sdk/packages/aidbox-fhirpath-lsp so the fix ships now without waiting for an npm release; build the package in preinstall; add a pnpm override for @health-samurai/aidbox-client so the submodule's workspace:^ link resolves locally.
  • Drop the three-bar Skeleton placeholder on /analytics, /analytics/queries, /analytics/views. The recents list now renders empty/data directly without a flicker.

Test plan

  • On a box with >100 StructureDefinition resources, open /u/analytics/views/create → type get in a COLUMN path; getResourceKey and getReferenceKey should appear.
  • Visit /u/analytics, /u/analytics/queries, /u/analytics/views; no skeleton placeholder is shown during the initial load.
  • pnpm install from a clean checkout succeeds (preinstall builds aidbox-client, react-components, and aidbox-fhirpath-lsp).
  • make build-aidbox-ui in sansara/box produces a working bundle.

Dependencies

Panthevm added 2 commits May 19, 2026 19:08
… fix

Submodule bump on aidbox-ts-sdk: paginate StructureDefinition search with
_count=1000 (HealthSamurai/aidbox-ts-sdk#125). Without it, large Aidbox
instances (>100 StructureDefinitions) drop Patient/Resource from
getResourceTypes(), and FHIRPath completion stops suggesting
getResourceKey/getReferenceKey.

Switch the npm dep to file:aidbox-ts-sdk/packages/aidbox-fhirpath-lsp so
the fix is consumed without waiting for an npm release; add a
pnpm.overrides for @health-samurai/aidbox-client so the submodule's
workspace:^ link resolves, and build the LSP package in preinstall.
Copy link
Copy Markdown
Contributor

@ryukzak ryukzak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TSDR

@Panthevm Panthevm merged commit 66777cf into master May 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants