diff --git a/LICENSE b/LICENSE index c3a6afa..e22d2cc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ BSD 2-Clause License Copyright (c) 2024, Chenxiao (Charlie) Zhang +Copyright (c) 2024, Global Financing Facility Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/resources/icon.png b/resources/icon.png index 1b99175..eab336e 100644 Binary files a/resources/icon.png and b/resources/icon.png differ diff --git a/src/renderer/src/components/Accordion.jsx b/src/renderer/src/components/Accordion.jsx new file mode 100644 index 0000000..0dcdaab --- /dev/null +++ b/src/renderer/src/components/Accordion.jsx @@ -0,0 +1,40 @@ +import React, { useState } from 'react' + +// eslint-disable-next-line react/prop-types +export const Accordion = ({ title, children, isOpen, toggleAccordion }) => { + return ( +
+ + {isOpen &&
{children}
} +
+ ) +} + +// eslint-disable-next-line react/prop-types +export const AccordionGroup = ({ children }) => { + const [openAccordionId, setOpenAccordionId] = useState(null) + + const toggleAccordion = (id) => { + if (openAccordionId === id) { + setOpenAccordionId(null) // Close this accordion if it's already open + } else { + setOpenAccordionId(id) // Open the clicked accordion and close others + } + } + + // Clone each child and inject the open state and toggle function + const childrenWithProps = React.Children.map(children, (child, index) => + React.cloneElement(child, { + isOpen: openAccordionId === index, + toggleAccordion: () => toggleAccordion(index) + }) + ) + + return
{childrenWithProps}
+} diff --git a/src/renderer/src/pages/About.jsx b/src/renderer/src/pages/About.jsx index 67a61c5..681ae54 100644 --- a/src/renderer/src/pages/About.jsx +++ b/src/renderer/src/pages/About.jsx @@ -1,4 +1,5 @@ import { useState } from 'react' +import { Accordion, AccordionGroup } from '../components/Accordion' const AboutPage = () => { const [emailContent, setEmailContent] = useState('') @@ -17,53 +18,136 @@ const AboutPage = () => { return (
-
-
-

Overview

+
+
+

Overview

- Welcome to the FASTR Data Downloader, your go-to solution for easily extracting data - from DHIS-2 data systems. Whether you are a health ministry official, researcher, NGOs, - or donor agency, the FASTR Data Downloader is designed to facilitate a streamlined - process for downloading DHIS2 data. + Welcome to the FASTR DHIS2 Data Downloader, your go-to solution for easily extracting + data from DHIS2 data systems. Whether you are a health ministry official, researcher, + NGOs, or donor agency, the FASTR DHIS2 Data Downloader is designed to facilitate a + streamlined process for downloading DHIS2 data.

-
-

Contact Us

-

- If you have any questions or need support, please don't hesitate to reach out: -

- +
+

Features

+ + +

+ Download DHIS2 data by selecting date ranges, data elements/indicators, organization + levels, units, and disaggregated dimensions. Data is downloaded in CSV format. +

+ Using the FASTR DHIS2 Data Downloader requires: +
    +
  • URL of the DHIS2 instance
  • +
  • Valid username
  • +
  • Valid password
  • +
+

+ Note: FASTR DHIS2 Data Downloader is not responsible for registering account for any + DHIS2 system and can only access to DHIS2 systems for which you have already + processed valid credentials. The Downloader will not transmit or store your DHIS2 + credentials to any places other than your laptop. +

+
+ +

+ Search for data elements/indicators by name or JSON ID. Access additional metadata + and download it as a CSV file. +

+
+ +

+ Record successful downloads, add notes, and quickly re-download past records. Option + to keep or erase history upon logging out. +

+
+
-
-

Send us a message

-
- - - + GitHub +
{' '} + under BSD-2 License. +

+
+ +
+

Our Team

+

+ The FASTR DHIS2 Data Downloader was developed by the Results and Learning team at the + Global Financing Facility for Women, Children and Adolescents (GFF). The Frequent + Assessments and System Tools for Resilience (FASTR) initiative, aims to enable + rapid-cycle monitoring for strengthening PHC systems and improving RMNCAH-N outcomes + through the timely and high-frequency analysis and use of data. +

+
+ +
+
+

Get In Touch

+

For support feedbacks or inquiries, contact us at:

+ +
+
+

Send us a message

+
+ + +
+
+
+ + {/* Acknowledgements */} +
+

Acknowledgements

+

+ We would like to thank Damola Sheriff Olajide with the West African Health Organization + who provided the software prototype for the FASTR DHIS2 Data Downloader. +

diff --git a/src/renderer/src/pages/Footer.jsx b/src/renderer/src/pages/Footer.jsx index 6fb5837..c4fb6a1 100644 --- a/src/renderer/src/pages/Footer.jsx +++ b/src/renderer/src/pages/Footer.jsx @@ -25,14 +25,6 @@ const Footer = () => {
- - Resources - {

Last updated: [Date]

Introduction

- Thank you for choosing to use [App Name]. We take your privacy seriously. This Privacy - Policy explains the types of information we do not collect through your use of [App Name], - and how we ensure your privacy is maintained. + Thank you for choosing to use FASTR DHIS2 Downloader ("We", "us", "the Downloader"). We take + your privacy seriously. This Privacy Policy explains the types of information we collect + through your use of the Downloader, and how we ensure your privacy is maintained.

-

Information We Do Not Collect

+

Information We Collect

- [App Name] does not collect or store any personal information from its users. The - application serves solely as a conduit for data transmission from our servers to your - device. + We do not collect or store any personal information from users. The application + serves solely as a conduit for data transmission from DHIS2 servers to your device.

Data Transmission

- While [App Name] does not collect personal information, it facilitates the downloading of - data from our servers. This data is not stored, processed, or analyzed by the application, - and we ensure that all transmissions are secure and encrypted using the latest protocols. + While we do not collect personal information, we facilitate the downloading of data from + DHIS2 servers. Some data is tempoararily stored, processed, or analyzed by the application + locally, and we ensure that all transmissions are secure and encrypted using the latest + protocols.

Security

- We are committed to ensuring the security of data transmissions through [App Name]. We - implement a variety of security measures to maintain the safety of your data during - transmission, including encryption and secure channels. + We are committed to ensuring the security of data transmissions. We implement a variety of + security measures to maintain the safety of your data during transmission, including + encryption and secure channels.

Changes to This Privacy Policy