Skip to content

TIG-347: Rebuild Alerts panel with ride-linked notifications - #22

Open
brittastic27 wants to merge 1 commit into
mainfrom
notifications-panel
Open

brittastic27 wants to merge 1 commit into
mainfrom
notifications-panel

Conversation

@brittastic27

Copy link
Copy Markdown
Collaborator

Summary

  • Rebuild the Alerts dropdown/panel with All / Requests / Rides tabs, empty/loading/error states, Mark all as read + Clear, and a sky unread dot on the bell.
  • Add Notifications.ride_id (schema + migration) so alerts deep-link to /myrides?ride=<id>, and thread ride_id through notification write paths.
  • Wire Accept/Deny on join-request alerts via /api/respondtorequest, remove the poster’s join-request alert after respond, and refresh open ride pages with notifyRidesChanged.

Test plan

  • Open Alerts: tabs All / Requests / Rides filter correctly; All stays grouped Requests then Rides
  • Mark all as read greys alerts; Clear hard-deletes them; unread sky/info dot appears when there are unread alerts
  • Close panel via Escape, bell toggle, and desktop backdrop (no X)
  • Create a join request as another user → poster sees Accept/Deny in Requests; accept/deny updates Home/My Rides without full reload and notifies the requester
  • Click a ride alert → lands on My Rides with that ride highlighted
  • Backend: pytest tests/test_ride_requests.py passes (includes ride_id + clear-on-respond coverage)

Made with Cursor

Add ride_id to notifications so alerts can deep-link and filter into All/Requests/Rides, and wire poster Accept/Deny from the panel with live ride refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@brittastic27 brittastic27 changed the title Rebuild Alerts panel with ride-linked notifications TIG-347: Rebuild Alerts panel with ride-linked notifications Dec 2, 2026
@linear

linear Bot commented Dec 2, 2026

Copy link
Copy Markdown

TIG-347

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants