Commit Graph

38 Commits

Author SHA1 Message Date
github-actions[bot]
5f8993daae chore(main): release 1.21.0 2026-02-25 03:36:36 +00:00
github-actions[bot]
977c413b44 chore(main): release 1.20.0 2026-02-24 03:38:07 +00:00
github-actions[bot]
c1c6e98ee1 chore(main): release 1.19.1 2026-02-23 18:32:32 +00:00
github-actions[bot]
7beac4adae chore(main): release 1.19.0 2026-02-18 23:14:32 +00:00
github-actions[bot]
7a01540461 chore(main): release 1.18.0 2026-02-18 06:57:28 +00:00
github-actions[bot]
cecaa4bacc chore(main): release 1.17.0 2026-02-17 04:01:32 +00:00
github-actions[bot]
003071dd6b chore(main): release 1.16.1 2026-02-16 04:32:01 +00:00
github-actions[bot]
e2f20c5781 chore(main): release 1.16.0 2026-02-15 23:20:26 +00:00
github-actions[bot]
511115d3a1 chore(main): release 1.15.0 2026-02-12 18:12:14 +00:00
github-actions[bot]
cc1182fd7b chore(main): release 1.14.1 2026-02-12 00:07:00 +00:00
github-actions[bot]
0c756eda4e chore(main): release 1.14.0 2026-02-11 03:10:57 +00:00
github-actions[bot]
0c273397f0 chore(main): release 1.13.0 2026-02-09 20:06:42 +00:00
github-actions[bot]
534228a07d chore(main): release 1.12.0 2026-02-08 20:35:39 +00:00
github-actions[bot]
9ff9624c5f chore(main): release 1.11.1 2026-02-08 14:56:15 +00:00
github-actions[bot]
0c68a4a4fd chore(main): release 1.11.0 2026-02-08 13:18:30 +00:00
github-actions[bot]
45b7f50120 chore(main): release 1.10.0 2026-02-07 10:49:31 +00:00
Fringg
a034a6068c feat: add admin traffic usage page with TanStack Table
Add AdminTrafficUsage page showing per-user traffic statistics by node
with period filtering (1/3/7/14/30d), server-side sorting, search,
pagination, and CSV export. Uses @tanstack/react-table with manual
sorting and dynamic node columns.
2026-02-07 09:04:55 +03:00
Fringg
de28463b79 chore: bump version to 1.9.0 2026-02-07 07:17:46 +03:00
Fringg
72b1089af7 feat: add Twemoji for cross-platform emoji rendering
Wrap the app in react-twemoji to replace native Unicode emoji with
Twemoji SVGs from CDN. Fixes ugly/broken emoji on Windows.
2026-02-07 01:09:35 +03:00
github-actions[bot]
96dbfce6c1 chore(main): release 1.8.0 2026-02-06 20:35:09 +00:00
c0mrade
562ab7abf7 refactor: full codebase cleanup, dependency updates, and lint fixes
Phase 0: Remove ~920 lines of dead code (ThemeBentoPicker, PromoDiscountBadge,
AdminLayout, SettingsSidebar, MovingGradient, EmptyState, miniapp API, unused
types/functions/transitions/skeleton helpers). Fix API barrel file (add 20 missing exports).

Phase 1: Add ErrorBoundary (app/page/widget levels), centralize constants,
add axios timeout, fix staleTime:0 in React Query.

Phase 2: Consolidate hexToHsl, extract email validation, fix duplicate code.

Phase 3: Fix auth race condition (await checkAdminStatus), memoize useCurrency,
add WebSocket message validation.

Phase 4: Extract useBranding, useFeatureFlags, useScrollRestoration from AppShell.

Phase 5: Remove all eslint-disable react-hooks/exhaustive-deps (14 total),
simplify logger, remove deprecated hooks (useBackButton, useTelegramDnd,
useTelegramWebApp).

Dependencies: React 19, react-router 7, zustand 5, i18next 25, react-i18next 16,
eslint-plugin-react-refresh 0.5. Remove unused @lottiefiles/dotlottie-react.
Convert vite manualChunks to function-based approach for react-router v7 compat.

Lint: Fix logger.ts no-unused-expressions, fix react-refresh/only-export-components
in 6 Radix primitive files (const re-exports → direct re-exports), fix
WebSocketProvider exhaustive-deps. Result: 0 errors, 0 warnings.

Add CLAUDE.md to .gitignore.
2026-02-06 16:55:55 +03:00
c0mrade
445dd0601a feat: convert ConnectionModal to /connection page with crypto deep links
- Add @kastov/cryptohapp + jsencrypt for encrypted Happ deep links
- Add templateEngine utility to resolve {{SUBSCRIPTION_LINK}},
  {{HAPP_CRYPT3_LINK}}, {{HAPP_CRYPT4_LINK}}, {{USERNAME}} templates
- Convert ConnectionModal component into a standalone Connection page
- Add /connection route with ProtectedRoute and lazy loading
- Replace modal invocation in Dashboard and Subscription with
  navigate('/connection')
- Add type and svgIconKey optional fields to RemnawaveButton
- Show button type badge and SVG icon in AdminApps BlockCard
- Refactor ThemeTab to use local draft state with Save/Cancel flow
2026-02-05 07:33:45 +03:00
github-actions[bot]
db94bea5b0 chore(main): release 1.7.0 2026-02-04 14:01:28 +00:00
github-actions[bot]
d3a4506e88 chore(main): release 1.6.2 2026-02-04 10:20:05 +00:00
github-actions[bot]
6450a52dc4 chore(main): release 1.6.1 2026-02-04 08:32:13 +00:00
c0mrade
023c3ef6b3 refactor: migrate to @telegram-apps/sdk-react v3, remove all window.Telegram.WebApp usage
Полный переход с нативного window.Telegram.WebApp API на @telegram-apps/sdk-react v3.
Bridge SDK оборачивал receiveEvent, из-за чего popup_closed не доходил до нативного
обработчика — это было основной причиной бага с двойным открытием попапа.

Изменения:

- Удалён @telegram-apps/react-router-integration (привязан к SDK v1)
- Инициализация SDK v3 в main.tsx: init(), restoreInitData(), mount всех компонентов
- AppWithNavigator: убран TelegramRouter (initNavigator + useIntegration), все платформы
  на BrowserRouter, добавлен TelegramBackButton через SDK v3
- useTelegramSDK: детекция через retrieveLaunchParams(), реактивные значения через
  useSignal() (fullscreen, viewport, safe area insets), initData через retrieveRawInitData()
- TelegramAdapter: полная перезапись — попапы через showPopup() (Promise-based, без
  ручного onEvent/offEvent/timeout), кнопки через setMainButtonParams/showBackButton,
  haptic через hapticFeedbackImpactOccurred, тема через themeParamsState с конвертацией
  camelCase→snake_case, cloud storage через getCloudStorageItem/setCloudStorageItem
- api/client.ts: initData через retrieveRawInitData() вместо window.Telegram.WebApp.initData
- AppHeader: фото пользователя через initDataUser() сигнал
- ConnectionModal: openLink через SDK вместо window.Telegram.WebApp.openLink
- ColorPicker: детекция Telegram через isInTelegramWebApp()
- Удалён интерфейс TelegramWebApp (368 строк) и Window augmentation из vite-env.d.ts
- Убрано поле telegram из PlatformContext в types.ts
- Обновлён manualChunks в vite.config.ts
2026-02-04 11:06:59 +03:00
github-actions[bot]
8ca17e72fe chore(main): release 1.6.0 2026-02-04 05:28:17 +00:00
c0mrade
e3e44b302c ci: add release-please for automatic versioning
Sync package.json version to v1.5.0 and add release-please GitHub Action
to automate version bumps based on conventional commits.
2026-02-04 08:17:32 +03:00
c0mrade
483f3f4d0f Migrate to Telegram Navigator integration
Replace manual BackButton management with official @telegram-apps/react-router-integration
to fix navigation issues (back button cycling and double-click).

Changes:
- Migrate from @tma.js/sdk-react to @telegram-apps/sdk-react
- Downgrade react-router-dom to v6 for package compatibility
- Add AppWithNavigator component with Telegram navigator integration
- Use browser history mode (hashMode: null) to prevent hash URLs
- Add multi-level platform detection (user data, platform, version)
- Add try-catch error handling for navigator attach/detach
- Simplify useBackButton hook to no-op (navigator handles automatically)
- Update vite config with new Telegram packages

The navigator automatically manages BackButton based on router history,
falling back to BrowserRouter in regular browser environment.
2026-02-04 07:18:43 +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
cffef41f63 feat: replace MovingGradient with Aurora WebGL 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
a63bb7c457 fix: update dependencies to resolve security vulnerabilities
- Update vite 5→7.3.1 and @vitejs/plugin-react 4→5.1.2 (GHSA-67mh-4wv8-2f99)
- Update react-router-dom 6→7.13.0 (GHSA-2w69-qvjg-hvjx, CVSS 8.0)
- Add husky, lint-staged to devDependencies
- Add project description and AGPL-3.0 license to package.json
2026-01-27 17:38:18 +03:00
Egor
5da1cb3228 Add files via upload 2026-01-26 22:48:47 +03:00
Egor
3108aaf0ed Add files via upload 2026-01-18 06:38:26 +03:00
Egor
9d982d5614 Update package.json 2026-01-15 19:37:30 +03:00
Egor
87a494c4d7 Add files via upload 2026-01-15 19:28:21 +03:00
Egor
2274a23b62 Add files via upload 2026-01-15 19:20:17 +03:00