Analytics page.

Commit
b6d32cd51e8d0b4c53d429e7862f194c9ad0c8f9
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
src/MyFitnessTracker/MFTAnalyticsPage.class.st
index 3b8be9c6..2f4aa0cd 100644..100644
@@ -19,14 +19,17 @@
19 19 MFTAnalyticsPage >> analytics [
20 20
21 21 ^ Dictionary newFrom: {
22 Removed: (#workouts -> { MFTRepsVsTimeGraph new }).
22 Added: (#workouts -> {
23 Added: MFTRepsDistributionGraph new.
24 Added: MFTWorkoutVolumeVsTimeGraph new.
25 Added: MFTWorkoutVolumePerWeekGraph new }).
23 26 (#weights -> { MFTWeightVsTimeGraph new }) }
24 27 ]
25 28
26 29 { #category : #rendering }
27 30 MFTAnalyticsPage >> renderActionsButtonGroupOn: html [
28 31
29 Removed: html form: [
32 Added: html form class: 'my-3'; with: [
30 33 html buttonGroup: [
31 34 html formButton
32 35 bePrimary;
@@ -42,7 +45,14 @@
42 45
43 46 self renderPageOn: html with: [
44 47 self renderActionsButtonGroupOn: html.
45 Removed: components do: [ :each | html render: each ] ]
48 Added: html div
49 Added: style:
50 Added: 'display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1em';
51 Added: with: [
52 Added: components do: [ :each |
53 Added: html card: [
54 Added: html cardHeader: each title.
55 Added: html render: each ] ] ] ]
46 56 ]
47 57
48 58 { #category : #accessing }