Commit Graph

46 Commits

Author SHA1 Message Date
c0mrade
822b9a6265 fix: remove small discount badge and improve large badge UX
- Remove unused PromoDiscountBadge component
- Fix undefined isPromoActive variable in AppHeader
- Restore language switcher visibility on mobile
- Enhance active discount banner with better hover effects
- Add arrow indicator and scale animation on hover
2026-02-02 07:20:37 +03:00
c0mrade
dda8323b45 fix: remove page transition animations to prevent flashing
AnimatePresence was causing black flash between page transitions.
Removed page-level animations - stagger animations inside pages still work.
2026-02-01 21:48:28 +03:00
c0mrade
5ad5e8d365 fix: restore page animations, improve checkbox visibility
- Re-enable page transition animations in Telegram Mini App
- Change AnimatePresence mode from popLayout to wait (prevents black squares)
- Add initial={false} to skip animation on first render
- Add custom checkbox styling with better visibility (bg-dark-700, border-dark-600)
- Custom checkmark appearance when checked
- Light theme checkbox support
2026-02-01 21:32:08 +03:00
c0mrade
768b340c35 fix: UI improvements - reduce Android header, hide mobile scrollbar, disable animations in Telegram, consistent menu overlay 2026-02-01 21:22:42 +03:00
c0mrade
093c9f2893 fix: add Telegram header padding for Android fullscreen mode 2026-02-01 21:09:16 +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
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
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
b42c52714b Fix formatting and improve favicon update logic 2026-01-27 17:59:36 +03:00
Egor
b523da2fb0 Merge pull request #101 from BEDOLAGA-DEV/feat/husky-eslint-security
feat/husky eslint security
2026-01-27 17:50:15 +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
evansvl
0461f2e5c3 feat: Add new Layout component with navigation, branding, theme switching, and Telegram Web App integration. 2026-01-25 23:03:32 +03:00
Egor
0207f5259a Update Layout.tsx 2026-01-21 08:41:40 +03:00
Egor
97ebb33189 Update Layout.tsx 2026-01-21 05:31:18 +03:00
PEDZEO
b7e6ee490c Fix keyboard detection using focus events instead of visualViewport 2026-01-21 02:21:57 +03:00
PEDZEO
fb46c84b58 Hide bottom navigation when virtual keyboard is open
- Added visualViewport API detection for keyboard state
- Bottom nav fades out when keyboard opens (opacity + pointer-events)
- Prevents nav from jumping up with keyboard on mobile
2026-01-21 02:18:20 +03:00
Dev
29f568cc95 feat: redesign header, switch font to Manrope, fix z-indexes 2026-01-20 23:06:57 +05:00
Egor
89880195ad Update Layout.tsx 2026-01-20 07:40:46 +03:00
Egor
3a4f9b66da Update Layout.tsx 2026-01-20 07:20:00 +03:00
Dev
7dcfecbb80 Close mobile menu when clicking bottom nav items 2026-01-20 09:01:57 +05:00
PEDZEO
a76803f4ea Improve mobile menu interaction in Layout component: add click handler to close menu on outside click and prevent event propagation for mobile menu button, enhancing user experience and interaction consistency. 2026-01-20 03:59:17 +03:00
PEDZEO
92b1d30cbb Refactor scroll locking in ConnectionModal and TopUpModal: simplify the implementation by removing unnecessary style manipulations and enhancing event listeners for touch and wheel scroll prevention, ensuring a smoother user experience across devices. 2026-01-20 03:52:27 +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
61eaf30da9 Enhance Layout component: improve mobile menu scroll locking functionality for cross-platform support, restore original body and HTML styles on menu close, and prevent touchmove events outside of menu content for better user experience. 2026-01-20 03:19:06 +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
13f6380763 Update Layout component: adjust padding for safe area in fullscreen mode to accommodate Telegram native controls, enhancing layout functionality. 2026-01-20 01:35:22 +03:00
PEDZEO
05e969a3aa Fix Layout component: change padding from right to left for Telegram native controls in fullscreen mode to improve layout consistency. 2026-01-20 01:32:56 +03:00
PEDZEO
3a98fdff7d Update Layout component: add right padding in fullscreen mode for Telegram native controls to enhance layout usability. 2026-01-20 01:27:29 +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
0039a8a9b3 Implement logo preloading on page load and enhance branding image display with fade-in effect 2026-01-19 23:36:05 +03:00
Egor
cde7909925 Update Layout.tsx 2026-01-19 10:32:29 +03:00
Egor
1eef2495bb Add files via upload 2026-01-19 10:19:58 +03:00
PEDZEO
638f1d5456 Refactor Dockerfile and Vite configuration to remove VITE_APP_VERSION and streamline build process
- Removed VITE_APP_VERSION from Dockerfile and GitHub workflows.
- Simplified Vite configuration by eliminating the Git version retrieval function and global constant for app version.
- Updated ColorPicker and other components to enhance accessibility with aria-labels.
- Introduced unique identifiers for buttons in the AppEditorModal for better React key management.
- Improved error handling in the Login component to provide user-friendly messages without exposing sensitive data.
2026-01-19 07:39:09 +03:00
PEDZEO
5409317501 Add VITE_APP_VERSION environment variable and integrate versioning into the application
- Introduced VITE_APP_VERSION in Dockerfile and GitHub workflows to capture the version from Git tags.
- Updated vite.config.ts to define a global constant for the app version.
- Enhanced Layout component to display the app version in the footer for admin pages.
- Added logic to conditionally render the LanguageSwitcher based on active promotions.
2026-01-19 07:17:49 +03:00
PEDZEO
af96eecac7 Add ToastProvider to main app component, integrate TicketNotificationBell in Layout, and define ticket notification types in types index. Enhance globals.css with toast progress bar animation. 2026-01-19 00:41:55 +03:00
Никита
5c62fd1a37 Adjust layout div width for header component 2026-01-18 06:44:25 +03:00
Egor
8cc03851a8 Add files via upload 2026-01-18 06:02:16 +03:00
evansvl
15c9b0321e enhanced user experience for header 2026-01-17 20:48:58 +03:00
Egor
b82db24400 Update Layout.tsx 2026-01-16 05:43:34 +03:00
Egor
7be6b5c0ae Add files via upload 2026-01-15 19:18:17 +03:00