Commit Graph

5877 Commits

Author SHA1 Message Date
Egor
f452434b13 Merge pull request #2335 from BEDOLAGA-DEV/main
w
2026-01-19 06:24:22 +03:00
PEDZEO
e6e688a395 fix(routes): reorder notification and ticket routers to prevent route conflicts
- Moved the notifications router to be included before the tickets router to avoid conflicts.
- Updated comments for clarity regarding the order of router inclusion.
2026-01-19 01:30:31 +03:00
PEDZEO
b1206a84c7 feat(notifications): enhance notification security and ownership checks
- Added ownership verification for user notifications to ensure only the rightful owner can mark them as read.
- Implemented checks to confirm that admin notifications are correctly identified before allowing them to be marked as read.
- Introduced a new method to retrieve notifications by ID in the TicketNotificationCRUD for improved data handling.
2026-01-19 00:39:36 +03:00
PEDZEO
63e45e12de Merge pull request #2334 from BEDOLAGA-DEV/test
feat(notifications): implement ticket notifications for users and admins
2026-01-19 00:34:03 +03:00
PEDZEO
792ff22471 Merge branch 'main' into test 2026-01-19 00:33:21 +03:00
PEDZEO
346806bce0 feat(notifications): integrate WebSocket notifications for ticket replies and new tickets
- Added WebSocket notifications for admins on new ticket creation and user replies.
- Implemented notification handling in the ticket management routes.
- Enhanced error logging for notification failures.
2026-01-19 00:28:57 +03:00
PEDZEO
5630e99812 Merge branch 'main' of https://github.com/Fr1ngg/remnawave-bedolaga-telegram-bot 2026-01-19 00:03:43 +03:00
PEDZEO
67c3dba1cc feat(notifications): implement ticket notifications for users and admins
- Added a new TicketNotification model to handle notifications for ticket events.
- Implemented user and admin notifications for new tickets and replies in the cabinet.
- Introduced settings to enable or disable notifications for users and admins.
- Enhanced ticket settings to include notification preferences.
- Integrated WebSocket notifications for real-time updates.
2026-01-19 00:02:41 +03:00
Egor
c1e901ba5e Merge pull request #2333 from BEDOLAGA-DEV/dev5
Update auth.py
2026-01-18 23:34:02 +03:00
Egor
b6f2052464 Update auth.py 2026-01-18 23:33:45 +03:00
PEDZEO
c63db708cc feat(tickets): notify admins on new ticket creation and replies
- Added functionality to notify admins when a new ticket is created.
- Implemented notification for admins when a user replies to a ticket.
- Included error handling for notification failures.
2026-01-18 23:23:46 +03:00
Egor
3fc702ec65 Merge pull request #2332 from BEDOLAGA-DEV/dev5
Dev5
2026-01-18 22:15:37 +03:00
Egor
0aff94de74 Update main.py 2026-01-18 22:15:03 +03:00
Egor
d8c60ce19f Merge pull request #2331 from BEDOLAGA-DEV/main
w
2026-01-18 22:14:34 +03:00
Egor
f3995c7ca8 Merge pull request #2330 from DrillUser/patch-1
+убрать очепятку
2026-01-18 21:31:22 +03:00
Egor
1330f394bb Merge pull request #2328 from Gy9vin/main
fix(contests): исправлены критические баги системы конкурсов
2026-01-18 21:31:01 +03:00
Vladislav
ec27d63f70 +убрать очепятку 2026-01-18 14:09:04 +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
04bb20c1e7 Update Dockerfile v3.1.0 2026-01-18 07:33:22 +03:00
Egor
7fdf2dcd51 Update docker-registry.yml 2026-01-18 07:33:13 +03:00
Egor
6d5462b084 Update docker-hub.yml 2026-01-18 07:32:52 +03:00
Egor
956b90e95e Merge pull request #2327 from BEDOLAGA-DEV/dev5
Dev5
2026-01-18 06:01:18 +03:00
Egor
15e7725cf7 Update tariff.py 2026-01-18 05:47:59 +03:00
Egor
4205eed54f Update admin_tariffs.py 2026-01-18 05:46:50 +03:00
Egor
921ae25dd3 Merge pull request #2326 from BEDOLAGA-DEV/main
w
2026-01-18 05:43:05 +03:00
Egor
cee4139a64 Update README.md 2026-01-17 19:49:19 +03:00
Egor
92339ec55a Merge pull request #2323 from libkitdev/main
feat(promocodes): добавить тип DISCOUNT для одноразовых процентных скидок
2026-01-17 19:45:10 +03:00
Egor
3372736fa3 Merge pull request #2325 from BEDOLAGA-DEV/dev5
Dev5
2026-01-17 10:52:16 +03:00
Egor
cd0ce908a1 Add files via upload 2026-01-17 10:31:40 +03:00
Egor
b7f8469895 Add files via upload 2026-01-17 10:31:21 +03:00
Egor
8a96dbd224 Merge pull request #2324 from BEDOLAGA-DEV/dev5
Add files via upload
2026-01-17 10:05:56 +03:00
Egor
840c954203 Add files via upload 2026-01-17 10:05:30 +03:00
libkit
8b6683302d feat(localization): добавить тексты для DISCOUNT промокодов
Добавлены переводы на все 4 языка (ru, en, ua, zh):
- ADMIN_PROMOCODE_TYPE_DISCOUNT - название типа в админке
- PROMOCODE_ACTIVE_DISCOUNT_EXISTS - ошибка при конфликте скидок

Тексты описывают функционал одноразовой процентной скидки.
2026-01-17 11:25:51 +05:00
libkit
7a351d3028 feat(keyboards): добавить кнопку типа DISCOUNT в меню промокодов
Кнопка "💸 Одноразовая скидка" в меню выбора типа промокода.
2026-01-17 11:23:08 +05:00
libkit
5610a91866 feat(admin): добавить UI для создания DISCOUNT промокодов
Добавлена полная поддержка DISCOUNT типа в админке:
- Тип "💸 Одноразовая скидка" в селекторе
- Флоу создания: код → процент (1-100) → макс использований → срок промокода (дни) → срок скидки (часы)
- Валидация процента скидки (1-100)
- Валидация срока действия скидки (0-8760 часов)
- Отображение в списках и странице управления
- Новый стейт setting_discount_hours для ввода срока скидки
2026-01-17 11:22:32 +05:00
libkit
0858388b18 feat(handlers): добавить обработку ошибки active_discount_exists
Пользователь получает понятное сообщение при попытке
активировать промокод когда уже есть активная скидка.
2026-01-17 11:19:24 +05:00
libkit
1793775fe8 feat(services): реализовать логику активации DISCOUNT промокодов
Добавлена обработка нового типа промокода DISCOUNT:
- Проверка конфликта с активными скидками пользователя
- Запись скидки в профиль (promo_offer_discount_percent, promo_offer_discount_expires_at)
- Обработка срока действия скидки (0 часов = бессрочно до первой покупки)
- Логирование активации и ошибок
- Выброс ValueError при попытке активировать скидку при наличии активной
2026-01-17 11:18:46 +05:00
libkit
ff45a3e28d feat(models): добавить тип DISCOUNT в PromoCodeType
Добавлен новый тип промокода для одноразовых скидок.
Использует существующие поля без изменения схемы БД:
- balance_bonus_kopeks для хранения процента скидки (1-100)
- subscription_days для хранения срока действия скидки в часах (0-8760)
2026-01-17 11:17:30 +05:00
Egor
a59252fbb1 Merge pull request #2322 from BEDOLAGA-DEV/dev5
Dev5
2026-01-17 08:51:55 +03:00
Egor
44a410babf Add files via upload 2026-01-17 08:50:47 +03:00
Egor
19a1d93a15 Update balance.py 2026-01-17 08:41:15 +03:00
Egor
64fe45fcfc Update balance.py 2026-01-17 08:40:37 +03:00
Egor
6d2b16f180 Merge pull request #2321 from BEDOLAGA-DEV/dev5
Update admin_users.py
2026-01-17 06:51:53 +03:00
Egor
1f138aa772 Update admin_users.py 2026-01-17 06:51:20 +03:00
Egor
65f5e31540 Merge pull request #2320 from BEDOLAGA-DEV/dev5
Update admin_users.py
2026-01-17 06:40:27 +03:00
Egor
ca4252c9cb Update admin_users.py 2026-01-17 06:40:12 +03:00
Egor
ee9682320f Merge pull request #2319 from BEDOLAGA-DEV/dev5
Update admin_users.py
2026-01-17 06:35:27 +03:00
Egor
15386ad4d8 Update admin_users.py 2026-01-17 06:35:08 +03:00
Egor
d93db9b199 Merge pull request #2318 from BEDOLAGA-DEV/dev5
Dev5
2026-01-17 06:29:35 +03:00
Egor
a54f5347a8 Update users.py 2026-01-17 06:28:42 +03:00