fix(selectors): paginate SharePoint sites and lists

Merged
BI
2mo ago
+142-43

Summary

  • replace the silent ten-page SharePoint site/list drain with cursor-backed Microsoft Graph pagination
  • expose provider-side site search while keeping list search local
  • preserve direct site/list detail hydration, credential bindings, abort propagation, and Graph destination validation
  • keep Excel consent issue #7197 separate and out of scope

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other

Testing

  • bun run --cwd apps/sim test lib/selectors/server/providers/sharepoint.test.ts lib/selectors/server/providers/microsoft.test.ts lib/selectors/manifest.test.ts hooks/queries/selectors.test.tsx — 4 files, 28 tests passed
  • SharePoint provider coverage verifies site/list cursor continuation, site search forwarding, invalid Graph destination rejection, and existing direct detail hydration
  • bun run check:api-validation:strict — passed
  • bun run check:fork-dependent-coverage — passed
  • bun run check:client-boundary — passed
  • scoped Biome check and git diff --check — passed
  • bun run --cwd apps/sim type-check currently fails in unrelated files on the staging base: workflow-output-selector types and the new color utility export
  • live Microsoft Graph validation was not performed because no native SharePoint tenant credential was available

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

Not applicable; no live SharePoint tenant was available for browser validation.