Skip to content

Implement Jetpack Activity Logs screen (list)#24596

Merged
kean merged 1 commit intofeature/jetpack-activity-logsfrom
task/activity-logs-p1
Jun 19, 2025
Merged

Implement Jetpack Activity Logs screen (list)#24596
kean merged 1 commit intofeature/jetpack-activity-logsfrom
task/activity-logs-p1

Conversation

@kean
Copy link
Contributor

@kean kean commented Jun 18, 2025

Linear: https://linear.app/a8c/project/apple-dataview-in-activity-logs-747664472a7e/overview

This PR adds Jetpack Activity Logs implemented using SwiftUI.

New Components

  • DataViewSearchView: Generic reusable search component for paginated lists
  • ActivityLogsMenu: Filter menu with date pickers and activity type selection
  • ActivityTypeSelectionView: Multi-select view for filtering by activity types
  • And a few more.
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-06-18.at.15.25.31.mov

Testing

  • Tested search functionality with various queries
  • Verified date filters work correctly with time selection
  • Confirmed activity type filtering with multiple selections
  • Tested empty states and error handling
  • Verified UI works on different device sizes

@dangermattic
Copy link
Collaborator

dangermattic commented Jun 18, 2025

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

@kean kean added this to the 26.0 milestone Jun 18, 2025
@kean kean requested a review from crazytonyli June 18, 2025 20:06
@kean kean force-pushed the task/activity-logs-p1 branch from 6ae9979 to c1222ae Compare June 18, 2025 20:11
@@ -0,0 +1,17 @@
{
"permissions": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are safe readonly tools (recommend by Boris).


/// A generic search view that works with DataViewPaginatedResponse.
/// Provides search functionality with debouncing, loading states, and error handling.
public struct DataViewSearchView<Response: DataViewPaginatedResponseProtocol, Content: View>: View {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extracted from SubscribersView.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 18, 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 Number27885
VersionPR #24596
Bundle IDorg.wordpress.alpha
Commit96f9cfd
Installation URL1f9spfjrk8cb0
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 18, 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 Number27885
VersionPR #24596
Bundle IDcom.jetpack.alpha
Commit96f9cfd
Installation URL6dpqpu1sv1qd8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@kean kean force-pushed the task/activity-logs-p1 branch from c1222ae to 96f9cfd Compare June 18, 2025 21:16
@sonarqubecloud
Copy link

Base automatically changed from task/activity-logs-swiftui to feature/jetpack-activity-logs June 19, 2025 12:19
@kean kean merged commit 28352d3 into feature/jetpack-activity-logs Jun 19, 2025
22 of 33 checks passed
@kean kean deleted the task/activity-logs-p1 branch June 19, 2025 12:20
let content: (Response) -> Content

/// Delay in milliseconds before executing search (default: 500ms)
let debounceDelay: UInt64
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: debounceDelayInMilliseconds (or use a type like Duration) to be extra clear about the time unit.

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 switched to the Duration type – much clearer.

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.

4 participants