Panly API docsstaging

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.dart
lib/screens/notifications/notifications_controller.dart
lib/screens/notifications/notifications_bindings.dart
lib/screens/notifications/notifications_badge.dart
lib/screens/notifications/notification_copy.dart
lib/screens/notifications/widgets/notification_row.dart
lib/screens/notifications/widgets/notification_group_label.dart
lib/screens/notifications/widgets/notifications_header.dart
lib/screens/notifications/widgets/notifications_empty.dart
lib/screens/notifications/widgets/notifications_widgets.dart
lib/domain/notifications/notification_rules.dart
lib/data/models/notification_models.dart
lib/data/repositories/notifications_repository.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (3)

CallWhy the screen makes itWhere in the app code
GET /v1/notifications
My 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:47
lib/screens/notifications/notifications_controller.dart:66
lib/data/repositories/notifications_repository.dart:23
GET /v1/notifications/unread-count
How many of my notifications are unread
Unread badge count; a failed count keeps the last value lib/screens/notifications/notifications_badge.dart:33
lib/data/repositories/notifications_repository.dart:29
POST /v1/notifications/read
Mark my notifications read
Mark one row read on tap ({ids}) or all read ({all: true}) lib/screens/notifications/notifications_controller.dart:85
lib/screens/notifications/notifications_controller.dart:104
lib/data/repositories/notifications_repository.dart:36
lib/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.