Commit Graph

41 Commits

Author SHA1 Message Date
Fringg
ad87c5fb5e feat: rename MAIN_MENU_MODE=text to cabinet with deep-linking to frontend sections
- Rename mode from 'text' to 'cabinet' (text/text_only/minimal kept as aliases)
- Add build_cabinet_url() for joining MINIAPP_CUSTOM_URL with section paths
- Cabinet main menu now has section-specific buttons: subscription, balance,
  referral, support, info — each opens the corresponding cabinet page
- Add CALLBACK_TO_CABINET_PATH mapping for automatic deep-linking from
  callback_data to cabinet routes (/subscription, /balance, /referral, etc.)
- Unmapped callback_data gracefully falls back to regular Telegram callbacks
- Add startup validation warning when cabinet mode is active without MINIAPP_CUSTOM_URL
- Update admin broadcast buttons with section-specific routing
- Backward compatible: is_text_main_menu_mode() kept as alias for is_cabinet_mode()
2026-02-12 22:21:08 +03:00
Fringg
119f463c36 refactor: remove Flask, use FastAPI exclusively for all webhooks
Delete dead Flask-based PAL24 webhook server (app/external/pal24_webhook.py).
PAL24 webhooks already handled by unified FastAPI server on port 8080.

- Remove flask dependency from pyproject.toml and requirements.txt
- Remove PAL24_WEBHOOK_PORT config (unused, FastAPI uses shared port)
- Remove pal24_webhook module reference from log filter
- Update docs: webhook example rewritten from Flask to FastAPI
- Uninstall flask, werkzeug, blinker, itsdangerous
2026-02-09 21:54:15 +03:00
gy9vin
78d785f83f fix(contests): исправлены критические баги системы конкурсов
- Исправлен вызов get_active_rounds в админ-панели (передавалось 2 параметра вместо 1)
- Обновлены кнопки редактирования призов с prize_days на prize_type/prize_value
- Мигрирован Cabinet API с устаревшего prize_days на новые поля
- Добавлена поддержка нескольких типов призов (дни, баланс, кастом)
- Обновлена документация API конкурсов
2026-01-18 10:15:45 +03:00
Egor
75b1fff791 Delete docs/web-api-analysis-and-suggestions.md 2026-01-08 04:55:31 +03:00
PEDZEO
6b69ec750e feat: add cabinet (personal account) backend API
- Add JWT authentication for cabinet users
- Add Telegram WebApp authentication
- Add subscription management endpoints
- Add balance and transactions endpoints
- Add referral system endpoints
- Add tickets support for cabinet
- Add webhooks and websocket for real-time updates
- Add email verification service

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 23:20:20 +03:00
PEDZEO
0cd355a878 Merge pull request #2175 from BEDOLAGA-DEV/buttons
Buttons
2025-12-21 05:02:45 +03:00
Egor
344ff65710 Merge pull request #2173 from Gy9vin/main
Юкасса сдк обновление
2025-12-21 04:52:41 +03:00
gy9vin
837473b274 Апи для детальной статистики по конкурсу рефералов 2025-12-21 00:38:08 +03:00
PEDZEO
d75fc0c60f Add statistics endpoints in MenuLayoutService for button clicks, including by type, hour, weekday, top users, period comparison, and user click sequences 2025-12-20 03:32:34 +03:00
PEDZEO
dd24b7ffde Add ButtonStatsMiddleware for automatic button click logging in bot setup 2025-12-20 02:42:40 +03:00
gy9vin
2f0594e361 Конкурсная система. 2025-12-15 20:04:39 +03:00
gy9vin
afd4fe8d1d Конкурсы +АПИ 2025-12-14 14:37:29 +03:00
Egor
479b9bc384 Add telegram id support for promo offers 2025-12-05 09:56:03 +03:00
Egor
68c125ba14 feat: expose integration metadata for miniapp payments 2025-11-11 08:11:42 +03:00
Egor
f2b724a78d Adjust Pal24 callback handling and SBP link fallback 2025-11-10 05:26:02 +03:00
gy9vin
cfdc829f48 update 2025-11-07 22:24:43 +03:00
Egor
9fe7d0592f Expose unified health status alongside admin API 2025-11-06 18:02:08 +03:00
Egor
ed46b7c919 Update miniapp-setup.md 2025-10-24 13:23:23 +03:00
Egor
30ec07f7fe Avoid loading poll responses in list endpoint 2025-10-24 09:39:39 +03:00
Egor
fa3ed3af81 Add system log endpoints to admin API 2025-10-24 09:20:34 +03:00
Egor
5f316f85b3 feat: expose monitoring logs through web api 2025-10-24 09:06:08 +03:00
Egor
49ace78a68 Polish Heleket payment integration 2025-10-21 11:12:47 +03:00
Egor
0e43daf48b Fix autopay day button label 2025-10-21 09:10:26 +03:00
gy9vin
58588e37d0 Реализация корзины пользователя! запоминает настройки подписки после пополнения баланса. 2025-10-14 09:02:16 +03:00
gy9vin
a320de1cbb Скрытие кнопки партнерки через env 2025-10-13 23:00:06 +03:00
Egor
d082e8a61c Refactor subscription handlers into modular package 2025-10-13 21:21:26 +03:00
gy9vin
dec3aefdec Модульная структура платежки 2025-10-12 16:14:00 +03:00
Egor
a2cb7527f8 feat(api): add promo offers endpoints and docs 2025-10-06 04:27:21 +03:00
Egor
7f4af89d60 Update miniapp-setup.md 2025-10-01 06:43:37 +03:00
Egor
17587a9b30 Update miniapp-setup.md 2025-10-01 05:53:53 +03:00
Egor
cd9218ec09 Revert "feat: allow configuring miniapp branding" 2025-10-01 04:01:22 +03:00
Egor
0a789d3bd1 feat: allow configuring miniapp branding 2025-10-01 03:58:34 +03:00
Egor
f919368d0b Document miniapp deployment and reverse proxy setup 2025-10-01 02:32:36 +03:00
Egor
9c1ca5b748 Ensure default web API token stays in sync with settings 2025-09-28 06:16:13 +03:00
Egor
4bc1c402e9 feat: document remnawave endpoints in swagger 2025-09-28 05:09:24 +03:00
Egor
1e14a0919f Revert "Add Remnawave component management API" 2025-09-28 04:56:33 +03:00
Egor
c10e34ad43 Add Remnawave component management API 2025-09-28 04:53:01 +03:00
Egor
8d5e2037d3 Revert "Replace ReDoc docs with Scalar UI" 2025-09-28 04:30:38 +03:00
Egor
870ee2fb66 Replace ReDoc docs with Scalar UI 2025-09-28 04:27:43 +03:00
Egor
3e3385d1eb docs: explain enabling swagger ui 2025-09-28 04:20:28 +03:00
Egor
abf1f53218 Add web admin API schemas and docs 2025-09-26 05:37:08 +03:00