Commit Graph

661 Commits

Author SHA1 Message Date
c0mrade
093c9f2893 fix: add Telegram header padding for Android fullscreen mode 2026-02-01 21:09:16 +03:00
c0mrade
6f8bc4fca5 fix: revert to native Telegram WebApp API, remove SDK usage 2026-02-01 20:37:23 +03:00
c0mrade
e5ea09dd3a fix: wrap all SDK isSupported() calls in try-catch 2026-02-01 20:29:38 +03:00
c0mrade
baa57b907e fix: handle unmounted SDK components gracefully 2026-02-01 20:23:45 +03:00
c0mrade
edb5be09ae feat: migrate to @tma.js/sdk-react for Telegram Mini App
- Add useTelegramSDK hook with reactive signals for viewport, safe area, fullscreen
- Migrate TelegramAdapter to use SDK components (backButton, mainButton, hapticFeedback, cloudStorage, themeParams, popup)
- Update Login, TelegramRedirect to use SDK helpers
- Update PlatformProvider, api/client to use centralized SDK functions
- Simplify useTelegramWebApp as backward-compatible wrapper
- Add automatic CSS variable binding for theme and viewport
2026-02-01 20:13:50 +03:00
c0mrade
55ae55f4af fix: Aurora uses theme colors from API with blur overlay 2026-02-01 18:58:10 +03:00
c0mrade
851e6a353b fix: make Aurora colors vibrant and increase speed 2026-02-01 18:58:10 +03:00
c0mrade
cffef41f63 feat: replace MovingGradient with Aurora WebGL background 2026-02-01 18:58:10 +03:00
c0mrade
24781f32ec feat: add animated MovingGradient background 2026-02-01 18:58:10 +03:00
c0mrade
c60a242f1d fix: add missing i18n keys for broadcast detail page 2026-02-01 18:58:10 +03:00
c0mrade
b953ee0b8c feat: Linear-style UI redesign with improved mobile experience
Major changes:
- Redesign cabinet with Linear-style components and top navigation
- Replace detail modals with dedicated pages (users, broadcasts, email templates)
- Add email channel support for broadcasts
- Remove pull-to-refresh, improve drag-and-drop on touch devices
- Fix Telegram Mini App: fullscreen, back button, scroll restoration
- Unify admin pages color scheme to design system
- Mobile-first improvements: horizontal tabs for settings, better touch targets
2026-02-01 18:58:10 +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
b1eea1860c Update subscription.ts 2026-01-31 20:55:41 +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
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
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
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
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
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
Egor
2d0f1b91da Update Subscription.tsx 2026-01-30 18:05:21 +03:00
Egor
dd5cb7789f Update Subscription.tsx 2026-01-30 18:00:41 +03:00
Egor
052e8fad4f Update Balance.tsx 2026-01-30 17:08:36 +03:00
Egor
6faf8a641b Add files via upload 2026-01-30 16:22:16 +03:00
Egor
28b979fdea Update Balance.tsx 2026-01-30 16:21:52 +03:00
Egor
a0461c7a89 Add files via upload 2026-01-30 15:55:08 +03:00
Egor
760761729b Add files via upload 2026-01-30 15:54:31 +03:00
Egor
23e9444cf4 Update Profile.tsx 2026-01-30 15:53:23 +03:00
Egor
2f1083d005 Update auth.ts 2026-01-30 15:52:51 +03:00
Egor
b18ccf005d Add files via upload 2026-01-29 01:04:26 +03:00
Egor
bdd516d3b1 Add SubscriptionStatusResponse interface
Added SubscriptionStatusResponse interface for subscription status.
2026-01-29 01:04:04 +03:00
Egor
660f2295ba Update subscription.ts 2026-01-29 01:03:46 +03:00
Egor
a9e7f0ae3d Add files via upload 2026-01-28 21:13:15 +03:00
Egor
ef16fb65f0 Update fallback handling for invoice URL in Wheel 2026-01-28 21:12:32 +03:00