Closed meteyou closed 3 weeks ago
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
@sourcery-ai review
This pull request adds a new feature to the history page, allowing users to switch between different statistical views (amount, filament, time) for both the circle chart and table display. The implementation involves refactoring existing components, introducing a new mixin for shared logic, and updating the UI to include toggle buttons for the new options.
Change | Details | Files |
---|---|---|
Introduced a new HistoryStatsMixin to handle shared logic for history statistics |
|
src/components/mixins/historyStats.ts |
Updated HistoryAllPrintStatusChart component to support multiple value types |
|
src/components/charts/HistoryAllPrintStatusChart.vue |
Refactored HistoryAllPrintStatusTable component |
|
src/components/charts/HistoryAllPrintStatusTable.vue src/components/charts/HistoryAllPrintStatusTableItem.vue |
Updated HistoryStatisticsPanel to include new toggle options |
|
src/components/panels/HistoryStatisticsPanel.vue |
Modified server history state types and getters |
|
src/store/server/history/types.ts src/store/server/history/getters.ts |
Updated localization files |
|
src/locales/en.json |
@sourcery-ai review
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
@sourcery-ai review
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
@meteyou there still two pending comments. I would at least adjust the rounding before merging.
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Language file analysis report: | File | Missing Keys | Unused Keys |
---|---|---|---|
en.json | 0 | 0 |
Description
This PR adds an option to switch the stats (circle or table) in the history page between amount, filament and time.
Related Tickets & Documents
fixes #1966
Mobile & Desktop Screenshots/Recordings
Circle Amount:
Circle Filament:
Circle Time:
Table Amount:
Table Filament:
Table Time:
[optional] Are there any post-deployment tasks we need to perform?
none
Summary by Sourcery
Introduce a feature to toggle the display of history statistics between different units (amount, filament, time) and refactor the code to improve maintainability by using a mixin for history statistics logic.
New Features:
Enhancements: