-
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/attachment report #22
base: development
Are you sure you want to change the base?
Conversation
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.
I've checked the core (let me know if I have to check the feature). Looks good, just some comments:
src/compositionRoot.ts
Outdated
@@ -45,6 +49,10 @@ export function getCompositionRoot(api: D2Api) { | |||
config: getExecute({ | |||
get: new GetConfig(configRepository), | |||
}), | |||
attachements: getExecute({ |
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.
typo: attachments, in variables/functions and file names.
text: "Download CSV", | ||
icon: <StorageIcon />, | ||
onClick: async () => { | ||
if (!sorting) return; |
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 we can set an initial default sorting (in the useState)?
@@ -0,0 +1,46 @@ | |||
import React from "react"; |
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.
This file is exactly the same as data-comments-list/FiltersBox.ts
and it's unlikely their functionality will diverge, it's a generic component, so it can be moved to another folder and used in both places. Use prop children
.
}, [options]); | ||
} | ||
|
||
function useMemoOptionsFromNamedRef(options: NamedRef[]) { |
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.
These two functions are repeated in many places, they can be abstracted to some helper method.
Reviewpad Report
|
AI-Generated Summary: This pull request introduces new features related to the handling of NHWA attachments in the application. It provides users with the ability to view and download NHWA attachment reports. Here are the significant changes:
These updates will enhance the functionality of the application by providing more comprehensive and efficient handling of NHWA attachments data. |
AI-Generated Summary: This pull request includes multiple changes to support a new feature known as "NHWA Attachments".
The changes primarily aim to provide user ability to download and view NHWA attachments . |
AI-Generated Summary: This pull request makes numerous changes to add a new feature related to NHWA attachments reporting. It makes modifications to README.md to include a new variant. Updates to i18n translations for English and Spanish locales indicate added translations related to the new feature. It introduces multiple new files in the Further, it includes new React component Updates to existing files like There's also a new SQL view added for NHWA attachments. This pull request looks like an effort to add considerable new functionality related to handling and reporting NHWA attachments. |
📌 References
https://app.clickup.com/t/2k5fm6v
📝 Implementation
Added nhwa-attachments variant
already installed in dev:
https://extranet.who.int/dhis2-dev/dhis-web-reports/index.html#/standard-report/view/nRtut85yUKl
looks like the dockers don't have the files but load right in dev.
Started from a copy of nhwa-comments
the report needs the following sqlview:
https://extranet.who.int/dhis2-dev/dhis-web-maintenance/index.html#/edit/otherSection/sqlView/eXSJr2ZBJYJ
🎨 Screenshots
Download button
🔥 Notes to the tester