-
Notifications
You must be signed in to change notification settings - Fork 0
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
feature: 717 performance section #21
base: feature/add-event-tracker-map-with-merge
Are you sure you want to change the base?
feature: 717 performance section #21
Conversation
return apiToFuture( | ||
this.api.analytics.get({ | ||
dimension: [ | ||
`dx:${INDICATORS_717_PERFORMANCE.map(({ id }) => id).join(";")}`, |
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.
In the future we can get these Program Indicators from DataStore like Maps.
this.api.analytics.get({ | ||
dimension: [ | ||
`dx:${INDICATORS_717_PERFORMANCE.map(({ id }) => id).join(";")}`, | ||
"pe:THIS_YEAR", |
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.
Period dimension has to be this year?
const percent = percentObj ? percentObj.value : 0; | ||
const count = countObj ? countObj.value : 0; | ||
|
||
let color: "green" | "red" | "grey" | "normal" | undefined; |
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.
Maybe better to create a function to get the color
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.
Thanks @9sneha-n ! Just a couple of comments (or now that Florian is not here should I chage it?)
📌 References
📝 Implementation
📹 Screenshots/Screen capture
🔥 Notes to the tester