Skip to content

Support the claim chat Information step (RND-2030)#3017

Open
hugokallstrom wants to merge 1 commit into
developfrom
feat/claim-intent-information-step
Open

Support the claim chat Information step (RND-2030)#3017
hugokallstrom wants to merge 1 commit into
developfrom
feat/claim-intent-information-step

Conversation

@hugokallstrom

Copy link
Copy Markdown
Contributor

Why

The agent-driven claim flow can return a ClaimIntentStepContentInformation step - a read-and-acknowledge notice, e.g. emergency-accommodation guidance when the member says their home is uninhabitable. The app has no fragment or renderer for that union member, so it falls into the NeedsUpdate branch: SubmitTaskUseCase treats the otherwise-successful response as a failure, retries six times (each retry re-submitting an already-completed step and getting an INTERNAL_ERROR back) and dead-ends the claim with an error. First hit by a real fire-claim test on staging 2026-07-10.

What

  • InformationFragment + ClaimIntentSubmitInformation mutation in the claim-chat GraphQL documents (the schema snapshot already declares the type)
  • StepContent.Information with INFO/CRITICAL severity; unknown severities degrade to INFO instead of raising NeedsUpdate
  • SubmitInformationUseCase + AcknowledgeInformation event wired through the presenter like the other submit mutations
  • InformationStep composable: HedvigNotificationCard (Info/Error styling per severity) + server-driven acknowledge button, registered in StepBottomContent
  • jvm tests: mapper coverage and an ImageComposeScene render test writing reference PNGs (the AGP screenshot plugin does not support KMP android library targets)

🤖 Generated with Claude Code

The agent-driven claim flow can return a ClaimIntentStepContentInformation
step (a read-and-acknowledge notice, e.g. emergency accommodation guidance
when the home is uninhabitable). The app had no fragment or renderer for it,
so the union member fell into the NeedsUpdate branch: SubmitTaskUseCase
treated the successful response as a failure, retried 6 times and surfaced
an error, dead-ending the claim.

Renders the notice as a HedvigNotificationCard (Info/Error styling for the
INFO/CRITICAL severities) with the server-driven button title, acknowledged
via the claimIntentSubmitInformation mutation. The severity mapping and the
rendered step are covered by jvm tests; the render test writes reference
PNGs via ImageComposeScene since the AGP screenshot plugin does not support
KMP android library targets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hugokallstrom hugokallstrom requested a review from a team as a code owner July 10, 2026 10:29
@notion-workspace

Copy link
Copy Markdown

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