Skip to content

fix(ledger): a report package's block selects its entity - #260

Merged
jfrench9 merged 1 commit into
mainfrom
bugfix/report-package-entity
Oct 9, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
bugfix/report-package-entity

Conversation

@jfrench9

@jfrench9 jfrench9 commented Oct 9, 2026

Copy link
Copy Markdown
Member

Summary

2.10.0 (#259) added entityId to the information-block documents, which makes it a required key on InformationBlock. The report package's items[].block selection didn't get it, so a report block stopped typing as an InformationBlock. roboledger-app's report page passes one to the same BlockView the close panels use, and fails typecheck on 2.10.0.

  • reportPackage selects entityId on each item's block.
  • A compile-time assertion in LedgerClient.ts checks that ReportPackageItem['block'] is assignable to InformationBlock, so the two selections can't drift apart again. Verified that it fails without the query fix.

Patch, as the follow-on to 2.10.0 (→ 2.10.1). Like 2.10.0, it names a field the server serves from robosystems #1752.

Test plan

  • npm run generate:graphql against the local stack
  • typecheck, lint, format; npm test 426 passed
  • roboledger-app's typecheck on 2.10.0 fails only at reports/[id]/content.tsx, which is this mismatch

🤖 Generated with Claude Code

2.10.0 added entityId to the information-block documents but not to the
report package's block, so a report block no longer typed as an
InformationBlock. A type assertion keeps the two selections in step.
@jfrench9
jfrench9 merged commit 2dc26e9 into main Oct 9, 2026
5 checks passed
@jfrench9
jfrench9 deleted the bugfix/report-package-entity branch October 9, 2026 05:21
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.

1 participant