Conversation
tokland
left a comment
There was a problem hiding this comment.
I've checked the core (let me know if I have to check the feature). Looks good, just some comments:
src/compositionRoot.ts
Outdated
| config: getExecute({ | ||
| get: new GetConfig(configRepository), | ||
| }), | ||
| attachements: getExecute({ |
There was a problem hiding this comment.
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.
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.
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.
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