-
-
Notifications
You must be signed in to change notification settings - Fork 288
Feature/sc 31715/sheets desktop notifications page #2410
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
Open
yitzhakc
wants to merge
56
commits into
modularization-main
Choose a base branch
from
feature/sc-31715/sheets-desktop-notifications-page
base: modularization-main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/sc 31715/sheets desktop notifications page #2410
yitzhakc
wants to merge
56
commits into
modularization-main
from
feature/sc-31715/sheets-desktop-notifications-page
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ops, frontend work
…hich doesnt speed things up
…d of hard-coded value used in development
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.
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Files not reviewed (1)
- static/css/s2.css: Language not supported
Comments suppressed due to low confidence (2)
sefaria/model/user_profile.py:600
- Consider reviewing whether unread_notification_count should also support a scope parameter for consistency with recent_notifications. A consistent behavior may reduce potential confusion in production.
# TODO: Why do we not need to scope the notifications to the module here?
sefaria/model/notification.py:356
- [nitpick] The conditional inline operator for setting the query operator may reduce readability. Consider refactoring by assigning the operator to a variable before using it in the query to improve clarity.
query["type"] = {"$in" if scope == 'sheets' else "$nin": Notification.sheets_notification_types}
…lesforce. Interface language and educator fields were switched
…form-sign-up-producing Hebrew newsletter form sign up producing wrong data in Salesforce
Update file and link for 2024 Impact Report
…ndex-title-autocomplete Encode question marks in titles from autocpmleter
fix: don't fail on self.save when django user doesn't have mongo odject
chore(question mark): control for question mark in templating url and…
fix: configure heap size in nodejs deployment
chore(sentry): lower server rate to 1%
Override merging due to failing playwright tests
…e-for-romanian Feature/sc 32313/adding iso code for romanian Overriding merge queue due to failiing playwright tests
chore: Update node memory requirements
This reverts commit ea4e987.
Revert "chore: Update node memory requirements"
Clear cache in node between requests
…op-notifications-page
stevekaplan123
previously approved these changes
May 26, 2025
The merge-base changed after approval.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Configure notifications page to display only sheet-related notifications.
This pull request includes several changes to enhance the notification system by introducing scoped notifications and improving the user interface. The most important changes include adding scope functionality to notifications, updating the user interface to reflect these changes, and modifying the CSS for better styling.
Code Changes
Scope functionality for notifications:
reader/views.py
: Addedactive_module
to the request and used it in various functions to filter notifications by scope. [1] [2] [3] [4]sefaria/model/notification.py
: Introducedsheets_notification_types
and added a helper method_build_query_with_scope
to filter notifications by scope. Updated existing methods to use this helper method. [1] [2]sefaria/model/user_profile.py
: Modifiedrecent_notifications
andunread_notification_count
to accept a scope parameter.sefaria/urls.py
: Added a new URL pattern for sheet notifications.User interface updates:
static/js/NotificationsPanel.jsx
: Updated the notifications panel to use the scoped notifications and improved the logic for displaying notifications and login prompts. [1] [2]static/js/NotificationsPanel.jsx
: Added a new class to style the notification user names. [1] [2] [3]CSS improvements:
static/css/s2.css
: Changed the font family for notification titles and summaries to sans-serif and added a new class for styling notification user names. [1] [2]##Notes
I refactored the generation of the notification queries to add awareness of the relevant scope (sheets or library)