-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Reader: Update cross-post cells #23722
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
Conversation
Generated by 🚫 Danger |
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23722-7aa6478 | |
| Version | 25.4.2 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 7aa6478 | |
| App Center Build | WPiOS - One-Offs #10926 |
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23722-7aa6478 | |
| Version | 25.4.2 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 7aa6478 | |
| App Center Build | jetpack-installable-builds #9966 |
| return self.isBlogAtomic; | ||
| } | ||
|
|
||
| - (BOOL)isPrivate |
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.
isBlogPrivate is much clearer.
| SourceAttributionStyleSite, | ||
| }; | ||
|
|
||
| @protocol ReaderPostContentProvider <PostContentProvider> |
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.
We could probably remove PostContentProvider later too.
| var loadingStyle = LoadingStyle.background | ||
|
|
||
| /// The background color to use when the image is loaded. | ||
| var successBackgroundColor = UIColor.clear |
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 added it in one of the previous PRs and decided to remove it since it's not longer needed. It was replaced by ReaderAvatarView.
cc7d242 to
630721f
Compare
14cef9c to
84ea375
Compare
| attrSubtitle.setAttributes(readerCrossPostBoldSubtitleAttributes, range: NSRange(location: 0, length: authorName.length)) | ||
| let string = NSMutableAttributedString(string: subtitle, attributes: subtitleAttributes) | ||
|
|
||
| string.setAttributes(boldSubtitleAttributes, range: NSRange(location: 0, length: authorName.length)) |
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.
The localized template may not start with authorName.
I'm aware this is not a new change. Feel free to leave it if you don't think that's an issue.
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.
Oh yeah good catch. I opted to revert the localization for now to focus on other priorities.
51b3680 to
959c2d7
Compare
959c2d7 to
7aa6478
Compare


This PR updates the Cross Post cells. I kept the logic largely the same as in the previous design, but updated the insets.
Other changes:
ReaderAvatarViewReaderPostContentProvider. As a result, some fields now became accessible as ObjC properties and the call sites had to be updated too.ReaderPostRegression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txtif necessary.Testing checklist: