Enhance Telegram notification system with optional link support
- Updated NotifyUserAsync method in TelegramNotifier to accept an optional linkPath parameter for dynamic URL generation. - Modified various command handlers to utilize the new linkPath feature, providing users with relevant links in their notifications. - Adjusted ITelegramNotifier interface documentation to reflect the changes in method signature and functionality. - Enhanced unit tests to verify the correct invocation of the updated NotifyUserAsync method.
This commit is contained in:
@@ -3,7 +3,14 @@ import { useTranslation } from 'react-i18next'
|
||||
import { useRequireActivated } from '@/features/auth/guards'
|
||||
import { SupportTicketList } from '@/features/support/SupportTicketList'
|
||||
|
||||
export const Route = createFileRoute('/support')({ component: SupportPage })
|
||||
export const Route = createFileRoute('/support')({
|
||||
component: SupportPage,
|
||||
// Ссылка из Telegram-уведомления об изменении статуса тикета ведёт на этот же роут с
|
||||
// ?ticket=<id> — отдельного роута на конкретный тикет нет, он открывается диалогом поверх списка.
|
||||
validateSearch: (search: Record<string, unknown>): { ticket?: string } => ({
|
||||
ticket: typeof search.ticket === 'string' ? search.ticket : undefined,
|
||||
}),
|
||||
})
|
||||
|
||||
function SupportPage() {
|
||||
const { t } = useTranslation()
|
||||
|
||||
Reference in New Issue
Block a user