Commit Graph

1884 Commits

Author SHA1 Message Date
Egor
eda99b46a8 Merge pull request #315 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.36.0
2026-03-18 02:10:03 +03:00
github-actions[bot]
70cf85f6e7 chore(main): release 1.36.0 2026-03-17 23:08:45 +00:00
Egor
d22f3474ef Merge pull request #314 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.35.0
2026-03-18 02:01:57 +03:00
github-actions[bot]
285d02d58c chore(main): release 1.35.0 2026-03-17 23:01:21 +00:00
Egor
a33367157b Merge pull request #313 from BEDOLAGA-DEV/dev
Dev
2026-03-18 02:00:50 +03:00
Egor
5fbebbb686 Merge pull request #312 from BEDOLAGA-DEV/main
ц
2026-03-18 01:59:48 +03:00
Fringg
11e81917af fix: скрыть плашку верификации email при выключенной верификации
- Добавлен verification_enabled в EmailAuthEnabled тип
- Баннер "Подтвердите email" скрыт когда верификация выключена
- Бейдж "Не подтверждён" скрыт когда верификация выключена
2026-03-18 01:53:10 +03:00
Fringg
b35000367b fix: recursive setTimeout, Strict Mode guard, isAxiosError
- Replace setInterval with recursive setTimeout to prevent overlapping async polls
- Add cancellation flag in auto-start effect for React Strict Mode double-mount
- Use isAxiosError() instead of unsafe type assertion
- Remove consumeCampaignSlug/consumeReferralCode from loginWithDeepLink (fired on every poll tick, destroying values after first 202)
2026-03-17 21:56:56 +03:00
Fringg
3d950252b7 fix: deep link auth timer cleanup and reliability
- Clear previous interval/timeout before starting new deep link auth
- Store expire timeout in ref for cleanup on unmount
- Use server expires_in instead of hardcoded 5 minutes
- Show error message when token expires (not just clear state)
- Add consumeCampaignSlug/consumeReferralCode to loginWithDeepLink
2026-03-17 21:46:12 +03:00
Fringg
6a1a9f5db7 feat: deep link авторизация при блокировке oauth.telegram.org
Добавлен fallback через бота когда виджет Telegram не загружается:
- Таймаут 8 сек на загрузку скрипта (OIDC + legacy)
- Автоматический переход на deep link auth
- Polling каждые 2.5 сек до подтверждения в боте
- ConnectedAccounts: таймаут + сообщение при недоступности
- Переводы: ru, en, zh, fa
2026-03-17 21:29:21 +03:00
Egor
1248ecb156 Merge pull request #309 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.34.1
2026-03-16 04:14:34 +03:00
github-actions[bot]
b204da02ed chore(main): release 1.34.1 2026-03-16 01:13:49 +00:00
Egor
a4ec97ef71 Merge pull request #308 from BEDOLAGA-DEV/dev
Dev
2026-03-16 04:13:17 +03:00
Egor
77b3a157e8 Merge pull request #307 from BEDOLAGA-DEV/main
w
2026-03-16 04:11:44 +03:00
Fringg
f960d5fc0b fix: поддержка режима «both» — показ кнопки контакта вместе с тикетами 2026-03-16 04:09:53 +03:00
Egor
ff0475ad92 Merge pull request #298 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.34.0
2026-03-15 01:24:58 +03:00
github-actions[bot]
05a6ba43d7 chore(main): release 1.34.0 2026-03-14 22:24:41 +00:00
Egor
d5e0249d3e Merge pull request #297 from BEDOLAGA-DEV/dev
Dev
2026-03-15 01:24:18 +03:00
Egor
4f76241892 Merge pull request #296 from BEDOLAGA-DEV/main
w
2026-03-15 01:21:53 +03:00
Fringg
e023373f56 feat: dual referral links UI (bot + cabinet) with independent copy states
- add bot referral link section with Telegram icon (conditionally rendered)
- add cabinet referral link section with chain-link icon
- independent copy button state per link type
- add bot_referral_link to ReferralInfo type
- add i18n keys: botLink, cabinetLink in ru/en/fa/zh
2026-03-15 01:14:25 +03:00
c0mrade
885524a00f Merge pull request #294 from BEDOLAGA-DEV/dev
fix: resolve all 14 ESLint warnings across the codebase
2026-03-13 20:31:57 +03:00
c0mrade
62188b8d2e fix: resolve all 14 ESLint warnings across the codebase
- Add varsIgnorePattern to no-unused-vars for destructuring patterns
- Fix all react-hooks/exhaustive-deps by adding missing dependencies
- Refactor useAnimatedNumber to use ref instead of stale state closure
- Wrap handleLinkResult in useCallback for stable deps
- Extract OAuth utilities from OAuthCallback.tsx to utils/oauth.ts
- Extract background config utilities to utils/backgroundConfig.ts
- Remove unused catch parameter in GiftSubscription
2026-03-13 20:19:09 +03:00
c0mrade
eb058d4124 Merge pull request #293 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.33.2
2026-03-13 19:17:21 +03:00
github-actions[bot]
c6530d2bd2 chore(main): release 1.33.2 2026-03-13 16:12:00 +00:00
c0mrade
c0b834ab06 Merge pull request #292 from BEDOLAGA-DEV/dev
fix: resolve telegram auth token expiration and clean up codebase
2026-03-13 19:11:25 +03:00
c0mrade
2dab25c5a0 fix: resolve telegram auth token expiration and clean up codebase
- Fix stale initData comparison in clearStaleSessionIfNeeded that destroyed
  valid refresh tokens on mobile WebView reopens
- Restrict X-Telegram-Init-Data header to auth endpoints only
- Close Mini App on auth retry to force fresh initData from Telegram
- Merge Connection page error/not-configured states for better UX
- Remove unnecessary comments across 40+ files (section dividers,
  restating comments, noise catch block comments)
- Configure ESLint allowEmptyCatch to properly handle intentional
  empty catch blocks (62 warnings resolved)
2026-03-13 17:50:49 +03:00
c0mrade
b3eb066143 Merge pull request #290 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.33.1
2026-03-13 12:11:07 +03:00
github-actions[bot]
7c2a4f2bf2 chore(main): release 1.33.1 2026-03-13 09:10:10 +00:00
c0mrade
ab0394776a Merge pull request #289 from BEDOLAGA-DEV/dev
fix: correct locale loader type to support nested translation objects
2026-03-13 12:09:46 +03:00
c0mrade
682b6b70dc fix: correct locale loader type to support nested translation objects 2026-03-13 12:04:25 +03:00
Egor
cbc64bb03d Merge pull request #288 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.33.0
2026-03-13 06:18:57 +03:00
github-actions[bot]
5f8583b587 chore(main): release 1.33.0 2026-03-13 03:18:29 +00:00
Egor
46ea9067e2 Merge pull request #287 from BEDOLAGA-DEV/dev
Dev
2026-03-13 06:18:02 +03:00
Fringg
9ae9cccbd9 perf: lazy-load locale files per language instead of bundling all
Split 574KB monolithic locales chunk into per-language lazy chunks:
- ru: 211KB (loaded on startup as fallback)
- fa: 143KB, en: 121KB, zh: 101KB (loaded on demand)

Russian users save 63% bandwidth. Other languages loaded only when
user switches via LanguageSwitcher.
2026-03-13 06:16:40 +03:00
Egor
b42d84ffe6 Merge pull request #286 from BEDOLAGA-DEV/main
w
2026-03-13 06:14:40 +03:00
Fringg
b4f9f332cf feat: add LIMITED subscription status support with traffic-exhausted UX
- Add is_limited to Subscription type
- Show yellow traffic-exhausted badge on Subscription and AdminUsers pages
- SubscriptionCardExpired: amber theme with warning icon and buy-traffic CTA for limited
- Dashboard: route limited subscriptions to SubscriptionCardExpired
- Subscription page: show additional options (buy traffic) for limited subs
- Use is_limited boolean instead of status string comparison
- Add trafficLimited translations for ru, en, zh, fa
- AdminUserDetail StatusBadge: add limited yellow styling
2026-03-12 18:37:22 +03:00
Egor
9f12ca418c Merge pull request #284 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.32.0
2026-03-12 08:30:45 +03:00
github-actions[bot]
f015d63f1f chore(main): release 1.32.0 2026-03-12 05:30:02 +00:00
Egor
0ecf1a0da5 Merge pull request #283 from BEDOLAGA-DEV/dev
Dev
2026-03-12 08:29:39 +03:00
Egor
d9bfb8427c Merge pull request #282 from BEDOLAGA-DEV/main
w
2026-03-12 08:25:54 +03:00
Fringg
5a5a987893 feat: add show_in_gift toggle UI for tariffs in admin panel
Add pill toggle in tariff create/edit form and purple gift badge
in tariff list. Includes i18n for ru, en, zh, fa locales.
2026-03-12 04:16:04 +03:00
Fringg
01e811bdfc fix: handle Telegram Stars payment for gift subscriptions via openInvoice
- Use openInvoice() with capabilities.hasInvoice guard for Stars payments
- Fall back to redirect for web environments without invoice support
- Add haptic feedback on payment success/failure
2026-03-12 03:32:14 +03:00
Egor
e6d2ef10fc Merge pull request #280 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.31.0
2026-03-11 03:56:22 +03:00
github-actions[bot]
3c66a2ef89 chore(main): release 1.31.0 2026-03-11 00:56:05 +00:00
Egor
8b96008cb0 Merge pull request #279 from BEDOLAGA-DEV/dev
Dev
2026-03-11 03:55:39 +03:00
Egor
753a33955c Merge pull request #278 from BEDOLAGA-DEV/main
w
2026-03-11 03:54:49 +03:00
Fringg
695ab42e03 feat: add gifts tab to admin user detail page
Display sent and received gift subscriptions with status badges,
extracted GiftCard component, and full i18n support (ru/en/zh/fa).
2026-03-11 03:30:13 +03:00
Fringg
03c9e73a37 feat: display promo group and active discount banners on gift page
Add promo group banner (green) and active discount banner (orange) to
gift subscription page. PeriodCard now shows original price strikethrough
and discount percentage badge from server-calculated values.
2026-03-11 02:58:43 +03:00
Fringg
6fd76c8dc8 fix: display zero-amount transactions with neutral styling
Zero-amount transactions (e.g. free tariff switches) now show without +/- sign in neutral gray instead of misleading green +0.00
2026-03-11 02:17:40 +03:00
Fringg
8dab6dc8fb feat: desktop nav expand-on-hover with larger icons
Icons enlarged to 18px, padding increased. On hover each button
smoothly expands to reveal its label with opacity and max-width
transition (200ms). Uses group/group-hover pattern.
2026-03-11 01:52:29 +03:00