Skip to content

Stats Review: Add TopListItemView (P9)#24721

Closed
kean wants to merge 1 commit intoreview/stats-servicefrom
review/top-list-view
Closed

Stats Review: Add TopListItemView (P9)#24721
kean wants to merge 1 commit intoreview/stats-servicefrom
review/top-list-view

Conversation

@kean
Copy link
Contributor

@kean kean commented Aug 5, 2025

This PR adds individual rows to be shown in the future TopListCard. I also included StatsContext and StatsRouter in this PR – these are the only two types that are injected into the module from the app and manage the environment (site time zone) and the external navigation (e.g. opening likes list hosted by the app).

Screenshot 2025-08-05 at 11 05 27 AM

@kean kean added this to the Pending milestone Aug 5, 2025
@kean kean added the Stats label Aug 5, 2025
@kean kean changed the title Stats Review: Add TopListItemView Stats Review: Add TopListItemView (P9) Aug 5, 2025
@kean kean mentioned this pull request Aug 5, 2025
14 tasks
@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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2025

// MARK: - Environment Key

private struct StatsContextKey: EnvironmentKey {
static let defaultValue = StatsContext.demo
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems dangerous to use a mock value as the default value.

@kean kean closed this Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants