Commit Graph

651 Commits

Author SHA1 Message Date
Egor
733674bcc7 Merge pull request #133 from BEDOLAGA-DEV/dev
Dev
2026-02-03 04:42:31 +03:00
Egor
bab722385d Update AdminUsers.tsx 2026-02-03 04:41:34 +03:00
Egor
efb8113647 Add files via upload 2026-02-03 04:40:00 +03:00
Egor
42bb563ab6 Update AdminUsers.tsx 2026-02-03 04:39:42 +03:00
Egor
eae12e2694 Update adminUsers.ts 2026-02-03 04:39:13 +03:00
Egor
cb0d269857 Merge pull request #132 from BEDOLAGA-DEV/dev
Dev
2026-02-03 04:01:39 +03:00
Egor
334b2718ee Add files via upload 2026-02-03 03:49:26 +03:00
Egor
192ac71a02 Update Subscription.tsx 2026-02-03 03:49:06 +03:00
Egor
7783cbc61d Update index.ts 2026-02-03 03:48:45 +03:00
Egor
6e2a0de958 Merge pull request #131 from BEDOLAGA-DEV/dev
Dev
2026-02-02 05:25:44 +03:00
Egor
1af7dee04d Update Subscription.tsx 2026-02-02 05:22:18 +03:00
Egor
f35277ad3a Add files via upload 2026-02-02 05:20:13 +03:00
Egor
196c826aa8 Add files via upload 2026-02-02 05:19:42 +03:00
Egor
929634aac4 Merge pull request #129 from BEDOLAGA-DEV/dev
Уменьшение кол-ва устройств
2026-02-01 17:22:01 +03:00
Egor
92905770e4 Update subscription.ts 2026-02-01 17:21:03 +03:00
Egor
8a0ff740e1 Add files via upload 2026-02-01 17:20:27 +03:00
Egor
de7c911a7e Update Subscription.tsx 2026-02-01 17:19:59 +03:00
Egor
b8f3621b22 Merge pull request #128 from BEDOLAGA-DEV/dev
Update package-lock.json
2026-02-01 00:58:51 +03:00
Egor
13790d057a Update package-lock.json 2026-02-01 00:58:13 +03:00
Egor
15e23e262f Merge pull request #127 from BEDOLAGA-DEV/dev
Update subscription.ts
2026-01-31 20:56:14 +03:00
Egor
b1eea1860c Update subscription.ts 2026-01-31 20:55:41 +03:00
Egor
dcb74e9bd6 Merge pull request #126 from BEDOLAGA-DEV/dev
Dev
2026-01-31 20:49:27 +03:00
Egor
391c42ec60 Update subscription.ts 2026-01-31 20:48:36 +03:00
Egor
8007c1b4c1 Update Subscription.tsx 2026-01-31 20:48:10 +03:00
Egor
9b2d573871 Update useWebSocket.ts 2026-01-31 20:47:50 +03:00
Egor
bb212ddfe1 Update successNotification.ts 2026-01-31 20:47:23 +03:00
Egor
1d6450fd3b Add files via upload 2026-01-31 20:47:02 +03:00
Egor
bd95a131d4 Merge pull request #125 from BEDOLAGA-DEV/dev
Dev
2026-01-31 20:34:17 +03:00
Egor
313a6039cc Update Subscription.tsx 2026-01-31 20:31:51 +03:00
Egor
35098faf88 Update InsufficientBalancePrompt.tsx 2026-01-31 20:31:23 +03:00
Egor
01e3c7b042 Update subscription.ts 2026-01-31 20:31:01 +03:00
Egor
a38b73d165 Merge pull request #124 from BEDOLAGA-DEV/dev
Dev
2026-01-31 20:15:45 +03:00
Egor
562376bb11 Add files via upload 2026-01-31 20:14:45 +03:00
Egor
957b4a93b5 Update AdminUsers.tsx 2026-01-31 20:14:12 +03:00
Egor
9a1d02614c Update adminUsers.ts 2026-01-31 20:13:44 +03:00
Egor
532c7b69db Merge pull request #123 from BEDOLAGA-DEV/dev
Dev
2026-01-31 19:55:26 +03:00
Egor
dea0562a0d Update useWebSocket.ts 2026-01-31 19:53:49 +03:00
Egor
abe016c7b1 Add files via upload 2026-01-31 19:53:23 +03:00
Egor
3080e8e996 Update successNotification.ts 2026-01-31 19:52:08 +03:00
Egor
706e3b5c76 Merge pull request #122 from BEDOLAGA-DEV/dev
Dev
2026-01-31 18:06:33 +03:00
Egor
0bd84bb277 Update AdminBroadcasts.tsx 2026-01-31 18:05:31 +03:00
Egor
902ce24c6c Add files via upload 2026-01-31 18:03:18 +03:00
Egor
f1976ca7ff Update AdminBroadcasts.tsx 2026-01-31 18:02:58 +03:00
Egor
8f72d9f831 Update adminBroadcasts.ts 2026-01-31 18:02:39 +03:00
Egor
049397c372 Update package-lock.json 2026-01-31 18:02:02 +03:00
Egor
5fd0e6539c Merge pull request #121 from BEDOLAGA-DEV/main
ц
2026-01-31 18:01:35 +03:00
c0mrade
1dcd5fb94e Merge pull request #120 from BEDOLAGA-DEV/feat/websocket-subscription-balance-notifications
feat/websocket subscription balance notifications
2026-01-30 20:12:53 +03:00
c0mrade
0be1ef0340 feat: auto-close modals when success notification appears
- Add closeOthersSignal to success notification store
- Create useCloseOnSuccessNotification hook for modals to subscribe
- Update TopUpModal to auto-close on success events
- Update InsufficientBalancePrompt to auto-close on success events
- Update Subscription page to close all modals/forms on success events

This ensures that when a WebSocket event indicates successful payment
or subscription purchase, all related modals close automatically,
providing clear feedback to users.
2026-01-30 19:54:29 +03:00
c0mrade
175b5608b2 feat: add success notification modal for balance and subscription events
- Add zustand store for global success notifications
- Create SuccessNotificationModal component with prominent UI
- Update WebSocketNotifications to show modal for important events:
  - balance.topup shows balance topped up modal
  - subscription.activated shows activation modal
  - subscription.renewed shows renewal modal
- Add translations for all locales (ru, en, zh, fa)
2026-01-30 19:39:14 +03:00
c0mrade
ca227f3975 feat(websocket): add global handler for subscription and balance notifications
- Extend WSMessage interface with balance, subscription, autopay, account, referral fields
- Create WebSocketNotifications component to handle all WS events
- Add component to Layout for global event listening
- Show toasts and invalidate queries on subscription/balance events
- Add translations for all notification types (ru, en, zh, fa)
2026-01-30 19:04:45 +03:00