-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Notifications redesign #1802
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
Notifications redesign #1802
Conversation
…tain block types are tapped. So much win.
Since there's no guarantee that an image or video will be in the note, it would be a waste of memory. Instead they are created if the note block contains an image or video.
…n a UserNoteBlock.
…t still. Protip: Never have your fragments in layout XML.
…stead of removing the detail fragment.
Added check to show Url in a web view if we don't know what the type of the block is.
Changed ListView background to white to match design.
…etailFragment` that houses the header and detail fragment.
Conflicts: src/org/wordpress/android/ui/notifications/BigBadgeFragment.java src/org/wordpress/android/ui/notifications/NewNotificationsActivity.java
Cleaned up getters in the note model. Still need to reimplement the caching in this model.
* Now uses `note20` bucket. * Removed testing code from `SimperiumUtils`
Applied tablet styling to comments list.
WP.com now supports approving a comment once it is liked. Cleaned up some code.
Unfortunately it doesn't look like I can easily change the weight in the list view. It's doing an HTML formatting trick that I don't have much control of. |
Conflicts: WordPress/src/main/java/org/wordpress/android/ui/WPActionBarActivity.java WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostPagerActivity.java
Fixes issue where image cache would store multiple copies of the same image.
Previously, you couldn't edit a comment that wasn't from a blog stored in the app. Now `EditCommentActivity` will request the comment and edit it via the REST API.
…hows in the center of the view.
|
Feedback round four:
|
Updated comment spammed string to `Comment marked as spam`
I think we should cut out the link to see all of your followers. I don't see the link on my most recent follow notification though. Maybe the view can be called "7 New Followers" or "Recent Followers" like you suggested.
The best way to do this is probably an icon change in the list view, and maybe instead of blue for unread the circle could be yellow.
If possible I think it should "link" to the comment in the reader. |
… detail view. I created a wrapper activity for CommentDetailFragment, so the experience feels the same when you go to a third-level detail view in notifications.
…erNoteBlock`. Added note to developer in colors.xml if they are changing the colors.
…causing external links not to load.
Set proper theme.
I can do this in the next release: #1854 |
…sn't have a comment action listener.
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 kind of weird for a setter not to have a parameter.
…note's Ids. Fixed a weird setter, it should pass the boolean value.
…previously. Only difference is that `CommentActions.sumbitReplyToCommentRestApi` is used if we've loaded a remote comment from the Note.
|
@roundhill Everything looks good - I'm okay to merge this with 3.2 if you're ready. |
|
Woo! Squirrel it. |
|
Closing this to create the PR against the |
Notifications Redesign
An all-new Notifications area that has a refined and rich experience across Android, iOS and WP.com.
The UX went through many iterations, which is why there's so many commits. Sorry ;)
What's New?
CommentDetailFragment.How's it work?
Notifications are still backed by Simperium, but now use the 'Notes 2.0' model which enable us to do many new and nifty things:
NoteBlockclass to see how the most basic block works. All other blocks are a subclass ofNoteBlockthat perform different rendering based on their block type.NotificationsDetailListFragment. For comment notifications, this Fragment is added toCommentDetailView.Ranges. A range describes a substring in a text that can have an action. Most of the time, these are displayed as links but can also apply different formatting (such as BlockQuote). Ranges that have an action are made clickable by using aNoteBlockClickableSpan.posttype will load theReaderPostDetailFragmentusing the Ids that are provided in the Range.Notes
NoticonTextViewsubclass that uses the noticon font to render the notification icons. This will future-proof icons for new notes added in the future and saves space as we don't need PNGs for the note icons any longer.JSONUtils, so that submodule will need to be pushed with that change./values-hdpi/dimens.xml. Wish there was a way around that but I couldn't get them pixel-perfect otherwise.