-
Notifications
You must be signed in to change notification settings - Fork 437
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
Plausible: Redact IDs in goal urls and removed patient id from goal trigger props #6076
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@rithviknishad 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 🙌. |
WHAT
🤖 Generated by Copilot at d6eb840
Refactored the code for sending pageview and custom events to Plausible with redacted URLs. Removed
patientId
from various components and actions that did not need it, simplifying the code and reducing API calls. Affected files includePlausible.tsx
,ConsultationDetails.tsx
,Feed.tsx
,PatientHome.tsx
, andHL7PatientVitalsMonitor.tsx
.Proposed Changes
triggerGoal
#6073manual
extension back.@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at d6eb840
triggerPageView
togetRedactedUrl
and change it to return a string instead of sending an event (link)useLocationChange
anduseEffect
hooks to callplausible
instead oftriggerPageView
(link)plausible
function to wrap the globalplausible
variable and add the redacted URL and other data to the event (link)patientId
property from various action payloads and component props (link, link, link, link, link, link, link, link, link)patientId
fromcreateConsultation
andupdateConsultation
actions inConsultationDetails.tsx
(link, link)patientId
fromFeed
component props andgetConsultationFeed
,createDailyRound
, andcreateInvestigation
actions inFeed.tsx
(link, link, link, link, link)patientId
fromtriggerGoal
andplausible
function calls inPatientHome.tsx
andHL7PatientVitalsMonitor.tsx
(link, link)