21 Commits

Author SHA1 Message Date
kewldan
b3b07c322d fix(auth): различать устаревшего бота и ненастроенного на экране логина 2026-07-23 04:09:06 +03:00
Egor
ac89343cc1 Dev (#394)
* Make SBP default and first top-up option (#389)

* fix(connection): happ cryptolink flow + ui fixes (#385)

* fix(connection): respect happ_cryptolink mode

- read connect_mode from connection-link endpoint
- auto-redirect to happ cryptolink flow when mode is HAPP_CRYPTOLINK
- keep installation guide behavior for other modes

* docs(readme): fix source build step 2

- use compose service name for build/create commands
- copy static files from created compose container
- remove compose container via docker compose rm

* fix(connection): handle mode and ws path

- treat any non-guide connect mode as direct happ redirect
- wait for connection-link response before rendering installation guide
- build websocket URL from VITE_API_URL (supports /api and absolute URLs)

* docs(readme): fix docker cp static path

- copy /usr/share/nginx/html contents via html/.
- prevent nested /srv/cabinet/html deployment and 404 on root

* fix(connection): keep guide, use happ links

- restore guide page behavior for /connection (no auto redirect)
- use happ cryptolink URL in /connection/qr when happ crypt mode is active
- replace subscription page connection URL with happ cryptolink from connection-link API

* fix(connection): avoid wrong redirect flow

- force happ scheme deeplink in HAPP_CRYPTOLINK mode for guide connect buttons
- use cabinet redirect page only inside Telegram Mini App
- open deeplink directly in regular browsers

* fix(connection): enforce happ cryptolink

- prioritize backend crypt deeplink fields in HAPP_CRYPTOLINK mode
- fallback to local crypt4/crypt3 generation from subscription URL when backend returns plain happ://sub...
- apply same resolution for guide open action, qr page source and subscription page link display/copy

* fix(subscription): truncate long connect link

- render connection URL in a single line with ellipsis on /subscriptions
- preserve full URL in tooltip for easier manual copy
- keep copy button behavior unchanged

* fix(connection): build cryptolink from happ sub

- allow cryptolink fallback generation from happ://sub... URLs in addition to http(s)
- prevent plain happ://sub links from leaking into UI in HAPP_CRYPTOLINK mode

* fix: allow saving 0% period discount in promo groups

Changed condition from percent > 0 to percent >= 0 so that
admins can explicitly set 0% discount for a period. Previously
0% entries were silently dropped and not sent to the backend.

* fix: always send period_discounts in promo group updates

When all period discounts were removed, the frontend sent undefined
(field absent from JSON), so the backend never cleared them.
Now always sends the field - empty object {} to clear, or populated
object to update.

---------

Co-authored-by: zavul0nn <34007368+zavul0nn@users.noreply.github.com>
Co-authored-by: Dxnil <62987903+D4nilKO@users.noreply.github.com>
2026-04-15 14:04:39 +03:00
Fringg
bbe0fe0f04 docs: rewrite README with correct Caddy proxy config and step-by-step installation guide 2026-02-16 01:50:50 +03:00
Egor
dd51552074 Update README.md 2026-02-04 03:13:17 +03:00
Nhiaz
443d317032 Fix Caddyfile for WebSocket 2026-01-30 11:30:20 +12:00
Egor
8423240023 Update README.md 2026-01-28 14:24:38 +03:00
evansvl
47714b0e8b Update README.md: change Docker container port to 3020 and improve formatting 2026-01-17 19:55:39 +03:00
Egor
0b641129f3 Update README.md 2026-01-17 17:53:36 +03:00
Egor
2edbf398e3 Update README.md 2026-01-16 05:34:10 +03:00
Egor
d7e84d5ec6 Update README.md 2026-01-15 20:43:22 +03:00
Egor
b192402592 Update README.md 2026-01-15 20:43:01 +03:00
Egor
560e07f9bb Update README.md 2026-01-15 20:40:56 +03:00
Egor
75fe440e8b Update README.md 2026-01-15 20:37:19 +03:00
Egor
89e7e40229 Update README.md 2026-01-15 20:12:22 +03:00
Egor
16a93f6cb0 Update README.md 2026-01-15 20:08:12 +03:00
Egor
4ba3e78cc5 Update README.md 2026-01-15 20:04:38 +03:00
Egor
250df844f3 Add files via upload 2026-01-15 20:01:59 +03:00
Egor
56856e7acd Update README.md 2026-01-15 19:43:45 +03:00
Egor
5e00ee7408 Update README.md 2026-01-15 19:26:19 +03:00
Egor
2274a23b62 Add files via upload 2026-01-15 19:20:17 +03:00
Egor
4cc86c1c57 Initial commit 2026-01-14 18:44:13 +03:00