Skip to content

chore(reports): drop the report-package chart cast; client ^0.5.6#222

Merged
jfrench9 merged 1 commit into
mainfrom
feature/retire-report-package-cast
Jul 23, 2026
Merged

chore(reports): drop the report-package chart cast; client ^0.5.6#222
jfrench9 merged 1 commit into
mainfrom
feature/retire-report-package-cast

Conversation

@jfrench9

Copy link
Copy Markdown
Member

What

Client 0.5.6 (typescript-client #153) added view.chart + row itemType to the report-package GraphQL query, so getReportPackage().items[].block now carries the chart arm and matches the chart-aware BlockView envelope. This removes the temporary bridging cast (and its now-unused EnvelopeBlock import) from the filed-report viewer, and bumps the client range to ^0.5.6.

The cast was never a @robosystems/core problem — core references the client's types live (one deduped client in the tree). It was purely the report-package query missing the chart selection; #153 fixed that at the source.

Verification

Typecheck passes without the cast on client 0.5.6 (it failed without it on 0.5.5 — the query gap is genuinely closed); full test:all green (174 tests), lockfile pinned to 0.5.6.

Client 0.5.6 adds view.chart + row itemType to the report-package
query, so getReportPackage's block type now matches the chart-aware
BlockView envelope. Removes the bridging cast (and its now-unused
EnvelopeBlock import) in the filed-report viewer. The earlier cast was
never a @robosystems/core issue — core references the client live; it
was the report-package query missing the chart selection.
@jfrench9
jfrench9 merged commit 3b6884d into main Jul 23, 2026
3 checks passed
@jfrench9
jfrench9 deleted the feature/retire-report-package-cast branch July 23, 2026 06:27
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