Commit Graph

444 Commits

Author SHA1 Message Date
Egor
35098faf88 Update InsufficientBalancePrompt.tsx 2026-01-31 20:31:23 +03:00
Egor
abe016c7b1 Add files via upload 2026-01-31 19:53:23 +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
760761729b Add files via upload 2026-01-30 15:54:31 +03:00
Egor
80eb2a25d2 Update TopUpModal.tsx 2026-01-28 21:12:03 +03:00
Egor
f2e03ffb33 Update TopUpModal.tsx 2026-01-28 21:01:40 +03:00
c0mrade
9707ad97a4 feat(i18n): migrate all hardcoded Russian text to i18n
- Replace all hardcoded Russian strings with t() calls across 30+ files
- Add ~500 new translation keys to all 4 locales (ru, en, zh, fa)
- Convert module-level config objects to labelKey pattern
- Remove Russian fallbacks from t() calls (fallbackLng handles it)
- Replace DeepLinkRedirect custom i18n with standard t() calls
- Fix subscription.servers key collision (string vs object)
2026-01-27 22:19:41 +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
Egor
719f8493ff Merge pull request #92 from evansvl/main
feat: Add new Layout component with navigation, branding, theme switc…
2026-01-27 17:37:28 +03:00
Egor
fea71bed83 Add files via upload 2026-01-27 01:22:00 +03:00
Egor
ce499ad5fd Update PageLoader.tsx 2026-01-27 01:21:33 +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
41fedc4fc4 Update BrandingTab.tsx 2026-01-25 10:37:14 +03:00
Egor
012fced2a1 Update TopUpModal.tsx 2026-01-23 14:54:30 +03:00
Egor
c037faf59a Update TopUpModal.tsx 2026-01-23 14:48:30 +03:00
Egor
803a5f858f Update ConnectionModal.tsx 2026-01-23 00:11:58 +03:00
Egor
13da717707 Update ConnectionModal.tsx 2026-01-22 23:54:02 +03:00
Egor
cc7e4b19f4 Update ConnectionModal.tsx 2026-01-22 23:45:10 +03:00
Egor
a94c2a54b8 Update ConnectionModal.tsx 2026-01-22 23:38:42 +03:00
Egor
b9ef362055 Update TopUpModal.tsx 2026-01-22 22:17:55 +03:00
Egor
0207f5259a Update Layout.tsx 2026-01-21 08:41:40 +03:00
Egor
f2f93a3799 Add files via upload 2026-01-21 08:37:08 +03:00
Egor
0c44b03d5d Update ConnectionModal.tsx 2026-01-21 06:45:16 +03:00
Egor
97ebb33189 Update Layout.tsx 2026-01-21 05:31:18 +03:00
PEDZEO
ad5347a8b4 Fix lint error: use const instead of let for cleaned variable 2026-01-21 05:17:35 +03:00
PEDZEO
a364b51787 Fix theme toggles mobile layout: stack vertically on small screens 2026-01-21 05:01:19 +03:00
PEDZEO
15edd598b5 Fix Toggle animation: use translate-x instead of left position 2026-01-21 04:50:50 +03:00
PEDZEO
8d4c00d176 Add SettingsSidebar and SettingsSearch components to AdminSettings
- Introduced SettingsSidebar for improved navigation and organization.
- Added SettingsSearch and its mobile variant for enhanced search functionality.
- Updated AdminSettings to utilize new components, streamlining the layout and improving user experience.
2026-01-21 04:31:07 +03:00
PEDZEO
82d38b829a Improve global search in AdminSettings
- Search across all settings regardless of active section
- Search by translated names, descriptions, and categories
- Add clear search button (X icon)
- Show search results count
2026-01-21 04:28:31 +03:00
PEDZEO
b359e6445c Improve admin settings UI components
- Add EditIcon component to icons.tsx
- Enhance SettingInput with textarea for long/JSON values
- Improve SettingRow styling and long value handling
- Fix CORE category translation (Ядро → Бот)
- Add auto-resize for textarea and Ctrl+Enter save shortcut
2026-01-21 04:21:25 +03:00
PEDZEO
8776e2d128 Refactor AdminSettings into modular components
Split 1123-line monolithic AdminSettings.tsx into 11 modules:

Components:
- icons.tsx (85 lines) - All SVG icons
- Toggle.tsx (21 lines) - Reusable toggle component
- SettingInput.tsx (89 lines) - Text/select input for settings
- SettingRow.tsx (104 lines) - Single setting card
- BrandingTab.tsx (212 lines) - Logo, name, animation settings
- ThemeTab.tsx (277 lines) - Theme presets and custom colors
- FavoritesTab.tsx (59 lines) - Starred settings display
- SettingsTab.tsx (144 lines) - Accordion categories view

Utilities:
- constants.ts (55 lines) - MENU_SECTIONS, THEME_PRESETS
- utils.ts (35 lines) - formatSettingKey, stripHtml
- index.ts (13 lines) - Barrel exports

Result: AdminSettings.tsx reduced from 1123 to 251 lines
2026-01-21 03:56:21 +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
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
PEDZEO
26e8e19b8a Merge remote branch and add Quick Presets for theme colors
- Added Quick Presets section in AdminSettings with 8 predefined themes
- Fixed ColorPicker overflow issues for small containers
- Resolved merge conflicts keeping local theme implementation
2026-01-21 01:56:51 +03:00
PEDZEO
879031508b Enhance ColorPicker and AdminSettings components with improved styling and theme presets
- Updated ColorPicker component styles for better visual consistency and usability.
- Adjusted button sizes and input fields for a more cohesive design.
- Introduced theme presets in AdminSettings for quick color scheme selection, enhancing user experience.
- Added new color schemes with predefined colors for easier theme management.
2026-01-21 01:53:31 +03:00
PEDZEO
d0f855738a Update UI components and styles for Bento design system
- Added new BentoCard and BentoSkeleton components for consistent card styling.
- Refactored existing components to utilize BentoCard for improved visual consistency.
- Updated Tailwind configuration to include new spacing and border radius utilities.
- Enhanced global styles with custom scrollbar and noise texture for better aesthetics.
- Introduced color conversion utilities for improved color handling across components.
2026-01-21 00:10:57 +03:00
PEDZEO
96f8f0e6b8 Refactor ColorPicker component to support HSL color model and improve user interaction
- Introduced HSL color conversion functions for enhanced color manipulation.
- Updated state management to synchronize HSL values with color input changes.
- Improved picker positioning logic for better usability.
- Enhanced the color picker UI with sliders for hue, saturation, and lightness adjustments.
- Refactored event handling for opening and closing the color picker, including click outside detection.
- Rendered the color picker in a portal for better positioning and accessibility.
2026-01-20 23:40:24 +03:00
kinvsh
7272f0a6c1 bento-grids v1
в целом все хорошо, немного доправить и переходить к light theme
2026-01-21 01:30:14 +05:00
kinvsh
11fd2876b2 bento-grids v0.1 2026-01-21 00:58:24 +05:00
Dev
20edc7f63a phase 9 done. ready to restyle 2026-01-20 23:32:11 +05:00
Dev
29f568cc95 feat: redesign header, switch font to Manrope, fix z-indexes 2026-01-20 23:06:57 +05:00
Dev
308df174fb Phase 1-6 Complete 2026-01-20 22:54:32 +05:00
Dev
6d88bac693 feat(ui): implement Bento Grid design system
- Add Urbanist font (replace Inter)
- Add CSS variables: --bento-radius, --bento-gap, --bento-padding
- Add Tailwind extend: rounded-bento, rounded-4xl, spacing.bento
- Create BentoCard component with size variants (sm/md/lg/xl)
- Add .bento-card, .bento-card-hover, .bento-card-glow classes
- Add .bento-grid container with responsive columns
- Implement floating TabBar (margin 16px, shadow, pill active state)
- Apply bento styles to Dashboard cards
- Support both dark and light themes
2026-01-20 21:10:20 +05:00
PEDZEO
9e7d6b317e Enhance ColorPicker component with RGB support and improved styling
- Added RGB value updates on color input changes and preset selections.
- Refactored RGB sliders to always be visible, enhancing user experience across devices.
- Improved range input styles for better accessibility and visual feedback.
- Updated number input fields for RGB values to hide spinners and ensure a cleaner look.
2026-01-20 18:27:05 +03:00
PEDZEO
de0a9d9efb Improve TopUpModal input focus behavior for mobile and desktop
- Enhanced auto-focus functionality to work on mobile devices, specifically in Telegram WebApp.
- Added a small delay to ensure the DOM is ready before focusing the input.
- Implemented scrolling into view for iOS Safari to trigger the keyboard when the input is focused.
2026-01-20 17:32:36 +03:00