Commit Graph

1297 Commits

Author SHA1 Message Date
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
Fringg
f0777f0b5d fix: desktop nav always icon-only with tooltips
Text labels overflow even at 2xl with Russian + 9 items.
Switch to icon-only mode at all desktop widths. Labels kept
as sr-only for accessibility, title attribute provides tooltips.
2026-03-11 01:42:54 +03:00
Fringg
3bae6cf1e1 fix: show nav labels from 2xl (1536px) instead of xl (1280px)
Russian labels with 9 items overflow at xl breakpoint. Push text
labels to 2xl where there is enough space for all languages.
2026-03-11 01:38:58 +03:00
Fringg
e7cd370299 feat: responsive desktop nav — icon-only on lg, icon+text on xl
Remove horizontal scroll from desktop top nav bar. Items now show
icons only at 1024-1279px with native tooltips, and icons+labels
at 1280px+. All 9 items fit on screen in any language without
scrolling.
2026-03-11 01:34:44 +03:00
Egor
bd4500ab52 Merge pull request #275 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.30.0
2026-03-10 23:02:03 +03:00
github-actions[bot]
de4b666575 chore(main): release 1.30.0 2026-03-10 20:01:01 +00:00
Egor
6e73062ac0 Merge pull request #274 from BEDOLAGA-DEV/dev
Dev
2026-03-10 23:00:21 +03:00
Fringg
8b056e0b46 fix: hide Quick Renew for expired trial subscriptions
Show only Tariffs button as primary CTA when trial expires.
Remove duplicate gift.copyMessage i18n keys.
2026-03-10 20:33:31 +03:00
c0mrade
4756c93215 Merge pull request #251 from FireWookie/dev_nikita
Add: Интеграция рекурентов Юкассы + fix: скрытие нулевых бонусов на странице реферальной программы
2026-03-10 14:02:35 +03:00
firewookie
8c9eadc273 FIX PR Problems 2026-03-10 15:58:02 +05:00
firewookie
9467a08861 FIX PR Problems 2026-03-10 15:42:56 +05:00
c0mrade
2f717d71cc Merge pull request #256 from FireWookie/feature/riopay
- RioPay payment system integration
2026-03-10 13:42:42 +03:00
firewookie
b04cf63eb7 FIX PR Problems 2026-03-10 15:35:01 +05:00
firewookie
97ce8d751c Merge remote-tracking branch 'origin/dev_nikita' into dev_nikita 2026-03-10 15:29:14 +05:00
firewookie
0e3cf30341 FIX PR Problems 2026-03-10 15:28:46 +05:00
FireWookie
1f3fae9780 Merge pull request #2 from FireWookie/dev
Dev
2026-03-10 15:12:02 +05:00
FireWookie
798c702704 Merge pull request #1 from FireWookie/dev
Dev
2026-03-10 15:11:31 +05:00
FireWookie
377513d782 Merge branch 'BEDOLAGA-DEV:main' into dev_nikita 2026-03-10 15:08:17 +05:00
FireWookie
97fcb4b39f Merge branch 'BEDOLAGA-DEV:main' into feature/riopay 2026-03-10 15:07:45 +05:00
Fringg
39bdf8b5c3 fix: CopiedToast not visible due to CSS transform context
Use createPortal to render toast at document.body level,
escaping framer-motion's transform on the tab content wrapper.
Remove unused useRef import and shareToastTapCopy i18n key.
2026-03-10 07:39:04 +03:00
Fringg
0322974ebd fix: replace orphaned shareModal i18n keys in GiftResult
GiftResult.tsx referenced gift.shareModalCopied and shareModalCopyAll
which were removed with the modal. Use common.copied and add new
gift.copyMessage key instead.
2026-03-10 07:30:17 +03:00
Fringg
9fbfcf21ff refactor: replace share modal with auto-copy toast
Remove the full-screen ShareModal dialog that appeared when sharing a
gift code. Replace with a bottom toast that automatically copies the
share message to clipboard on button press and slides up from the
bottom. The toast auto-dismisses after 5 seconds and can be tapped
to copy again.
2026-03-10 07:27:39 +03:00
Fringg
8ab740f8cb fix: route PendingGiftCard to gift activation tab instead of landing endpoint
PendingGiftCard was linking to /buy/success/:token which uses the landing
API (exact token match). Since gift tokens are now truncated to 12 chars
in API responses, this caused 404s. Route to /gift?tab=activate&code=
which uses the gift API with prefix-based lookup.
2026-03-10 07:08:13 +03:00
Fringg
51cc1221d0 fix: add null guard for purchase_token before rendering CodeOnlySuccessState 2026-03-10 06:56:16 +03:00
Fringg
7945071893 refactor: rename GIFTCODE_ start parameter prefix to GIFT_ 2026-03-10 06:48:57 +03:00
Fringg
7549ae70eb feat: show localized error for self-activation attempt 2026-03-10 06:45:14 +03:00
Fringg
51ec799c0c feat: split my gifts into Active/Activated/Received sections
Sent gifts are now sorted into "Active gifts" (awaiting activation)
and "Activated" (already used). Received gifts remain separate.
2026-03-10 06:39:50 +03:00
Fringg
73d67bceed fix: use short 12-char code in bot and cabinet share links
GIFTCODE_ prefix (9 chars) + full 64-char token = 73 chars,
exceeding Telegram's 64-char start parameter limit. Now all
share links use the same short code shown in the UI (first 12
chars). Backend already supports prefix-based lookup.
2026-03-10 06:30:49 +03:00
Fringg
b213535738 fix: remove dark backdrop overlay from share modal 2026-03-10 06:25:06 +03:00
Fringg
a627eb0b30 fix: gift code display + share modal backdrop
- Don't uppercase gift codes (tokens are case-sensitive base64)
- Lighten share modal backdrop (bg-dark-900/40 instead of bg-black/60)
2026-03-10 06:20:29 +03:00
Fringg
d852bfe969 fix: activation broken — token uppercased + wrong env var for bot username
- Remove .toUpperCase() from activation code input — tokens are case-sensitive base64
- Fix VITE_BOT_USERNAME → VITE_TELEGRAM_BOT_USERNAME (correct env var name)
- Add Escape key handler, scroll lock, role="dialog" to ShareModal
2026-03-10 06:13:50 +03:00
Fringg
1bafcca1ef fix: gift UI improvements — declension, GB display, share modal, deep links
- Fix Russian device count declension (_one/_few/_many)
- Show traffic GB and tariff description in buy tab
- Replace copy/share buttons with share modal (bot + cabinet links)
- GiftResult: code-only success state with formatted share message
- Support ?tab=activate&code=TOKEN for auto-activation via cabinet link
- Add is_code_only + purchase_token to API types
2026-03-10 06:03:28 +03:00
Fringg
af3e535c69 feat: gift subscription redesign — code-only purchase + 3-tab UI
- Remove recipient input from buy flow (code-only gifts)
- 3-tab UI: Buy, Activate, My Gifts with animations
- After purchase, switch to My Gifts tab to show gift code
- Gift code display with copy/share buttons
- Activate tab: enter gift code to activate subscription
- My Gifts tab: sent/received gifts with status badges
- Fix: use navigator.language instead of hardcoded ru-RU for dates
- Fix: spread array before sort to prevent React Query cache mutation
- Fix: ARIA tab linkage with proper id/aria-labelledby
- Fix: guard VITE_BOT_USERNAME against undefined in share URLs
- Fix: wrap clipboard/share fallbacks in try/catch
- Add error state to MyGiftsTabContent
2026-03-10 05:37:57 +03:00
Egor
f57593ea67 Merge pull request #271 from BEDOLAGA-DEV/release-please--branches--main--components--cabinet-frontend
chore(main): release 1.29.1
2026-03-10 03:40:43 +03:00
github-actions[bot]
eea0520b6a chore(main): release 1.29.1 2026-03-10 00:40:05 +00:00
Egor
574212811a Merge pull request #270 from BEDOLAGA-DEV/dev
Dev
2026-03-10 03:39:44 +03:00
Egor
d946c83357 Merge pull request #269 from BEDOLAGA-DEV/main
w
2026-03-10 03:37:33 +03:00
Fringg
8629cfea18 fix: daily tariff renewal uses purchaseTariff instead of renewSubscription
- Expired daily tariffs now call purchaseTariff(tariff_id, 1) for 1-day purchase
- Balance check uses daily_price_kopeks for daily tariffs instead of 100 kopeks minimum
- Disabled daily tariffs still use togglePause for resume
2026-03-10 03:30:13 +03:00