-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add charts viewer html app * add monthly issues viewer * add component specific stats page * update base charts * update base charts
- Loading branch information
1 parent
a7d4151
commit d473e39
Showing
67 changed files
with
939 additions
and
18 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
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,79 @@ | ||
import json | ||
import matplotlib.pyplot as plt | ||
|
||
from alive_progress import alive_bar | ||
|
||
from charts import ( | ||
get_charts_data, | ||
) | ||
|
||
used_months = ["2024-04", "2024-05", "2024-06", "2024-07"] | ||
components_charts_folder = "images/components/" | ||
|
||
|
||
def read_months_data(months=["2024-07"]): | ||
all_issues = {} | ||
components = set() | ||
|
||
for month in months: | ||
json_file = open(f"data/{month}/issues.json") | ||
issues = json.load(json_file) | ||
|
||
( | ||
_, | ||
issues_minimal, | ||
_df_issues, | ||
_df_issues_closed, | ||
_issue_labels, | ||
component_names, | ||
) = get_charts_data(issues) | ||
|
||
all_issues[month] = issues_minimal | ||
components = components | component_names | ||
|
||
return all_issues, components | ||
|
||
|
||
if __name__ == "__main__": | ||
all_issues, component_names = read_months_data(used_months) | ||
|
||
component_stats = {} | ||
|
||
for component in sorted(component_names): | ||
component_stats[component] = {month: 0 for month in used_months} | ||
|
||
for month, issues in all_issues.items(): | ||
open_issues = [issue for issue in issues if issue["state"] == "open"] | ||
|
||
for issue in open_issues: | ||
for label in issue["labels"]: | ||
if not label.startswith("Component: "): | ||
continue | ||
|
||
component_name = label.replace("Component: ", "") | ||
|
||
component_stats[component_name][month] += 1 | ||
|
||
with alive_bar( | ||
len(component_names), title="Generating and saving charts", unit=" charts" | ||
) as bar: | ||
for component, stats in component_stats.items(): | ||
_, ax = plt.subplots(figsize=(10, 6)) | ||
component_values = list(stats.values()) | ||
|
||
for i, txt in enumerate(component_values): | ||
ax.annotate( | ||
txt, | ||
(used_months[i], component_values[i]), | ||
textcoords="offset points", | ||
xytext=(0, 7), | ||
ha="center", | ||
) | ||
|
||
ax.set_title(f"Component issues in the past months: {component}") | ||
plt.xticks(rotation=45) | ||
plt.plot(used_months, component_values, label=component) | ||
plt.savefig(f"{components_charts_folder}{component}.png") | ||
plt.close() | ||
|
||
bar() |
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,165 @@ | ||
# Fluent UI React v9 component specific charts | ||
|
||
## Avatar | ||
|
||
![Avatar stats](../images/components/Avatar.png) | ||
|
||
## Menu | ||
|
||
![Menu stats](../images/components/Menu.png) | ||
|
||
## Badge | ||
|
||
![Badge stats](../images/components/Badge.png) | ||
|
||
## Dialog | ||
|
||
![Dialog stats](../images/components/Dialog.png) | ||
|
||
## Carousel | ||
|
||
![Carousel stats](../images/components/Carousel.png) | ||
|
||
## List | ||
|
||
![List stats](../images/components/List.png) | ||
|
||
## Toolbar | ||
|
||
![Toolbar stats](../images/components/Toolbar.png) | ||
|
||
## Popup | ||
|
||
![Popup stats](../images/components/Popup.png) | ||
|
||
## Nav | ||
|
||
![Nav stats](../images/components/Nav.png) | ||
|
||
## Table | ||
|
||
![Table stats](../images/components/Table.png) | ||
|
||
## Button | ||
|
||
![Button stats](../images/components/Button.png) | ||
|
||
## SplitButton | ||
|
||
![SplitButton stats](../images/components/SplitButton.png) | ||
|
||
## SearchBox | ||
|
||
![SearchBox stats](../images/components/SearchBox.png) | ||
|
||
## InfoLabel | ||
|
||
![InfoLabel stats](../images/components/InfoLabel.png) | ||
|
||
## Tooltip | ||
|
||
![Tooltip stats](../images/components/Tooltip.png) | ||
|
||
## Checkbox | ||
|
||
![Checkbox stats](../images/components/Checkbox.png) | ||
|
||
## ComboBox | ||
|
||
![ComboBox stats](../images/components/ComboBox.png) | ||
|
||
## Drawer | ||
|
||
![Drawer stats](../images/components/Drawer.png) | ||
|
||
## Switch | ||
|
||
![Switch stats](../images/components/Switch.png) | ||
|
||
## Calendar | ||
|
||
![Calendar stats](../images/components/Calendar.png) | ||
|
||
## Slider | ||
|
||
![Slider stats](../images/components/Slider.png) | ||
|
||
## ColorPicker | ||
|
||
![ColorPicker stats](../images/components/ColorPicker.png) | ||
|
||
## Virtualizer | ||
|
||
![Virtualizer stats](../images/components/Virtualizer.png) | ||
|
||
## Coachmark | ||
|
||
![Coachmark stats](../images/components/Coachmark.png) | ||
|
||
## Popover | ||
|
||
![Popover stats](../images/components/Popover.png) | ||
|
||
## TeachingPopover | ||
|
||
![TeachingPopover stats](../images/components/TeachingPopover.png) | ||
|
||
## Skeleton | ||
|
||
![Skeleton stats](../images/components/Skeleton.png) | ||
|
||
## Dropdown | ||
|
||
![Dropdown stats](../images/components/Dropdown.png) | ||
|
||
## Tabs | ||
|
||
![Tabs stats](../images/components/Tabs.png) | ||
|
||
## MessageBar | ||
|
||
![MessageBar stats](../images/components/MessageBar.png) | ||
|
||
## Card | ||
|
||
![Card stats](../images/components/Card.png) | ||
|
||
## Pickers | ||
|
||
![Pickers stats](../images/components/Pickers.png) | ||
|
||
## DataGrid | ||
|
||
![DataGrid stats](../images/components/DataGrid.png) | ||
|
||
## Tree | ||
|
||
![Tree stats](../images/components/Tree.png) | ||
|
||
## MenuItem | ||
|
||
![MenuItem stats](../images/components/MenuItem.png) | ||
|
||
## Input | ||
|
||
![Input stats](../images/components/Input.png) | ||
|
||
## TagPicker | ||
|
||
![TagPicker stats](../images/components/TagPicker.png) | ||
|
||
## Portal | ||
|
||
![Portal stats](../images/components/Portal.png) | ||
|
||
## FocusTrapZone | ||
|
||
![FocusTrapZone stats](../images/components/FocusTrapZone.png) | ||
|
||
## Keytip | ||
|
||
![Keytip stats](../images/components/Keytip.png) | ||
|
||
## Toast | ||
|
||
![Toast stats](../images/components/Toast.png) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.