feat(feedback): render links in the operator reply (open in a new tab)
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 13s
CI / ui (pull_request) Successful in 47s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m6s
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 13s
CI / ui (pull_request) Successful in 47s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m6s
Linkify the operator reply on the feedback screen: http/https/ftp/mailto/tel URLs become anchors (target=_blank rel=noopener), everything else stays escaped text. A small whitelisted regex (no dependency) — the reply is operator-authored, so explicit schemes suffice; dangerous schemes (javascript:/data:) are never linked, and \b avoids matching a scheme inside a word (hotel:, email:).
This commit is contained in:
+2
-2
@@ -179,8 +179,8 @@ PDF, text/log, office documents, RTF or archives; an unsupported file is refused
|
||||
without naming the allowed types). After sending, the form clears and confirms "Ваше сообщение
|
||||
отправлено", and sending is blocked until the operator has dealt with that message — on re-entry
|
||||
the screen reads "Ожидаем рассмотрения вашего последнего обращения". The operator's reply appears
|
||||
below the form as "Ответ на ваше последнее сообщение"; it is marked read once the screen shows it
|
||||
and disappears a week later. A badge on the Settings tab (and on Info inside it) flags an
|
||||
below the form as "Ответ на ваше последнее сообщение" (any link in it opens in a new tab); it is
|
||||
marked read once the screen shows it and disappears a week later. A badge on the Settings tab (and on Info inside it) flags an
|
||||
unanswered reply. Guests cannot send feedback (the entry is hidden). A player the operator has
|
||||
barred from feedback (a role, not a full account block) sees the send control disabled.
|
||||
|
||||
|
||||
@@ -184,8 +184,8 @@ UTC), суточного окна отсутствия (away; сетка по 10
|
||||
допустимых типов). После отправки форма очищается и подтверждает «Ваше сообщение отправлено», а
|
||||
повторная отправка блокируется, пока оператор не разобрал обращение — при повторном входе на экране
|
||||
«Ожидаем рассмотрения вашего последнего обращения». Ответ оператора показывается под формой как
|
||||
«Ответ на ваше последнее сообщение»; он помечается прочитанным, как только экран его показал, и
|
||||
исчезает через неделю. Бейдж на вкладке Settings (и на Info внутри неё) сигналит о непрочитанном
|
||||
«Ответ на ваше последнее сообщение» (ссылки в нём открываются в новой вкладке); он помечается
|
||||
прочитанным, как только экран его показал, и исчезает через неделю. Бейдж на вкладке Settings (и на Info внутри неё) сигналит о непрочитанном
|
||||
ответе. Гость отправлять обратную связь не может (пункт скрыт). Игрок, которому оператор запретил
|
||||
обратную связь (роль, а не полная блокировка аккаунта), видит кнопку отправки недоступной.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user