Grid view in the new media screen#25561
Conversation
Generated by 🚫 Danger |
c106304 to
512afad
Compare
🤖 Build Failure AnalysisThis build has failures. Claude has analyzed them - check the build annotations for details. |
883a054 to
18ef295
Compare
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 32436 | |
| Version | PR #25561 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | cbfa85e | |
| Installation URL | 3umel5p784a4o |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 32436 | |
| Version | PR #25561 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | cbfa85e | |
| Installation URL | 1ldhl1kh4euoo |
18ef295 to
cbfa85e
Compare
| /// stable `digit:digit` output is the better fit. This is a small, | ||
| /// deliberate deviation from V1's `SiteMediaCollectionCellViewModel.swift`'s | ||
| /// `makeString(forDuration:)`. | ||
| enum MediaGridDuration { |
There was a problem hiding this comment.
Should we use Swift's Duration.TimeFormatStyle.Pattern to accomplish this?
Then it can be locale-aware, but still fixed-size?
| } | ||
| } | ||
|
|
||
| var systemImageName: String { |
There was a problem hiding this comment.
This is repeated in MediaGridCell.content – we should probably only have one source of truth for this?
There was a problem hiding this comment.
Not entirely? I think it's okay to leave a duplicate? This systemImageName is used in a picker row, which is displayed as "[icon] [title]". MediaGridCell.content shows the image or a placeholder image for audio. I think it should be okay if the "placeholder image" in the cell is different from the icon in the picker.


Description
Similar to the existing Media screen, the grid view is 4 columns in compact width and 5 in regular, supports the same aspect-ratio / square toggle as V1 (sharing the UserDefaults key, so the preference carries over between the two screens), and renders per-kind cells for image, video, audio, and document.
Analytics for filter, search, and the grid toggle are routed through
MediaTrackerAdapterto Tracks under newWPAnalyticsStatcases that mirror V1's event names.Simulator.Screen.Recording.-.iPhone.17.-.2026-06-05.at.21.40.49.mov