Commit 8601ae5
authored
Feature: New Stats (#24677)
* Update chart to take more horizontal space
* Improve more menu alignment
* More breezing room
* Show top 5
* Simplify TopListItemView requirements
* Add previews for top list items
* Add cache for mock data
* Simplify mock data generation
* Set min height for bars
* Add initial implementation
* Rework await Task.detached(priority: .userInitiated) {
* Add zoom
* Refactor
* Fix reloading in dark mode
* Improve colors
* Add initial hover support
* Extract interactive-map-template
* Improve tooltip view
* Refactor
* Clear map selection when you stop hovering
* lintfix
* Add TopListCard previews
* Improve TopListLocationRowView design
* Cleanup isNavigationDisabled
* Remove map dependency
* Fix animation in TrafficTabView
* Disable zoom in InteractiveMapView
* Improve sizing of TopListItemViews
* More design changes
* Implement chart animation on first load
* Fix LineChartView sometimes showing zero in the middle
* Fix clipping of AM label
* Simplify selection on map
* Fix an issue with SVGWebView not reloading if killed
* Fix retain cycles
* Extract CountriesMapData
* Remove isNavigationDisabled
* Use gradient in LineChartView
* Use gradient in BarChartView
* Use gradient for Top List also
* More compelling gradients
* Add significant data points, add pulsating anmation
* Add significant data point to bar chart also
* use rounded in badges
* Extract SignificantPointAnnotation
* Rework ARchive
* Add tap animation for TopListItemView
* Add context menus
* Add context menus for items
* Remove isComparisonPeriodEnabled
* Remove isNavigationDisabled
* Remove odd looking background when tapping Top List items
* Implement pulsating for overlay too
* Rework shapes
* Fix showmore lyout
* Nicer badges
* Nicer video display
* Add support for external links
* Add more performance reserveSpace
* Add initial TopListScreenView
* Tap on card to open entire screen
* Rename TopListViewModel
* Add TopListChartData.Metrics
* Rename TopListResponse
* Rename TopListItemProtocol
* Rename TopListItem
* Rename TopListData
* Add secondaryBackground
* Add more eleborate background
* Simplify background
* Add date range control
* Add CSV export
* Optimize CSV export
* Fix sorting for top list items to ensure stable ordering
* use ShareLink
* Darker empty row
* Fix navigation from top list
* lintfix
* Fix export – use CSV extensio
* Fix items not loading in mock service
* Remove Calendar.current usages
* Update unit tests
* Smaller heading in ListScreenView
* Remove broken LazyVStack and simplify interactive-map-template
* Fix selection for country map
* PRevent ScrollOffsetModifier to firing when no changes are made
* Show only 5 recent years on a trend ma[
* Fix StatsDateRangeFormatter ntot showing last year
* Update StatsDateRangeFormatterTests tests to be independant of year
* Load aatars with higher quality
* Cleanup StatsServiceRemoteV2 extensions
* Fix TopList being tappable on mock data
* Smaller ChartValuesSummaryView
* Add documentation links
* Add reporting time zone to the bottom of the tab
* Nicer empty state view
* Slight chart card redesign
* Fix compilation error on earlier Xcode versions
* Better ChartCard header
* Update StandaloneChartCard
* Center top list screen header vertically
* Add initial StatsViewModel
* Remove unused comparisonRangeText
* Add initial ChartCardCustomizationView
* Rework where config is created
* Add initial delete widget support
* Add support for deleting charts
* Rename delete
* Rework how we save configuration
* Move seletedMetric to ViewModel
* Save ChartType persistently
* Improve gradients
* Cleanup
* Fix significantPointAnnotations in line chart
* Rework ChartCardCustomizationView
* Add TopListCardCustomizationView
* Refactor TopListCardCustomizationView
* Remove StatsViewModel from TopListCard
* Improve chart editig
* Improve add card style
* Implement Move Card feature
* Simplify EditCardMenuContent
* Remove unused strings
* Update menus org
* SwiftLint
* Cleanup
* Better PlaceholderRowView
* Better empty rows
* Lighter bars in dark mode
* Lighter bars in dark mode
* Better contrast on a map
* Fix map selection
* Better loading state for avatars
* Reorg
* Cleanup
* Fix StatsPeriodUnit crash
* Fix navigateToTopListScreen
* Fix navigation title not appearing instantly
* Dsable sharing for now
* Cleanup
* Store preset persistently
* Add reset all settings for convenience
* Minor iPad improvemnets
* Add caching
* Add new menus to enable/disable stats
* Rework how we show the new stats
* Add SafeAreaHostingController to workaround safe area issue
* Add extra top padding
* Add a way to show mock data
* Cleanup StatsHostingViewController
* Add configureModernStyle to FilterTabBar
* Shorten interval for editing
* Update l10n
* Add delay when showing tip
* Fix an issue with interpolation when there is only one data point
* Increase listHeaderView spacing
* Add l10n
* Fix long button names
* Fix TopListCard in AuthorStatsView
* Improve formatting in date range control
* Add CardGradientBackground
* Fix an issue with filter not passed to TopListScreen
* Fix minimum size for subscriber rows
* Fix an issue with authors posts showing wrong data on show more
* Improve mock data
* Show debug options in Stats in the debug menu
* Simplify filter tab bar
* Fix y domain on BarChartView
* Add subscriber details
* Reverse raw data
* use regular context for date formatting
* Update historic data
* Initial iPad support
* Remove insets from the CardModifier itself
* Add a reusable method to set horizontal inset
* Cleanup
* Move range controls to hte top on iPad
* More improvements on iPad
* Fix how trailingItemGroups is communicated back the to main VC
* Cleanup buttons
* Show more cards on iPad
* Improve design on PostStatsView
* Save StandaloneChart type persistently; update PostStatsView on iPad
* Add empty state
* Update AuthorStatsView
* SHow date navigation at the top
* Update ChartDataListView
* Update ExternalLinkStatsView
* Update referrers
* TopListScreenView to support iPad
* Update TopListScreenView
* Reduce trailing in TopListItemView
* Fix realtime view
* More spacing for metrics on iPad
* Improve ChartValueTooltipView
* Pink for likes
* Improve menu design
* Update ChartDataListView design
* More improvemnets
* Slightly rounder bars
* Update ChartCard again
* Change last5 to last3 years and use monthly granularity
* Update tess
* Improve average badge design
* Cleanup
* Fix an issue with selection line going beyond the chart range
* Extract ChartAverageLine
* Improve tab over view anmations
* Remove fatalError
* Add StatsEvent and StatsTracker
* Add additional events for customization
* Add mapping to WPAnalyticsEvent
* Add new_stats key to .statsAccessed
* Cleanup urlErrorType
* Do no track CancellationError
* Improve heatmap colors for dark mode
* Improve annotations
* Add dynamic type support
* Improve line chart scaling
* Add voice over support
* Fix an issue with new stats menu not shownig up on iphone
* Less visible TopList empty views
* Fix tab size in overview
* Fix insets on top list
* Fix disabling of navigation button in top bar
* Add a bit of top inset
* Fix tests build
* Remove animations from add chart button
* Lower h spacing on ipad
* Remove animations from ChartValuesSummaryView
* Selection tooltip no longer moves with content
* Remove delay when showing details
* Use black for tint
* Update articles
* Fix 642: invalid hourly data
* Update time zone design
* Update WordPressKit to point to the latest commit
* Revert "Fix minimum size for subscriber rows"
This reverts commit 33ce879.
* Replace fatalError with assertionFailure1 parent 4adf1f7 commit 8601ae5
187 files changed
Lines changed: 23502 additions & 53 deletions
File tree
- Modules
- Sources/JetpackStats
- Analytics
- Cards
- Charts
- Helpers
- Extensions
- Resources
- Mocks
- Avatars
- HistoricalData
- Misc
- RealtimeData
- Screens
- Services
- Data
- Mocks
- Utilities
- Formatters
- Modifiers
- Views
- CountryMap
- Customization
- Heatmap
- TopList
- Rows
- Tests/JetpackStatsTests
- Sources/Miniature
- Tests/KeystoneTests/Tests/Misc
- WordPress/Classes
- Utility
- Analytics
- BuildInformation
- ViewRelated
- Blog
- Blog Dashboard/Cards/Quick Actions
- Blog Details
- Likes
- Me/App Settings
- Notifications/Controllers
- Post/Controllers
- Stats
- Charts
- Helpers
- Traffic
- System
- Tips
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
| 183 | + | |
174 | 184 | | |
175 | 185 | | |
176 | 186 | | |
| |||
276 | 286 | | |
277 | 287 | | |
278 | 288 | | |
| 289 | + | |
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments