Skip to content

feat: run every bot flow on the reply keyboard

Ali YousefNezhad requested to merge new-design into dev

Summary

Every step of the report, manage tasks, timeline and link account flows now uses the Telegram reply keyboard instead of inline buttons. The main menu keyboard comes back when a flow ends.

  • ReplyKeyboardService renders screen rows as reply buttons and maps each tapped label back to its callback action; UpdateProcessor replays it as a virtual callback, so existing handlers, admin checks and debounce are unchanged.
  • Main menu buttons always leave the current flow or pending prompt.
  • Every step has Back / Cancel; the report flow can step back to the previous step.
  • In groups, keyboards are selective replies shown only to the acting admin (privacy mode must be off or the bot must be an admin).
  • Too-short description / comment input keeps the prompt open.

Fixes

  • /menu registered in the "/" suggestions; trailing space removed from set_topic_name.
  • Link picker parses emails containing _; stale-flow detection works for commands containing _.
  • Updates without a sender are ignored instead of failing; linked user ids no longer written to the log.
  • Missing English force_majeure_warning; .env.example gains JIRA_API_TOKEN, REPORTS_TIMEZONE, JIRA_STATUS_OWNER_MAP.
  • docker-compose.yml.save untracked and *.save ignored.

Webhook disabled

The bot runs on long polling only. The webhook route and telegram:set-webhook are commented out (restorable); the webhook route tests are skipped and the docs describe polling as the only mode.

Docs

README and docs/ updated to the current behaviour; disabled commands removed from the README and command reference.

Testing

  • New tests for the reply keyboard service, routing, report Back navigation and task-management exit.
  • vendor/bin/pint clean.
  • No test newly failing. The remaining failures need the MySQL telegrambot test database.
  • phpstan errors down from 376 to 369.
Edited by Ali YousefNezhad

Merge request reports