Commit Graph

16 Commits

Author SHA1 Message Date
Egor
bb212ddfe1 Update successNotification.ts 2026-01-31 20:47:23 +03:00
Egor
3080e8e996 Update successNotification.ts 2026-01-31 19:52:08 +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
bc90ba3779 refactor: migrate to eslint flat config and format codebase with prettier
- Remove legacy .eslintrc.cjs and .eslintignore
- Add eslint.config.js with flat config, security rules (no-eval, no-implied-eval, no-new-func, no-script-url)
- Add .prettierrc and .prettierignore
- Format entire codebase with prettier
2026-01-27 17:37:31 +03:00
Egor
2519fdcee2 Update auth.ts 2026-01-25 09:25:56 +03:00
Egor
8ea747c927 Update auth.ts 2026-01-25 08:45:39 +03:00
Egor
0cf0518be2 Update auth.ts 2026-01-23 11:33:50 +03:00
Egor
2836d1faf5 Add files via upload 2026-01-20 14:38:42 +03:00
PEDZEO
6751f41859 Refactor authentication flow to check admin status before updating loading state 2026-01-18 23:03:38 +03:00
Egor
9d5477931c Update auth.ts 2026-01-18 06:47:59 +03:00
Egor
2537261595 Update auth.ts 2026-01-18 06:27:35 +03:00
Egor
339ac12b4d Update auth.ts 2026-01-18 05:28:25 +03:00
Egor
db363b6152 Update auth.ts 2026-01-18 05:20:17 +03:00
Egor
361cad1105 Update auth.ts 2026-01-18 05:16:26 +03:00
Egor
7be6b5c0ae Add files via upload 2026-01-15 19:18:17 +03:00