Notifications: deep-link on tap + swipe-to-dismiss
Each notification now navigates to its related screen when tapped (toast or list): friend_request/invite -> Friends, achievement/reward -> Achievements, daily -> opens the daily-reward modal, coin-purchase success -> Shop. An explicit per-notification 'route' overrides the kind default. List rows are swipeable (drag aside) and have an X to dismiss individually, plus a Clear-all button; the toast can be flicked up to dismiss or tapped to open. New store actions: markRead/remove/clearAll + openNotification navigator. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -593,6 +593,7 @@ export type NotificationKind =
|
||||
| "friend_request"
|
||||
| "invite"
|
||||
| "achievement"
|
||||
| "reward"
|
||||
| "daily"
|
||||
| "system";
|
||||
|
||||
@@ -606,6 +607,10 @@ export interface AppNotification {
|
||||
icon: string; // emoji
|
||||
ts: number;
|
||||
read: boolean;
|
||||
/** explicit deep-link target screen name (overrides the kind default) */
|
||||
route?: string;
|
||||
/** optional payload, e.g. a user id (friend_request) the target screen can use */
|
||||
payload?: string;
|
||||
}
|
||||
|
||||
/* ------------------------------ Avatars ------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user