$columns
$columns :
This array stores all the different columns we display in the table for products health with the associated display name
Health class
Helper functions for the Health view
getStatus(string $name, array $ref_strings, array $loc_strings) : array
Get an array with the completion status by analyzing the localized strings array vs. the reference strings array.
string | $name | Real name of the repository that will be displayed in the UI. |
array | $ref_strings | Array containing all the reference strings of the repo ('entity_name' => 'Content.') |
array | $loc_strings | Array containing all the strings of the repo for a given locale ('entity_name' => 'Localized content.') |
Status for a repository of a locale
addLink(string $title, string $anchor, boolean $active) : string
Create a tab-link element that can be added to a list of tabs.
string | $title | Text displayed in the tab |
string | $anchor | HTML anchor used to activate the associated tab-content. Should be the same as the $id argument in Health::addTab. |
boolean | $active | Should this tab be the active one? |
HTML element to add between
addTab(string $id, boolean $active) : string
Create a tab-content element that can be added to a list of tab-content.
string | $id | ID that will be used in combination with an HTML anchor in a tab-link to show this tab-content. Should match the $anchor argument in Health::addLink. |
boolean | $active | Should this tab be the active one? |
HTML element to add between
getStatsTab(array $data, string $id, boolean $active) : string
Create a tab containing the repo info
array | $data | Array containing structured commit data |
string | $id | ID that will be used in combination with an HTML anchor in a tab-link to show this tab-content. Should match the id in $data argument used in Health::getStatsPane. |
boolean | $active | Should this tab be the active one? |
HTML element to add between
getStatsPane(array $data) : string
Create a panel containing tabs with info for all the repos of this group For instance, a panel with tabs for mozilla_org and firefox_ios repos.
array | $data | Array containing all the data for each repo |
HTML element to add in the repo tab