Skip to content
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 notification policies and notification requests in web UI #29433

Merged
merged 1 commit into from Mar 11, 2024

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Feb 28, 2024

Follow-up to #29366


Fixes MAS-39

Peek.2024-02-28.09-16.mp4

@Gargron Gargron added the ui Front-end, design label Feb 28, 2024
@Gargron Gargron force-pushed the feature-notifications-filter-ui branch 3 times, most recently from 13029ca to 3951390 Compare February 28, 2024 08:14
Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't constitute a full review, but I tried this on my server to help me review/evaluate the backend changes in #29366. I noticed a few bugs, issues, and suggestions:

  • the requests' accounts are not properly imported—I made inline code suggestions to fix this
  • once fetched, the list of potentially-filtered notifications does not change when you change a request, misattributing them—I made inline code suggestions for this too
  • the list of notification requests appears to never get updated during the application's lifetime, which is likely going to be an issue for people who rarely if ever reload their app
  • I think there is an opportunity to hide all media by default in the new filtered notification column

Otherwise, I really like how it looks!

app/javascript/mastodon/actions/notifications.js Outdated Show resolved Hide resolved
app/javascript/mastodon/actions/notifications.js Outdated Show resolved Hide resolved
app/javascript/mastodon/actions/notifications.js Outdated Show resolved Hide resolved
app/javascript/mastodon/reducers/notification_requests.js Outdated Show resolved Hide resolved
app/javascript/mastodon/features/notifications/request.jsx Outdated Show resolved Hide resolved
@shleeable
Copy link
Contributor

shleeable commented Feb 28, 2024

Those filter conditions are pretty good, but I'd be interested in bypassing the filter for "Notification from somebody followed by somebody I follow"... 2 degrees would be safer from spammer

No idea about the performance overhead for that.

Copy link
Contributor

github-actions bot commented Mar 1, 2024

This pull request has merge conflicts that must be resolved before it can be merged.

@Gargron Gargron force-pushed the feature-notifications-filter-ui branch 2 times, most recently from 91e22a1 to a26fca4 Compare March 8, 2024 02:20
Copy link
Contributor

github-actions bot commented Mar 8, 2024

This pull request has resolved merge conflicts and is ready for review.

@Gargron Gargron force-pushed the feature-notifications-filter-ui branch from a26fca4 to e81d369 Compare March 8, 2024 14:17
@Gargron Gargron marked this pull request as ready for review March 8, 2024 14:47
@ClearlyClaire ClearlyClaire added the build-image Build a container image for this PR label Mar 11, 2024
@Gargron Gargron force-pushed the feature-notifications-filter-ui branch from e81d369 to 7f6e24f Compare March 11, 2024 12:59
@Gargron Gargron force-pushed the feature-notifications-filter-ui branch from 7f6e24f to 94e6c23 Compare March 11, 2024 14:32
Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good overall, but I think there are two issues left worth addressing quickly (either in this PR or follow-up PRs):

  • unlike mutes, there is currently no interface to review and undo “dismissed” notification requests
  • accepting a notification request does not immediately backfill the notifications column with the newly-accepted notifications

@Gargron Gargron added this pull request to the merge queue Mar 11, 2024
Merged via the queue into main with commit c10bbf5 Mar 11, 2024
53 checks passed
@Gargron Gargron deleted the feature-notifications-filter-ui branch March 11, 2024 15:07
@@ -271,6 +272,8 @@
"filter_modal.select_filter.subtitle": "Use an existing category or create a new one",
"filter_modal.select_filter.title": "Filter this post",
"filter_modal.title.status": "Filter a post",
"filtered_notifications_banner.pending_requests": "Notifications from {count, plural, =0 {no} one {one person} other {# people}} you may know",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when count is 0, source text says "Notifications from no you may know", which makes no sense

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should've been "no one", but also, the banner is hidden when the count is 0.

renchap added a commit to renchap/mastodon that referenced this pull request Mar 12, 2024
@renchap renchap mentioned this pull request Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-image Build a container image for this PR ui Front-end, design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants