Skip to content

Add ActivityLogsDetailsView#24599

Merged
kean merged 10 commits intofeature/jetpack-activity-logsfrom
task/activity-logs-details
Jun 19, 2025
Merged

Add ActivityLogsDetailsView#24599
kean merged 10 commits intofeature/jetpack-activity-logsfrom
task/activity-logs-details

Conversation

@kean
Copy link
Contributor

@kean kean commented Jun 19, 2025

This PR adds initial ActivityLogsDetailsView implementation to replace ActivityDetailViewController. The new screen if SwiftUI-based and uses the refreshed design to match the list and the WordPress Design System.

Screenshot 2025-06-19 at 1 26 43 PM Screenshot 2025-06-19 at 1 24 48 PM Screenshot 2025-06-19 at 1 24 20 PM

kean added 7 commits June 19, 2025 09:22
- Implement modern SwiftUI version of Activity Detail screen
- Use card-based design system matching SubscriberDetailsView
- Add proper localization with NSLocalizedString and reverse-DNS keys
- Use WPStyleGuide for consistent icon and color handling
- Include activity stats visualization for backup events
- Add restore and download backup actions with confirmation dialogs
- Integrate with existing Activity model and RewindStatus
- Update ContentView with navigation links for testing
- Configure MiniatureApp with proper navigation and theming
- Create Activity+Icon.swift with gridiconType, icon, and statusColor properties
- Update all references to use new Activity extension methods
- Deprecate old WPStyleGuide methods with proper deprecation messages
- Remove stringToGridiconTypeMapping from WPStyleGuide
- Fix linter warnings for trailing whitespace and shorthand optional binding
- Remove rewindStatus parameter from ActivityLogDetailsView initializer
- Remove rewindStatus checks in ActivityActionsCard
- Update preview providers to not pass rewindStatus
- Update ContentView to not create mock RewindStatus instances
- Remove warning card for multisite installations
- Simplify restore button enable/disable logic
@kean kean added this to the 26.0 milestone Jun 19, 2025
@kean kean requested a review from crazytonyli June 19, 2025 17:35
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 19, 2025

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number27893
VersionPR #24599
Bundle IDorg.wordpress.alpha
Commitc02e30c
Installation URL77khon8dqk6g8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 19, 2025

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number27893
VersionPR #24599
Bundle IDcom.jetpack.alpha
Commitc02e30c
Installation URL57bhq931ulm80
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

private extension ProcessInfo {
var isXcodePreview: Bool {
environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1"
environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" || environment["WP_USE_PREVIEW_ENVIRONMENT"] == "1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to add Info.plist with all the setting to the Miniature app, so I added a way to use the preview settings.

@kean kean merged commit 8f7cced into feature/jetpack-activity-logs Jun 19, 2025
1 check was pending
@kean kean deleted the task/activity-logs-details branch June 19, 2025 18:02
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants