Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for hcx communication #5473

Closed
wants to merge 1 commit into from
Closed

Conversation

khavinshankar
Copy link
Member

@khavinshankar khavinshankar commented May 18, 2023

WHAT

🤖 Generated by Copilot at 4f5ca89

The pull request adds a new feature for managing HCX claims and communications in the frontend. It introduces a new ClaimCard component that displays the claim details and allows the user to toggle the communication view. It also adds new actions, types, and API endpoints for interacting with the HCX server. It updates the UI and functionality of the existing DischargeModal and FileUpload components to use the new feature. It also makes some minor style and configuration changes in vite.config.ts and useConfig.ts.

Proposed Changes

  • Fixes #issue?
  • Change 1
  • Change 2
  • More?

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at 4f5ca89

  • Enable HCX features in the UI by always returning enable_hcx: true in the useConfig hook (link)
  • Add ClaimCard component to render claim information and communication in a compact and interactive design (link)
  • Replace ClaimDetailCard component with ClaimCard component in ConsultationClaims and DischargeModal components (link, link, link)
  • Rename ClaimDetailCard component to ClaimCardInfo and move it to src/Components/HCX/ClaimCardInfo.tsx (link)
  • Modify ClaimCardInfo component to remove unnecessary div wrappers, add CareIcon component to toggle communication view, and change flex direction (link, link, link)
  • Add ClaimCardCommunication component to render messages and responses related to a claim, and allow adding, deleting, and submitting responses (link)
  • Add SendCommunicationModal component to render a modal dialog for uploading supporting documents and sending communication to HCX server (link)
  • Add HCXCommunicationModel interface to define the shape of the communication object (link)
  • Add communications object to HCXActions to define actions for creating, reading, updating, deleting, and listing communications (link)
  • Add sendCommunication function to HCXActions to dispatch request to HCX server with communication id as payload (link)
  • Add API endpoints for HCX communication features to src/Redux/api.tsx (link)
  • Modify FileUpload component to accept communicationId prop and filter file uploads by communication (link, link, link, link, link)
  • Reorder imports alphabetically in CareIcon, ConsultationClaims, FileUpload, and vite.config.ts (link, link, link, link)
  • Fix minor formatting issues in vite.config.ts (link, link, link)

@khavinshankar khavinshankar requested a review from a team May 18, 2023 06:05
@khavinshankar khavinshankar requested a review from a team as a code owner May 18, 2023 06:05
@vercel
Copy link

vercel bot commented May 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview May 18, 2023 6:05am

@netlify
Copy link

netlify bot commented May 18, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 4f5ca89
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6465c0399c1d080007d886b6
😎 Deploy Preview https://deploy-preview-5473--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented May 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions github-actions bot added cypress failed pull request with cypress test failure merge conflict pull requests with merge conflict labels May 18, 2023
@github-actions
Copy link

👋 Hi, @khavinshankar,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 1, 2023
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, This pr has been automatically closed because it has not had any recent activity. Thank you for your contributions. Feel free to repopen the pr.

@github-actions github-actions bot closed this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure merge conflict pull requests with merge conflict stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant