c0mrade
9b0be280d2
fix: disable Telegram swipe-to-close globally to prevent accidental app closures
2026-02-02 00:55:39 +03:00
c0mrade
f6854c6c3a
fix: use single shared WebSocket connection and optimize build chunks
2026-02-01 23:34:29 +03:00
c0mrade
8deca2fa5b
fix: disable Telegram vertical swipes during drag operations
...
- Add useTelegramDnd hook for @dnd-kit integration
- Update Sheet components to disable swipes when open
- Update AdminPaymentMethods to use the new hook
- Prevents conflict between app drag gestures and Telegram swipe-to-close
2026-02-01 22:46: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
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
9b2d573871
Update useWebSocket.ts
2026-01-31 20:47:50 +03:00
Egor
dea0562a0d
Update useWebSocket.ts
2026-01-31 19:53:49 +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
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
9c2cb24c21
Add files via upload
2026-01-27 01:20:15 +03:00
Egor
f293fb8b2b
Update useTelegramWebApp.ts
2026-01-27 00:33:41 +03:00
Egor
857541fb94
Update usePullToRefresh.ts
2026-01-22 23:32:17 +03:00
PEDZEO
d7b387927f
Redesign AdminSettings with tabs navigation and favorites
...
- Add tab-based navigation (Favorites, Branding, Theme, Payments, etc.)
- Create useFavoriteSettings hook for localStorage-based favorites
- Create SettingCard component for consistent setting display
- Add global search functionality
- Implement collapsible sections for theme presets and colors
- Group settings by meta-categories (payments, subscriptions, etc.)
- Add dropdown for additional categories (More menu)
- Modern UI with improved spacing and interactions
2026-01-21 02:52:37 +03:00
Egor
d57419e338
Update useTelegramWebApp.ts
2026-01-20 13:51:08 +03:00
PEDZEO
2d8a0bd63a
Add pull to refresh functionality in Layout component: integrate usePullToRefresh hook, implement visual indicator for refresh state, and ensure compatibility with mobile menu interactions for improved user experience.
2026-01-20 03:35:58 +03:00
PEDZEO
64acfbee72
Add fullscreen functionality: introduce API methods for getting and updating fullscreen settings, implement caching for fullscreen state, and integrate fullscreen toggle in AdminSettings. Remove unused fullscreen icons from Layout component.
2026-01-20 02:17:22 +03:00
PEDZEO
6048d90e46
Enhance Layout and useTelegramWebApp hook: add contentSafeAreaInset state and adjust header padding for fullscreen mode to improve layout responsiveness.
2026-01-20 01:21:40 +03:00
PEDZEO
8753000a03
Add Telegram WebApp support: initialize app, enhance layout with fullscreen toggle, and improve polling mechanism in Wheel component
2026-01-20 00:13:11 +03:00
PEDZEO
c96ec5ecf6
Enhance performance and user experience in AnimatedBackground and FortuneWheel components. Added low-performance device detection, optimized rendering logic, and improved CSS animations. Refactored theme color application in useThemeColors hook for better palette generation. Updated Dashboard to use static icons on low-performance devices.
2026-01-20 00:02:28 +03:00
PEDZEO
5f123a39d9
Refactor App component to implement lazy loading for user and admin pages, enhancing performance and reducing initial load time. Introduce LazyPage wrapper for suspense handling during component loading.
2026-01-19 01:51:52 +03:00
PEDZEO
3fc22d2b4d
Refactor WebSocket URL handling in useWebSocket hook to support both absolute and relative API URLs, improving flexibility and error handling for host resolution.
2026-01-19 01:40:50 +03:00
PEDZEO
35ee63b351
Add ticket notification system with user and admin notification settings; integrate ToastProvider in main app layout
2026-01-19 00:24:13 +03:00
Egor
7be6b5c0ae
Add files via upload
2026-01-15 19:18:17 +03:00