-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add new "Publishing" sheet #24855
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
Add new "Publishing" sheet #24855
Conversation
|
App Name | Jetpack | |
Configuration | Release-Alpha | |
Build Number | 29179 | |
Version | PR #24855 | |
Bundle ID | com.jetpack.alpha | |
Commit | 9b1648d | |
Installation URL | 626ujqrtqttj0 |
|
App Name | WordPress | |
Configuration | Release-Alpha | |
Build Number | 29179 | |
Version | PR #24855 | |
Bundle ID | org.wordpress.alpha | |
Commit | 9b1648d | |
Installation URL | 6qnhqpg5uvslg |
"postSettings.preview.label", | ||
value: "Preview", | ||
comment: "Label for the preview button in Post Settings" | ||
) |
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.
It seems publishingOptionsHeader
and previewLabel
are not used.
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
277cde3
to
08d261f
Compare
Generated by 🚫 Danger |
I made some minor tweaks and integrated social sharing. It now works by updating the existing The only missing piece now is “Media Upload” status integration, which I’ll implement in a separate PR. I’ll continue testing and refining it in separate PRs also – it’s currently under the FF. |
} | ||
|
||
static func make(for post: Post) -> PostSocialSharingSettings? { | ||
guard let context = post.managedObjectContext else { |
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.
I copied most of the social-sharing code from the existing PrepublishingViewController
with minimum changes to the implementation or the architecture. I do not plan to rework it in the scope of this project.
c4eff4d
to
c694e39
Compare
} | ||
|
||
private var cornerRadius: CGFloat { | ||
if #available(iOS 26, *) { 10 } else { 6 } |
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.
A small change to make the corner radius work better with the larger radius on iOS 26.
/// - parameter changes: The set of changes apply to the post together | ||
/// with the publishing options. | ||
@MainActor | ||
func publish_v2(_ post: AbstractPost, parameters: RemotePostUpdateParameters) async throws { |
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.
I plan to remove the previous version in the next PR where the legacy screen is removed.
slug = post.wp_slug ?? "" | ||
status = post.status ?? .draft | ||
publishDate = post.dateCreated | ||
publishDate = post.shouldPublishImmediately() ? nil : post.dateCreated |
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.
Lore: #23333 (comment)
delegate: self, | ||
coreDataStack: ContextManager.shared | ||
) | ||
viewController?.navigationController?.pushViewController(optionsVC, animated: true) |
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.
It's not ideal, but it's the existing practice in this screen, and I'm not planning to refactor it in this PR.
79082ea
to
9b1648d
Compare
|
Issues attributed to commits in this pull requestThis pull request was merged and Sentry observed the following issues:
|
Fixes https://linear.app/a8c/issue/CMM-759/new-publishing-sheet. See the ticket for the rationale.
Changes:
In terms of tech, it now uses the existing
PostSettingsView
with minimum changes – only adding the header and the “publish” logic. Any change we add to “Post Settings” – like adding “Excerpt“ generator – is automatically reflected here. It even reuses the existingSiteListRowView
now.For simplicity, it’s just a variation of
PostSettingsViewModel
– it’s nearly identical, and in the future I plan to add the “Status” field to “Post Settings” to be consistent with the web an dot allow publishing from “Post Settings” by changing status.Recording
Screen.Recording.2025-09-23.at.8.53.05.AM.mov