Add global search, in-app + push notifications, and fix card/beneficiary/scroll issues
- Global feature search for the user app, wired to the home search icon - Notifications screen: swipe-to-delete, vanish animation, unread badge, and Notifee-backed foreground + background (scheduled) OS notifications - Fix Add Beneficiary save (single source of truth via beneficiaries slice) - Fix Cards tab scroll freeze and bottom blank space (use ScreenShell scroll) - User-friendly toast copy across the app - Android build tuning: parallel/caching/JVM G1 args, mobile-only ABIs Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d7907e1d64
commit
58af541536
@@ -1,6 +1,7 @@
|
||||
import type {
|
||||
AccountSummary,
|
||||
ActiveLoan,
|
||||
AppNotification,
|
||||
BankCard,
|
||||
Beneficiary,
|
||||
Branch,
|
||||
@@ -41,6 +42,57 @@ export const demoUser: UserProfile = {
|
||||
},
|
||||
};
|
||||
|
||||
export const demoNotifications: AppNotification[] = [
|
||||
{
|
||||
id: 'ntf_login',
|
||||
category: 'security',
|
||||
title: 'New sign-in detected',
|
||||
body: 'We noticed a new sign-in on a Pixel device in Bengaluru. If this was you, no action is needed.',
|
||||
createdAt: '2026-06-02T08:45:00+05:30',
|
||||
read: false,
|
||||
},
|
||||
{
|
||||
id: 'ntf_credit',
|
||||
category: 'transaction',
|
||||
title: 'Money received',
|
||||
body: '₹24,500 was credited to your Savings account XXXX 9312 from Priya Nair.',
|
||||
createdAt: '2026-06-02T07:10:00+05:30',
|
||||
read: false,
|
||||
},
|
||||
{
|
||||
id: 'ntf_card_bill',
|
||||
category: 'reminder',
|
||||
title: 'Credit card bill due soon',
|
||||
body: 'Your card payment of ₹12,870 is due on 8 June. Pay early to avoid interest charges.',
|
||||
createdAt: '2026-06-01T18:30:00+05:30',
|
||||
read: false,
|
||||
},
|
||||
{
|
||||
id: 'ntf_offer',
|
||||
category: 'offer',
|
||||
title: 'Festive cashback unlocked',
|
||||
body: 'Get 5% cashback on UPI payments above ₹500 this week. Terms apply.',
|
||||
createdAt: '2026-05-31T11:00:00+05:30',
|
||||
read: true,
|
||||
},
|
||||
{
|
||||
id: 'ntf_fd',
|
||||
category: 'reminder',
|
||||
title: 'Fixed deposit maturing',
|
||||
body: 'Your fixed deposit of ₹1,00,000 matures on 15 June. Choose to renew or withdraw.',
|
||||
createdAt: '2026-05-30T09:20:00+05:30',
|
||||
read: true,
|
||||
},
|
||||
{
|
||||
id: 'ntf_kyc',
|
||||
category: 'system',
|
||||
title: 'KYC verification complete',
|
||||
body: 'Your KYC details have been verified successfully. All account features are now active.',
|
||||
createdAt: '2026-05-28T16:05:00+05:30',
|
||||
read: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const demoAccounts: AccountSummary[] = [
|
||||
{
|
||||
id: 'acc_primary',
|
||||
|
||||
Reference in New Issue
Block a user