Skip to content

feat(ledger): listInformationBlockSummaries, the block list as identities and counts - #273

Merged
jfrench9 merged 1 commit into
mainfrom
feature/information-block-summaries
Oct 16, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
feature/information-block-summaries

Conversation

@jfrench9

Copy link
Copy Markdown
Member

Summary

Adds listInformationBlockSummaries to the ledger facade: the rows, filters, order and page of listInformationBlocks as identities and counts (factCount, connectionCount), read by the server in one query instead of an envelope build per block. The roboledger-app's Block Explorer and Plan page fill their rails from listInformationBlocks with limit: 200 and only need facts.length > 0; on a 77-block graph that call takes ~4 s. They move to this method once it ships.

Waits on the server: the informationBlockSummaries field lands with robosystems PR #1834, unreleased at the time of writing (prod is v1.18.1). Merge after that release is in production.

Changes

  • clients/graphql/queries/ledger/informationBlock.ts — LIST_INFORMATION_BLOCK_SUMMARIES document.
  • clients/graphql/generated/graphql.ts — regenerated (npm run generate:graphql against the local stack on the server branch): the InformationBlockSummary type, the query field and the typed document.
  • clients/LedgerClient.ts — listInformationBlockSummaries(graphId, options?), same options as listInformationBlocks; InformationBlockSummaryList type export.
  • clients/LedgerClient.test.ts — returns identities and counts, no atoms; passes limit and entityId.

Breaking Changes

None — additive to the stable tier (a new facade method and type). Client minor.

Testing

  • npm run test:all — validate, 446 tests, build: green.

Certification

  • I have the right to submit this work under the Apache 2.0 license, and do so. Where any part of it is owned by my employer, I have their permission.

🤖 Generated with Claude Code

…ties and counts

The rows, filters, order and page of listInformationBlocks, read by the
server in one query instead of an envelope build per block. The call
that fills a picker: factCount > 0 marks a block whose envelope carries
facts. Waits on the robosystems release carrying #1834.
@jfrench9
jfrench9 merged commit 2dbae0e into main Oct 16, 2026
5 checks passed
@jfrench9
jfrench9 deleted the feature/information-block-summaries branch October 16, 2026 04:02
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