-
Notifications
You must be signed in to change notification settings - Fork 7
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
Collapse favorite/boost notifications into a single notification #38
Conversation
This pull request has merge conflicts that must be resolved before it can be merged. |
earlier there were issues regarding some other components which expected |
if (Intl.ListFormat) { | ||
rebloggedByText = intl.formatMessage( | ||
{ id: 'status.reblogged_by', defaultMessage: '{name} boosted' }, | ||
{ name: new Intl.ListFormat(intl.locale, { type: 'conjunction' }).format(accounts.map(acct => acct.get('acct'))) }, |
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.
Is this unsorted?
We should make sure we're always showing the most recent accounts to have boosted/favorited the status
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 should be sorted by recent-first since that's the order the grouping function puts them in, I'll check again when I add reactions
render () { | ||
const { intl, notifications, isLoading, isUnread, columnId, multiColumn, hasMore, numPending, showFilterBar, lastReadId, canMarkAsRead, needsNotificationPermission } = this.props; |
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.
Is there a reason "notifications" was removed? IDE cleaned it up I'm guessing?
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.
Yeah, I instead decided to calculate the notifications
variable based on user settings instead of coming directly from props (see line 268).
Might clean the up the code down there since it looks a bit more confusing than I'd like.
resolves #33
Summary of changes:
account
prop (the prop indicating a "related" account, such as who favorited a post inside of a notification) to optionally be a list of accountsfriend
prop tofriends
to prepare for being able to show multiple profile pictures for the multiple accounts that favorited the post.account
vsprops.account
... might need to check for regressions here but I haven't found any so far.account
prop into an account list