-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from sbv-world-health-org-metrics/docs
Add documentation page and banner to new users
- Loading branch information
Showing
9 changed files
with
827 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Welcome to the Open-Source Metrics Documentation | ||
|
||
#### How to Read World Health Organization Open-Source Dashboard | ||
|
||
The Dashboard is currently a snapshot of data from the **World Organization Health** Repositories. All the metrics are based on the _Last Updated Date_ reflected on the top of the dashboard. | ||
|
||
### Metrics and Definitions | ||
|
||
`Collaborators:` Collaborator is an individual that can read a write to the current repository. Metric calculates the current number of Collaborators. | ||
|
||
`Watchers:` The number of users who are tracking a particular repository, receiving notifications regarding its activity. | ||
|
||
`Open Issues:` Issues are tickets that represent bugs or new features that other people report and can collaborate on. Open issues are total of unresolved issues. | ||
|
||
`Open PR's:` A pull request is a request to make a change to the files of the project (code, documentation, README changes, etc.). Open PR's are the total of pull requests with status Open. | ||
|
||
`Merge PR's`: A total of Pull Requests that are accepted into the code base of the project. | ||
|
||
`Total Fork:` A fork is a copy of the current repository belonging to another user. Total Forks is how many times the repository has been copied. | ||
|
||
`Open Issues Median Age:` Median of how many days of all issues in days with Open Status. If the issue age is zero (meaning there are no open issues), we display "N/A". | ||
|
||
`Close Issues Median Age:` Median of how many days of all issues in days with Closed status. If the issue age is zero (meaning there are no open issues), we display "N/A". | ||
|
||
`Issue Response Median Age:` Median response time of issues that has a response. If the issue response age is zero (meaning there are no comments), we display "N/A". If the first response is by the creator of the issue the comment is not counted. | ||
|
||
`Issue Response Average Age:` Average response time of issues that has a response. If the issue response age is zero (meaning there are no comments), we display "N/A". If the first response is by the creator of the issue the comment is not counted. Calculation is Issues Total Response Time divide by Total Issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { marked } from 'marked' | ||
import docs from '../../docs/definitions.md' | ||
|
||
const convertMarkdownToHTML = (markdown: string): string => { | ||
return marked(markdown) as string | ||
} | ||
|
||
const Documentation = () => { | ||
const html = convertMarkdownToHTML(docs) | ||
|
||
return ( | ||
// eslint-disable-next-line react/no-danger | ||
<div dangerouslySetInnerHTML={{ __html: html }} /> | ||
) | ||
} | ||
|
||
|
||
export default Documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable filenames/match-regex */ | ||
import { useEffect, useState } from 'react'; | ||
|
||
export const useIsSSR = () => { | ||
const [isSSR, setIsSSR] = useState(true); | ||
|
||
useEffect(() => { | ||
setIsSSR(false); | ||
}, []); | ||
|
||
return isSSR; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// declared module for importing markdown files | ||
declare module '*.md' { | ||
const value: string; | ||
export default value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters