Screens / Notifications
Notifications
The signed-in person's notifications (PAN-148, 81u), open to everyone. Reached from More on a phone (last under Business, with the unread count) and from Settings on desktop. Rows are grouped by day and worded by the app from the type and params (low stock, unpaid orders, invites accepted, payroll ready, stock count saved, plan renewal stages); tapping a row marks it read and opens its target. The unread badge in the shell refreshes on open and after each read.
- App routes
/notifications- Access
- any signed-in person
- Screen code
lib/screens/notifications/notifications_page.dartlib/screens/notifications/notifications_controller.dartlib/screens/notifications/notifications_bindings.dartlib/screens/notifications/notifications_badge.dartlib/screens/notifications/notification_copy.dartlib/screens/notifications/widgets/notification_row.dartlib/screens/notifications/widgets/notification_group_label.dartlib/screens/notifications/widgets/notifications_header.dartlib/screens/notifications/widgets/notifications_empty.dartlib/screens/notifications/widgets/notifications_widgets.dartlib/domain/notifications/notification_rules.dartlib/data/models/notification_models.dartlib/data/repositories/notifications_repository.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (3)
| Call | Why the screen makes it | Where in the app code |
|---|---|---|
GET /v1/notificationsMy notifications in this business, newest first |
First page on open, newest first, then the next cursor page on scroll | lib/screens/notifications/notifications_controller.dart:47lib/screens/notifications/notifications_controller.dart:66lib/data/repositories/notifications_repository.dart:23 |
GET /v1/notifications/unread-countHow many of my notifications are unread |
Unread badge count; a failed count keeps the last value | lib/screens/notifications/notifications_badge.dart:33lib/data/repositories/notifications_repository.dart:29 |
POST /v1/notifications/readMark my notifications read |
Mark one row read on tap ({ids}) or all read ({all: true}) | lib/screens/notifications/notifications_controller.dart:85lib/screens/notifications/notifications_controller.dart:104lib/data/repositories/notifications_repository.dart:36lib/data/repositories/notifications_repository.dart:41 |
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.