feat: Insurance Summary Card on Home Screen#1
Open
kopciuch97 wants to merge 9 commits intodevelopfrom
Open
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add INSURANCE_SUMMARY_CARD feature flag with remote kill switch - Add @immutable annotations to InsuranceSummaryData and PolicyInfo - Add accessibility contentDescription to InsuranceSummaryCard - Change toInsuranceSummary() visibility from private to internal - Remove InsuranceSummaryDataTest (tested constructors, not behavior) - Add 8-argument combine() overload for feature flag flow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Navigate to Insurances tab using popUpTo + saveState/restoreState so the Home tab remains accessible via bottom navigation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Research, specification, implementation plan, UI mockups, work-log, and verification report — full traceability from ticket to delivery. Made-with: Cursor
Rename AI SDLC documentation directory from .maister to .ai and update all internal references. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Insurance Summary Card
Shows active insurance policies at a glance on the Home screen — policy names, monthly cost, next payment date, and a "View Details" CTA to the Insurances tab.
What changed
GraphQL & Domain — Extended
QueryHome.graphqlwithexposureDisplayName,productVariant.displayName, andfutureChargefields. NewInsuranceSummaryDatadomain model.Use Case —
GetHomeDataUseCaseImplmaps new GraphQL fields toInsuranceSummaryData. Returnsnullwhen no active contracts (card hidden). Demo mode includes mock data.Presenter —
HomePresenterpropagates summary data throughSuccessData→HomeUiState.Success.UI — New
InsuranceSummaryCardcomposable usingHedvigCard,HedvigTextButton, and design system typography. Rendered inHomeLayoutcenter group afterClaimStatusCards. Navigation wired throughHomeGraph→HedvigNavHost.Feature flag —
Feature.INSURANCE_SUMMARY_CARDfor remote toggling.Architecture Decisions
Test Coverage
Known Limitations
AI SDLC Process
This feature was developed using an AI-augmented SDLC with full traceability:
Standards automatically discovered and applied: coding-style, conventions, error-handling, test-writing, minimal-implementation, components, accessibility, commenting.
Full documentation:
.ai/tasks/development/2026-04-07-insurance-summary-card/Merge note