diff --git a/test.json b/test.json new file mode 100644 index 0000000..79a850f --- /dev/null +++ b/test.json @@ -0,0 +1,1472 @@ +[ + { + "repo_name": "WorldHealthOrganization/anthro", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 7, + "issues_count": 26, + "open_issues_count": 3, + "closed_issues_count": 23, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 18, + "license_name": "GNU General Public License v3.0", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/smart-anc", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 10, + "issues_count": 23, + "open_issues_count": 20, + "closed_issues_count": 3, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 18, + "license_name": "Other", + "watchers_count": 15 + }, + { + "repo_name": "WorldHealthOrganization/smart-core", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 4, + "issues_count": 3, + "open_issues_count": 2, + "closed_issues_count": 1, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 3, + "license_name": "Other", + "watchers_count": 11 + }, + { + "repo_name": "WorldHealthOrganization/smart-data-dictionary", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 107, + "open_issues_count": 0, + "closed_issues_count": 107, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/smart-ig-template-who", + "collaborators_count": 16, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 5, + "issues_count": 3, + "open_issues_count": 2, + "closed_issues_count": 1, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 11, + "license_name": "", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/smart-fp", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 1, + "open_issues_count": 1, + "closed_issues_count": 0, + "open_pull_requests_count": 2, + "merged_pull_requests_count": 2, + "license_name": "Other", + "watchers_count": 10 + }, + { + "repo_name": "WorldHealthOrganization/smart-sti", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 2, + "license_name": "Other", + "watchers_count": 10 + }, + { + "repo_name": "WorldHealthOrganization/app", + "collaborators_count": 37, + "projects_count": 2, + "discussions_count": 0, + "forks_count": 502, + "issues_count": 890, + "open_issues_count": 103, + "closed_issues_count": 787, + "open_pull_requests_count": 46, + "merged_pull_requests_count": 690, + "license_name": "Other", + "watchers_count": 104 + }, + { + "repo_name": "WorldHealthOrganization/godata", + "collaborators_count": 24, + "projects_count": 1, + "discussions_count": 6, + "forks_count": 38, + "issues_count": 13, + "open_issues_count": 7, + "closed_issues_count": 6, + "open_pull_requests_count": 14, + "merged_pull_requests_count": 62, + "license_name": "GNU General Public License v3.0", + "watchers_count": 20 + }, + { + "repo_name": "WorldHealthOrganization/xform-covid-casecount-ecdc", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 216, + "open_issues_count": 216, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/xform-covid-casecount-who", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 8, + "open_issues_count": 7, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 7 + }, + { + "repo_name": "WorldHealthOrganization/xform-covid-casecount-jhu", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 8, + "open_issues_count": 8, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 7 + }, + { + "repo_name": "WorldHealthOrganization/xform-covid-casecount-wom", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 152, + "open_issues_count": 33, + "closed_issues_count": 119, + "open_pull_requests_count": 2, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/casecountapp", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/geoutils", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/geocard", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/covid-casecountapp", + "collaborators_count": 21, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 4, + "issues_count": 542, + "open_issues_count": 396, + "closed_issues_count": 146, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 1, + "license_name": "", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/covid-data-registry", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 9, + "open_issues_count": 0, + "closed_issues_count": 9, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 6 + }, + { + "repo_name": "WorldHealthOrganization/Bulk-Load-blessed", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 3, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/metadata-synchronization-blessed", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 5, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/user-extended-app-blessed", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/d2-docker", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/landing-page-app-blessed", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/dhis2-gee-app-blessed", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/finderquery", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 22, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/DHIS2-standard-packages-nonHF", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 4, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 22, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/active-directory-dotnet-graphapi-b2bportal-web", + "collaborators_count": 10, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "MIT License", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/open-source-communication-channel", + "collaborators_count": 13, + "projects_count": 3, + "discussions_count": 15, + "forks_count": 6, + "issues_count": 40, + "open_issues_count": 7, + "closed_issues_count": 33, + "open_pull_requests_count": 2, + "merged_pull_requests_count": 35, + "license_name": "Other", + "watchers_count": 16 + }, + { + "repo_name": "WorldHealthOrganization/language-godata", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/dhis2-godata-interoperability", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/godata-api-wrapper", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/DHIS2-country-customizations", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/d2-cloner", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/d2-portainer", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/d2-portainer-config", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/ddcc", + "collaborators_count": 16, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 19, + "issues_count": 31, + "open_issues_count": 21, + "closed_issues_count": 10, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 59, + "license_name": "Other", + "watchers_count": 15 + }, + { + "repo_name": "WorldHealthOrganization/training-app-blessed", + "collaborators_count": 11, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/pygodata", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 3, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/DHIS2-tutorials", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/InSSIDE", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/GoContactR", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/smart-emcare", + "collaborators_count": 25, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 210, + "open_issues_count": 119, + "closed_issues_count": 91, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 2, + "license_name": "", + "watchers_count": 7 + }, + { + "repo_name": "WorldHealthOrganization/smart-ig-starter-kit", + "collaborators_count": 20, + "projects_count": 2, + "discussions_count": 0, + "forks_count": 9, + "issues_count": 17, + "open_issues_count": 17, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 2, + "license_name": "Other", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/push_to_emrs", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/WIDP-DHIS2-scripts", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/godata-r-reports", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 2, + "open_issues_count": 1, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 1, + "license_name": "MIT License", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-transactions-mediator", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 5, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 2, + "merged_pull_requests_count": 14, + "license_name": "MIT License", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/teleport", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Apache License 2.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/godataR", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 13, + "open_issues_count": 7, + "closed_issues_count": 6, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 3, + "license_name": "Other", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/quittobacco-mobile", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/covid-hcwcasecontrol", + "collaborators_count": 10, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-tests", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Creative Commons Zero v1.0 Universal", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/anthroplus", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 1, + "open_issues_count": 0, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 3, + "license_name": "GNU General Public License v3.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/godata-guatemala", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-ips", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-shc", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-trust", + "collaborators_count": 19, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 2, + "license_name": "", + "watchers_count": 11 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-validator", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Apache License 2.0", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/smart-immunizations", + "collaborators_count": 24, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 3, + "issues_count": 1, + "open_issues_count": 1, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 72, + "license_name": "Other", + "watchers_count": 12 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-gateway-api-tests", + "collaborators_count": 14, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 4, + "license_name": "Apache License 2.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-gateway-lib", + "collaborators_count": 15, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 1, + "open_issues_count": 0, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 9, + "license_name": "Apache License 2.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/smart-trust-network-gateway", + "collaborators_count": 21, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 3, + "issues_count": 25, + "open_issues_count": 8, + "closed_issues_count": 17, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 35, + "license_name": "Apache License 2.0", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/malaria-assessment-toolkit", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/pbkazios", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/godata-dhis2-interop-app", + "collaborators_count": 15, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 5, + "issues_count": 10, + "open_issues_count": 10, + "closed_issues_count": 0, + "open_pull_requests_count": 10, + "merged_pull_requests_count": 3, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-trusted-party-reference-implementation", + "collaborators_count": 15, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 1, + "open_issues_count": 0, + "closed_issues_count": 1, + "open_pull_requests_count": 3, + "merged_pull_requests_count": 4, + "license_name": "Apache License 2.0", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/who-verifier-app", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Apache License 2.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/ddcc-compliance-testing-framework", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Apache License 2.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/stepsMDA2021", + "collaborators_count": 15, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ACT-A-HSRC-Data-Collector", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/godata-ESRI-SITREP-toolbox", + "collaborators_count": 13, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 10, + "open_issues_count": 9, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 5, + "license_name": "GNU General Public License v3.0", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/godata-extract-qgis-plugin", + "collaborators_count": 13, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 11, + "open_issues_count": 0, + "closed_issues_count": 11, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 15, + "license_name": "MIT License", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/HospitalCareChildTurkmenistan", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/stepsWHSapp", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/ems2-common-services", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/openid", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/MISP", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU Affero General Public License v3.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/snt", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 17, + "open_issues_count": 6, + "closed_issues_count": 11, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 32, + "license_name": "Other", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/lab2godata", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 2, + "open_issues_count": 1, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/Leishmaniasis-Country-Profile-Generator", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 1, + "license_name": "GNU General Public License v3.0", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/glass-amr-app", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v3.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/smart-trust", + "collaborators_count": 21, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 4, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 5, + "license_name": "Other", + "watchers_count": 7 + }, + { + "repo_name": "WorldHealthOrganization/fhir", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/mme", + "collaborators_count": 10, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/bmat", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 2, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "BSD 3-Clause \"New\" or \"Revised\" License", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/collaboratory-epiparameter-community", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 12, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "MIT License", + "watchers_count": 10 + }, + { + "repo_name": "WorldHealthOrganization/smart-emcare-irq", + "collaborators_count": 13, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 6, + "open_issues_count": 5, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 2, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/smart-emcare-cmr", + "collaborators_count": 18, + "projects_count": 1, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 7, + "open_issues_count": 6, + "closed_issues_count": 1, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/smart-anc-mini", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 0, + "license_name": "Other", + "watchers_count": 5 + }, + { + "repo_name": "WorldHealthOrganization/mnf-sdg-stunting-overweight", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/mnf-sdg-stunting-overweight-2023", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/mnf-anthro-analyzer-offline", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "GNU General Public License v2.0", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/tng-participants-dev", + "collaborators_count": 25, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 3, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 5, + "merged_pull_requests_count": 33, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/tng-participant-template", + "collaborators_count": 14, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 4, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 4, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/smart-ig-empty", + "collaborators_count": 13, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 2, + "open_issues_count": 0, + "closed_issues_count": 2, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 3, + "license_name": "Other", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/tng-key-sync", + "collaborators_count": 15, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 1, + "merged_pull_requests_count": 2, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/tng-participants-uat", + "collaborators_count": 23, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 1, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 5, + "merged_pull_requests_count": 12, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/tng-participants-prod", + "collaborators_count": 20, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 10, + "license_name": "", + "watchers_count": 4 + }, + { + "repo_name": "WorldHealthOrganization/tng-ddcc-cli", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "Apache License 2.0", + "watchers_count": 1 + }, + { + "repo_name": "WorldHealthOrganization/smart-ot", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/mca-pretermbirths-analysis", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/.github", + "collaborators_count": 10, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/helm-repository", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 3 + }, + { + "repo_name": "WorldHealthOrganization/ParticipatorySurveillanceCommunity", + "collaborators_count": 11, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "", + "watchers_count": 2 + }, + { + "repo_name": "WorldHealthOrganization/nginx-ingress-whitelister", + "collaborators_count": 12, + "projects_count": 0, + "discussions_count": 0, + "forks_count": 0, + "issues_count": 0, + "open_issues_count": 0, + "closed_issues_count": 0, + "open_pull_requests_count": 0, + "merged_pull_requests_count": 0, + "license_name": "MIT License", + "watchers_count": 0 + } +] \ No newline at end of file diff --git a/who-metrics-ui/src/components/Chart.tsx b/who-metrics-ui/src/components/Chart.tsx deleted file mode 100644 index 25b519b..0000000 --- a/who-metrics-ui/src/components/Chart.tsx +++ /dev/null @@ -1,57 +0,0 @@ -"use client"; - -import { Card, AreaChart, Title, Text } from "@tremor/react"; - -const data = [ - { - Month: "Jan 21", - Sales: 2890, - Profit: 2400, - }, - { - Month: "Feb 21", - Sales: 1890, - Profit: 1398, - }, - { - Month: "March 22", - Sales: 3890, - Profit: 2980, - }, - { - Month: "Jan 22", - Sales: 3500, - Profit: 2780, - }, - { - Month: "Jan 22", - Sales: 5890, - Profit: 4980, - }, - { - Month: "Jan 22", - Sales: 3890, - Profit: 2980, - }, -]; - -const valueFormatter = (number: number) => - `$ ${Intl.NumberFormat("us").format(number).toString()}`; - -export default function Chart() { - return ( - - Performance - Comparison between Sales and Profit - - - ); -} diff --git a/who-metrics-ui/src/components/ChartView.tsx b/who-metrics-ui/src/components/ChartView.tsx index 8f59ebb..9eded25 100644 --- a/who-metrics-ui/src/components/ChartView.tsx +++ b/who-metrics-ui/src/components/ChartView.tsx @@ -5,92 +5,51 @@ import { Tooltip } from "@primer/react"; import { Flex, Title, - TabGroup, - TabList, - Tab, AreaChart, Text, Color, + Grid, + Col, + Card, } from "@tremor/react"; -import { useState } from "react"; +import KpiCard from "./KpiCard"; -const usNumberformatter = (number: number, decimals = 0) => - Intl.NumberFormat("us", { - minimumFractionDigits: decimals, - maximumFractionDigits: decimals, - }) - .format(Number(number)) - .toString(); - -type Formatter = (number: number) => string; - -interface Formatters { - [key: string]: Formatter; -} - -const formatters: Formatters = { - Sales: (number) => `$ ${usNumberformatter(number)}`, - Profit: (number) => `$ ${usNumberformatter(number)}`, - Customers: (number) => `${usNumberformatter(number)}`, - Delta: (number) => `${usNumberformatter(number, 2)}%`, -}; +const usNumberformatter = (number: number) => + Intl.NumberFormat("us").format(Number(number)).toString(); const Kpis = { - Sales: "Sales", - Profit: "Profit", - Customers: "Customers", + Members: "Members", + Collaborators: "Collaborators", }; -const kpiList = [Kpis.Sales, Kpis.Profit, Kpis.Customers]; +const kpiList = [Kpis.Members, Kpis.Collaborators]; export type DailyPerformance = { date: string; - Sales: number; - Profit: number; - Customers: number; + Members: number; + Collaborators: number; }; -export const performance: DailyPerformance[] = [ - { - date: "2023-05-01", - Sales: 900.73, - Profit: 173, - Customers: 73, - }, - { - date: "2023-05-02", - Sales: 1000.74, - Profit: 174.6, - Customers: 74, - }, - { - date: "2023-05-03", - Sales: 1100.93, - Profit: 293.1, - Customers: 293, - }, - { - date: "2023-05-04", - Sales: 1200.9, - Profit: 290.2, - Customers: 29, - }, -]; - export const ChartView = () => { - const [selectedIndex, setSelectedIndex] = useState(0); - const selectedKpi = kpiList[selectedIndex]; + const performanceData = []; + + const startDate = new Date(); + startDate.setFullYear(startDate.getFullYear() - 2); - const areaChartArgs = { - className: "mt-5 h-72", - data: performance, - index: "date", - categories: [selectedKpi], - colors: ["blue"] as Color[], - showLegend: false, - valueFormatter: formatters[selectedKpi], - yAxisWidth: 56, - }; + for (let i = 0; i < 24; i++) { + const date = new Date(startDate); + date.setMonth(date.getMonth() + i); + + const members = Math.floor(Math.random() * 100) + 100; + const collaborators = Math.floor(Math.random() * 200) + 50; + performanceData.push({ + date: `${date.toLocaleString("default", { + month: "short", + })} ${date.getFullYear()}`, + Members: members, + Collaborators: collaborators, + }); + } return ( <> @@ -102,35 +61,54 @@ export const ChartView = () => { alignItems="center" > Performance History - - + + Daily change per domain -
- - - Sales - Profit - Customers - - -
{/* web */} -
- -
- {/* mobile */} -
- -
+ + + + + + + + + + + ); }; diff --git a/who-metrics-ui/src/components/DarkModeButton.tsx b/who-metrics-ui/src/components/DarkModeButton.tsx new file mode 100644 index 0000000..50583f5 --- /dev/null +++ b/who-metrics-ui/src/components/DarkModeButton.tsx @@ -0,0 +1,30 @@ +"use client"; + +import { useTheme } from "next-themes"; +import { IconButton, useTheme as primerUseTheme } from "@primer/react"; +import { MoonIcon, SunIcon } from "@primer/octicons-react"; + +const DarkModeButton = () => { + const { theme, setTheme } = useTheme(); + const { setColorMode } = primerUseTheme(); + + const setThemePage = () => { + if (theme === "dark") { + setTheme("light"); + setColorMode("light"); + } else { + setTheme("dark"); + setColorMode("dark"); + } + }; + return ( + + ); +}; + +export default DarkModeButton; diff --git a/who-metrics-ui/src/components/DarkModeToggle.tsx b/who-metrics-ui/src/components/DarkModeToggle.tsx deleted file mode 100644 index 0f9289d..0000000 --- a/who-metrics-ui/src/components/DarkModeToggle.tsx +++ /dev/null @@ -1,33 +0,0 @@ -"use client"; - -import { useTheme } from "next-themes"; -import { Text, ToggleSwitch, useTheme as primerUseTheme } from "@primer/react"; - -const DarkModeToggle = () => { - const { theme, setTheme } = useTheme(); - const { setColorMode } = primerUseTheme(); - - const setThemePage = () => { - if (theme === "dark") { - setTheme("light"); - setColorMode("light"); - } else { - setTheme("dark"); - setColorMode("dark"); - } - }; - return ( - <> - - Toggle Mode - - setThemePage()} - /> - - ); -}; - -export default DarkModeToggle; diff --git a/who-metrics-ui/src/components/DashboardExample.tsx b/who-metrics-ui/src/components/DashboardExample.tsx index 7ed732c..5a99906 100644 --- a/who-metrics-ui/src/components/DashboardExample.tsx +++ b/who-metrics-ui/src/components/DashboardExample.tsx @@ -20,6 +20,7 @@ import { ChartView } from "./"; import KpiCard from "./KpiCard"; import { PerformanceHistoryTable } from "./PerformanceHistoryTable"; +import DarkModeButton from "./DarkModeButton"; type Kpi = { title: string; @@ -109,12 +110,27 @@ export const DashboardExample = () => { Lorem ipsum dolor sit amet, consetetur sadipscing elitr. - - Overview - Detail - + + + Overview + Detail + + + +
+ + + +
{kpiData.map((item) => ( { + const merticTextVal: string = metric + ? `${progress}% (${metric})` + : `${progress}%`; return ( @@ -34,13 +40,15 @@ const KpiCard = ({ {title} {metric} - {delta} + {delta && ( + {delta} + )} - {`${progress}% (${metric})`} + {merticTextVal} {target} - + ); }; diff --git a/who-metrics-ui/src/components/OldDashboard.tsx b/who-metrics-ui/src/components/OldDashboard.tsx deleted file mode 100644 index fac9a48..0000000 --- a/who-metrics-ui/src/components/OldDashboard.tsx +++ /dev/null @@ -1,117 +0,0 @@ -import { Card, Metric, Text, Flex, Grid, Title, BarList } from "@tremor/react"; -import Chart from "./Chart"; - -const website = [ - { name: "/home", value: 1230 }, - { name: "/contact", value: 751 }, - { name: "/gallery", value: 471 }, - { name: "/august-discount-offer", value: 280 }, - { name: "/case-studies", value: 78 }, -]; - -const shop = [ - { name: "/home", value: 453 }, - { name: "/imprint", value: 351 }, - { name: "/shop", value: 271 }, - { name: "/pricing", value: 191 }, -]; - -const app = [ - { name: "/shop", value: 789 }, - { name: "/product-features", value: 676 }, - { name: "/about", value: 564 }, - { name: "/login", value: 234 }, - { name: "/downloads", value: 191 }, -]; - -const data = [ - { - category: "Website", - stat: "10,234", - data: website, - }, - { - category: "Online Shop", - stat: "12,543", - data: shop, - }, - { - category: "Mobile App", - stat: "2,543", - data: app, - }, -]; - -const dataFormatter = (number: number) => - Intl.NumberFormat("us").format(number).toString(); - -const categories: Array<{ - title: string; - metric: string; - metricPrev: string; -}> = [ - { - title: "Sales", - metric: "$ 12,699", - metricPrev: "$ 9,456", - }, - { - title: "Profit", - metric: "$ 40,598", - metricPrev: "$ 45,564", - }, - { - title: "Customers", - metric: "1,072", - metricPrev: "856", - }, -]; - -export default function OldDashboard() { - return ( - <> - - {categories.map((item) => ( - - - {item.title} - - - {item.metric} - from {item.metricPrev} - - - ))} - - - {data.map((item) => ( - - {item.category} - - {item.stat} - Total views - - - Pages - Views - - - - ))} - - - - ); -}