PAY-364 Add coverages screen for TS example app#107
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds Coverage support to the application, enabling users to view their insurance coverage information in both table and JSON formats. It updates the SDK dependency to include the new Coverage endpoints and follows the established pattern for health data components.
- Added Coverage slice, reducer, page component, and column definitions
- Integrated Coverage into the router and health reducer
- Updated SDK dependency to version with Coverage support
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| bwell-typescript-react/src/store/healthData/coveragesSlice.ts | New Redux slice for fetching coverage data using SDK's financial.getCoverages endpoint |
| bwell-typescript-react/src/store/healthData/healthReducer.ts | Registered coverages reducer in the combined health reducer |
| bwell-typescript-react/src/pages/Coverages.tsx | New page component to display coverage data with table/JSON toggle |
| bwell-typescript-react/src/column-defs.ts | Added COVERAGE_COLUMNS definitions and reformatted existing code with consistent styling |
| bwell-typescript-react/src/Router.tsx | Added /coverages route |
| bwell-typescript-react/package.json | Updated SDK version to 2.0.0-beta-rc.1762237318 |
| bwell-typescript-react/package-lock.json | Updated lockfile with new SDK version |
| .gitignore | Added .npmrc to ignored files |
Files not reviewed (1)
- bwell-typescript-react/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "@emotion/react": "^11.11.4", | ||
| "@emotion/styled": "^11.11.5", | ||
| "@icanbwell/bwell-sdk-ts": "^2.0.0-beta-rc.1762170538", | ||
| "@icanbwell/bwell-sdk-ts": "2.0.0-beta-rc.1762237318", |
There was a problem hiding this comment.
The SDK version should use a caret (^) prefix for consistent dependency management, matching the pattern used by other dependencies in the file. This was removed from the original version ^2.0.0-beta-rc.1762170538. Change to ^2.0.0-beta-rc.1762237318 to allow compatible minor/patch updates.
| "@icanbwell/bwell-sdk-ts": "2.0.0-beta-rc.1762237318", | |
| "@icanbwell/bwell-sdk-ts": "^2.0.0-beta-rc.1762237318", |
|
Hello, doing some clean up here. @AnmolGodiyal10, can you address the comments from the bots and resolve the conflicts? |
Ticket: https://icanbwell.atlassian.net/browse/PAY-364