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

Track patient card button clicks #6521

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Oct 30, 2023

WHAT

🤖 Generated by Copilot at a6d44be

This file adds user action tracking and a dropdown menu to the patient card component. It uses triggerGoal to log the actions and useAuthUser to get the current user information.

Adds plausible tracking for button clicks on patient info card.

HOW

🤖 Generated by Copilot at a6d44be

  • Import Menu component from @headlessui/react to use in patient card dropdown menu (link)
  • Import triggerGoal function from ../../Integrations/Plausible.js and useAuthUser hook from ../../Common/hooks/useAuthUser.js to track user actions and goals on patient card (link)
  • Declare authUser variable using useAuthUser hook to get current logged in user's id (link)
  • Call triggerGoal function with buttonName, consultationId, and userId parameters to track user clicks on patient card action buttons (link, link, link, link)

@vercel
Copy link

vercel bot commented Oct 30, 2023

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

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2023 7:03am

@Ashesh3 Ashesh3 requested a review from a team October 30, 2023 07:02
@Ashesh3 Ashesh3 requested a review from a team as a code owner October 30, 2023 07:02
@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit a6d44be
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/653f551e9a830a000849ad3c
😎 Deploy Preview https://deploy-preview-6521--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 configuration.

@cypress
Copy link

cypress bot commented Oct 30, 2023

Passing run #1494 ↗︎

0 86 0 0 Flakiness 0

Details:

Track patient card button clicks
Project: CARE Commit: a6d44be5d8
Status: Passed Duration: 03:41 💡
Started: Oct 30, 2023 7:07 AM Ended: Oct 30, 2023 7:11 AM

Review all test suite changes for PR #6521 ↗︎

@nihal467
Copy link
Member

@khavinshankar can you review it

@khavinshankar khavinshankar merged commit bcd9730 into develop Oct 31, 2023
59 of 61 checks passed
@khavinshankar khavinshankar deleted the track-patient-buttons branch October 31, 2023 07:20
@github-actions
Copy link

@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

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.

None yet

3 participants