fix: align web reports with current rules

This commit is contained in:
nyan404 committed 2026-09-01 02:03:55 +03:00
1 parent cffaaac755
commit aecbb3bf6a
10 files changed
+47 -12

No files matched your search

+1
View File
@@ -111,6 +111,7 @@
- 2026-08-25: the earned-points calculator groups coaching start and end times in one responsive time-range row.
- 2026-09-01: authenticated `/admin` report and application views share named (all/year/month/week/day/12–1 h) and explicit date-range filters with their XLSX links. `app/belki/admin_filters.py` is the single UTC-boundary parser; `xlsx_export.py` writes a styled one-sheet workbook with typed dates, column filters, and a frozen header.
- 2026-09-01: web-facing timestamps and calendar ranges use UTC+3. The database still stores UTC moments; `WEB_TIMEZONE` converts visible admin/XLSX dates, while date-only filters are converted from UTC+3 boundaries before querying records.
- 2026-09-01: the public report form now requires screenshots only for inspections (and validates that rule server-side). Web lessons collect a `ДД.ММ` date and generate the dated `#урок` format; bot-only forms such as `#выход` and `#помощь` remain outside the public calculator.
- 2026-08-25: web reports use a two-step flow: `/api/calculate` prepares the message without saving it, then `/api/reports` stores it only after the user explicitly selects «Отправить отчёт». The UI disables that action while it is in progress and after success.
- 2026-08-25: shared two-column form grids align controls at the start of their row, preventing a date field with its helper button from stretching the adjacent skill select.
- 2026-08-25: mobile adaptation is a required acceptance criterion for all frontend changes; validate narrow-width layout, touch usability, focus/error states, and absence of horizontal overflow alongside desktop rendering.