-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Dashboard: Clean up legacy dashboard flow #12602
Conversation
… task/12601-remove-legacy-store-stats
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I left a couple of comments about deleting more code. 🚢
case .weekly: | ||
dateFormatter = DateFormatter.Charts.chartAxisDayFormatter | ||
case .monthly: | ||
dateFormatter = DateFormatter.Charts.chartAxisMonthFormatter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: chartAxisMonthFormatter
and chartAxisHourFormatter
are not used anywhere else. Should we consider deleting those from WooCommerce/Classes/Extensions/DateFormatter+Helpers.swift
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Removed in 26a5371.
/// Uploads the answers from the store creation profiler flow | ||
/// | ||
func uploadProfilerAnswers() async { | ||
await storeCreationProfilerUploadAnswersUseCase.uploadAnswers() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storeCreationProfilerUploadAnswersUseCase
property can be deleted as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in d125d80.
Closes: #12601
Description
Since we migrated the dashboard screen to the SwiftUI views, we need to clean up the legacy UIKit code. This PR removes all the outdated code so it's quite large. Most of the changes are deletion of unused files. There are also some small changes in
DashboardViewModel
andStoreStatsPeriodViewModel
to remove unused methods.Testing instructions
Smoke test the dynamic dashboard features following #12563 to confirm that everything still works correctly.
Screenshots
N/A
RELEASE-NOTES.txt
if necessary.