feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -0,0 +1,6 @@
|
||||
export {
|
||||
CreateSupportCasePage,
|
||||
ManualAssessmentPage,
|
||||
SupportCaseDetailPage,
|
||||
SupportCasesPage,
|
||||
} from "./ui/support-cases-pages";
|
||||
@@ -0,0 +1,119 @@
|
||||
.root {
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.case-list {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.case-card,
|
||||
.event,
|
||||
.decision {
|
||||
min-width: 0;
|
||||
padding: var(--space-4);
|
||||
border: var(--line-thin) solid var(--color-divider);
|
||||
border-radius: var(--radius-m);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.card-heading,
|
||||
.event-heading {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-2) var(--space-4);
|
||||
}
|
||||
|
||||
.card-heading h3,
|
||||
.event-heading h3,
|
||||
.decision h3 {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-l);
|
||||
}
|
||||
|
||||
.card-heading > span {
|
||||
padding: var(--space-1) var(--space-2);
|
||||
border: var(--line-thin) solid var(--color-border-strong);
|
||||
border-radius: var(--radius-pill);
|
||||
font-size: var(--font-size-s);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.case-card p,
|
||||
.event p,
|
||||
.decision p {
|
||||
margin: var(--space-3) 0 0;
|
||||
line-height: var(--line-height-body);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.target,
|
||||
.date,
|
||||
.event-heading time {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
||||
.more {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
.facts {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(9rem, 0.45fr) minmax(0, 1fr);
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.facts dt {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.facts dd {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.description,
|
||||
.message {
|
||||
overflow-wrap: anywhere;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.history {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.event-heading time {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
@media (width <= 40rem) {
|
||||
.actions > * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.facts {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
.facts dd + dt {
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,548 @@
|
||||
import { useEffect } from "react";
|
||||
import { useInfiniteQuery, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { useParams } from "react-router-dom";
|
||||
import {
|
||||
formatSupportDate,
|
||||
isSupportSessionAccessError,
|
||||
supportCaseActorLabels,
|
||||
supportCaseDetailQueryKey,
|
||||
supportCaseEventKindLabels,
|
||||
supportCaseListQueryKey,
|
||||
supportCasePathFor,
|
||||
supportCaseStatusLabels,
|
||||
supportCaseTypeLabels,
|
||||
supportSessionMatches,
|
||||
supportTargetDescription,
|
||||
} from "../../../entities/support-case";
|
||||
import { CreateSupportCase } from "../../../features/create-support-case";
|
||||
import { RequestManualAssessment } from "../../../features/request-manual-assessment";
|
||||
import { ApiRequestError } from "../../../shared/api";
|
||||
import {
|
||||
getGetCurrentSessionQueryKey,
|
||||
useGetCurrentSession,
|
||||
} from "../../../shared/api/endpoints/identity/identity";
|
||||
import {
|
||||
getMySupportCase,
|
||||
listMySupportCases,
|
||||
} from "../../../shared/api/endpoints/support/support";
|
||||
import type { Session, SupportCase } from "../../../shared/api/schemas";
|
||||
import { paths } from "../../../shared/config";
|
||||
import {
|
||||
Button,
|
||||
ButtonLink,
|
||||
EmptyState,
|
||||
ErrorState,
|
||||
ForbiddenState,
|
||||
LoadingState,
|
||||
Page,
|
||||
Section,
|
||||
TextLink,
|
||||
} from "../../../shared/ui";
|
||||
import styles from "./support-cases-pages.module.css";
|
||||
|
||||
const supportCasePageSize = 20;
|
||||
const caseIdPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
||||
|
||||
function isCaseAccessError(error: unknown): error is ApiRequestError {
|
||||
return (
|
||||
error instanceof ApiRequestError &&
|
||||
(error.status === 401 || error.status === 403 || error.status === 404)
|
||||
);
|
||||
}
|
||||
|
||||
function sessionErrorState(error: unknown, onRetry: () => void, isRetrying: boolean) {
|
||||
if (isSupportSessionAccessError(error)) {
|
||||
return (
|
||||
<ForbiddenState
|
||||
error={error}
|
||||
title="Войдите, чтобы открыть обращения"
|
||||
description="После входа поддержка откроется для вашего аккаунта."
|
||||
action={
|
||||
<ButtonLink to={paths.login} state={{ returnTo: "support" }}>
|
||||
Войти в поддержку
|
||||
</ButtonLink>
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<ErrorState
|
||||
error={error}
|
||||
title="Не удалось проверить вход"
|
||||
isRetrying={isRetrying}
|
||||
onRetry={onRetry}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function removeSupportAccountCache(
|
||||
queryClient: ReturnType<typeof useQueryClient>,
|
||||
accountId: string,
|
||||
) {
|
||||
queryClient.removeQueries({
|
||||
predicate: (query) =>
|
||||
query.queryKey[0] === "account" &&
|
||||
query.queryKey[1] === accountId &&
|
||||
query.queryKey[2] === "support-cases",
|
||||
});
|
||||
}
|
||||
|
||||
function supportLandingPath(session: Session): string {
|
||||
return session.account.scenario === "candidate"
|
||||
? paths.candidate.supportCases
|
||||
: paths.employer.supportCases;
|
||||
}
|
||||
|
||||
export function SupportCasesPage() {
|
||||
const queryClient = useQueryClient();
|
||||
const session = useGetCurrentSession({ query: { retry: false } });
|
||||
const actor = session.isSuccess ? session.data : null;
|
||||
const knownActor =
|
||||
session.data ?? queryClient.getQueryData<Session>(getGetCurrentSessionQueryKey());
|
||||
const list = useInfiniteQuery({
|
||||
queryKey: actor
|
||||
? supportCaseListQueryKey(actor.account.id)
|
||||
: ["account", "anonymous", "support-cases", "list"],
|
||||
queryFn: async ({ pageParam, signal }) => {
|
||||
if (
|
||||
!actor ||
|
||||
!supportSessionMatches(queryClient.getQueryState(getGetCurrentSessionQueryKey()), actor)
|
||||
) {
|
||||
throw new Error("The active account changed before support history was loaded.");
|
||||
}
|
||||
const result = await listMySupportCases(
|
||||
pageParam
|
||||
? { limit: supportCasePageSize, cursor: pageParam }
|
||||
: { limit: supportCasePageSize },
|
||||
{ signal },
|
||||
);
|
||||
if (
|
||||
!supportSessionMatches(queryClient.getQueryState(getGetCurrentSessionQueryKey()), actor)
|
||||
) {
|
||||
throw new Error("The active account changed while support history was loading.");
|
||||
}
|
||||
return result;
|
||||
},
|
||||
initialPageParam: undefined as string | undefined,
|
||||
getNextPageParam: (lastPage) =>
|
||||
lastPage.page.has_more ? (lastPage.page.next_cursor ?? undefined) : undefined,
|
||||
enabled: Boolean(actor),
|
||||
staleTime: 0,
|
||||
gcTime: 0,
|
||||
refetchOnMount: "always",
|
||||
retry: false,
|
||||
});
|
||||
const listAccessError = list.isError && isCaseAccessError(list.error) ? list.error : null;
|
||||
|
||||
useEffect(() => {
|
||||
const accountId = actor?.account.id ?? knownActor?.account.id;
|
||||
if (!accountId || (!isSupportSessionAccessError(session.error) && !listAccessError)) {
|
||||
return;
|
||||
}
|
||||
removeSupportAccountCache(queryClient, accountId);
|
||||
}, [actor, knownActor, listAccessError, queryClient, session.error]);
|
||||
|
||||
if (session.isPending && !session.data) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
<LoadingState label="Проверяем вход..." />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (session.isError) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
{sessionErrorState(session.error, () => void session.refetch(), session.isRefetching)}
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (!actor || (actor.account.scenario !== "candidate" && actor.account.scenario !== "employer")) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
<ForbiddenState title="Поддержка недоступна" />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (listAccessError) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
<ForbiddenState
|
||||
error={listAccessError}
|
||||
title="Обращения недоступны"
|
||||
description="Сервер не подтвердил доступ к истории этого аккаунта."
|
||||
action={
|
||||
<ButtonLink to={paths.login} state={{ returnTo: "support" }}>
|
||||
Обновить вход
|
||||
</ButtonLink>
|
||||
}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (list.isPending && !list.data) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
<LoadingState label="Загружаем историю обращений..." />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (list.isError && !list.data) {
|
||||
return (
|
||||
<Page title="Мои обращения">
|
||||
<ErrorState
|
||||
error={list.error}
|
||||
title="Не удалось загрузить обращения"
|
||||
isRetrying={list.isRefetching}
|
||||
onRetry={() => void list.refetch()}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
const cases = list.data?.pages.flatMap((page) => page.items) ?? [];
|
||||
return (
|
||||
<Page
|
||||
title="Мои обращения"
|
||||
eyebrow={
|
||||
actor.account.scenario === "candidate" ? "Кабинет кандидата" : "Кабинет работодателя"
|
||||
}
|
||||
lead="Здесь хранятся обращения этого аккаунта и ответы поддержки."
|
||||
width="wide"
|
||||
>
|
||||
<div className={styles.root}>
|
||||
<Section title="Новый запрос">
|
||||
<div className={styles.actions}>
|
||||
<ButtonLink
|
||||
to={
|
||||
actor.account.scenario === "candidate"
|
||||
? paths.candidate.supportNew
|
||||
: paths.employer.supportNew
|
||||
}
|
||||
>
|
||||
Написать в поддержку
|
||||
</ButtonLink>
|
||||
{actor.account.scenario === "candidate" ? (
|
||||
<ButtonLink to={paths.candidate.supportManual} variant="secondary">
|
||||
Запросить ручную оценку
|
||||
</ButtonLink>
|
||||
) : null}
|
||||
</div>
|
||||
</Section>
|
||||
<Section title="История">
|
||||
{list.isError ? (
|
||||
<ErrorState
|
||||
error={list.error}
|
||||
title="Не удалось обновить историю"
|
||||
isRetrying={list.isRefetching}
|
||||
onRetry={() => void list.refetch()}
|
||||
/>
|
||||
) : null}
|
||||
{cases.length === 0 ? (
|
||||
<EmptyState
|
||||
title="Обращений пока нет"
|
||||
description="После отправки новое дело появится здесь и останется доступным после повторного входа."
|
||||
action={
|
||||
<ButtonLink
|
||||
to={
|
||||
actor.account.scenario === "candidate"
|
||||
? paths.candidate.supportNew
|
||||
: paths.employer.supportNew
|
||||
}
|
||||
>
|
||||
Создать обращение
|
||||
</ButtonLink>
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<div className={styles["case-list"]}>
|
||||
{cases.map((supportCase) => (
|
||||
<SupportCaseSummaryCard
|
||||
key={supportCase.id}
|
||||
supportCase={supportCase}
|
||||
href={supportCasePathFor(actor, supportCase.id)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{list.hasNextPage ? (
|
||||
<div className={styles.more}>
|
||||
<Button
|
||||
variant="secondary"
|
||||
isBusy={list.isFetchingNextPage}
|
||||
onClick={() => void list.fetchNextPage()}
|
||||
>
|
||||
{list.isFetchingNextPage ? "Загружаем..." : "Показать более ранние обращения"}
|
||||
</Button>
|
||||
</div>
|
||||
) : null}
|
||||
</Section>
|
||||
</div>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
function SupportCaseSummaryCard({
|
||||
supportCase,
|
||||
href,
|
||||
}: {
|
||||
supportCase: {
|
||||
id: string;
|
||||
number: string;
|
||||
type: SupportCase["type"];
|
||||
status: SupportCase["status"];
|
||||
response_target: SupportCase["response_target"];
|
||||
created_at: string;
|
||||
};
|
||||
href: string;
|
||||
}) {
|
||||
return (
|
||||
<article className={styles["case-card"]}>
|
||||
<div className={styles["card-heading"]}>
|
||||
<h3>
|
||||
<TextLink to={href}>{supportCase.number}</TextLink>
|
||||
</h3>
|
||||
<span>{supportCaseStatusLabels[supportCase.status]}</span>
|
||||
</div>
|
||||
<p>{supportCaseTypeLabels[supportCase.type]}</p>
|
||||
<p className={styles.target}>{supportTargetDescription(supportCase.response_target)}</p>
|
||||
<p className={styles.date}>Создано {formatSupportDate(supportCase.created_at)}</p>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
export function CreateSupportCasePage() {
|
||||
return (
|
||||
<Page
|
||||
title="Обратиться в поддержку"
|
||||
eyebrow="Мои обращения"
|
||||
lead="Отправьте вопрос или сообщите о проблеме."
|
||||
width="wide"
|
||||
>
|
||||
<CreateSupportCase />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export function ManualAssessmentPage() {
|
||||
return (
|
||||
<Page
|
||||
title="Запросить ручную оценку"
|
||||
eyebrow="Поддержка"
|
||||
lead="Выберите категорию и расскажите, что важно учесть эксперту."
|
||||
width="wide"
|
||||
>
|
||||
<RequestManualAssessment />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export function SupportCaseDetailPage() {
|
||||
const queryClient = useQueryClient();
|
||||
const { caseId = "" } = useParams();
|
||||
const session = useGetCurrentSession({ query: { retry: false } });
|
||||
const actor = session.isSuccess ? session.data : null;
|
||||
const knownActor =
|
||||
session.data ?? queryClient.getQueryData<Session>(getGetCurrentSessionQueryKey());
|
||||
const validId = caseIdPattern.test(caseId);
|
||||
const details = useQuery({
|
||||
queryKey:
|
||||
actor && validId
|
||||
? supportCaseDetailQueryKey(actor.account.id, caseId)
|
||||
: ["account", "anonymous", "support-cases", "detail", caseId],
|
||||
queryFn: async ({ signal }) => {
|
||||
if (
|
||||
!actor ||
|
||||
!supportSessionMatches(queryClient.getQueryState(getGetCurrentSessionQueryKey()), actor)
|
||||
) {
|
||||
throw new Error("The active account changed before the support request was loaded.");
|
||||
}
|
||||
const result = await getMySupportCase(caseId, { signal });
|
||||
if (
|
||||
!supportSessionMatches(queryClient.getQueryState(getGetCurrentSessionQueryKey()), actor)
|
||||
) {
|
||||
throw new Error("The active account changed while the support request was loading.");
|
||||
}
|
||||
return result;
|
||||
},
|
||||
enabled: Boolean(actor && validId),
|
||||
staleTime: 0,
|
||||
gcTime: 0,
|
||||
refetchOnMount: "always",
|
||||
retry: false,
|
||||
});
|
||||
const detailsAccessError =
|
||||
details.isError && isCaseAccessError(details.error) ? details.error : null;
|
||||
|
||||
useEffect(() => {
|
||||
const accountId = actor?.account.id ?? knownActor?.account.id;
|
||||
if (!accountId || (!isSupportSessionAccessError(session.error) && !detailsAccessError)) {
|
||||
return;
|
||||
}
|
||||
removeSupportAccountCache(queryClient, accountId);
|
||||
}, [actor, detailsAccessError, knownActor, queryClient, session.error]);
|
||||
|
||||
if (session.isPending && !session.data) {
|
||||
return (
|
||||
<Page title="Обращение">
|
||||
<LoadingState label="Проверяем вход..." />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (session.isError) {
|
||||
return (
|
||||
<Page title="Обращение">
|
||||
{sessionErrorState(session.error, () => void session.refetch(), session.isRefetching)}
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (!actor)
|
||||
return (
|
||||
<Page title="Обращение">
|
||||
<ForbiddenState title="Войдите, чтобы открыть обращение" />
|
||||
</Page>
|
||||
);
|
||||
if (!validId) {
|
||||
return (
|
||||
<Page title="Обращение не найдено">
|
||||
<EmptyState
|
||||
title="Обращение не найдено или недоступно"
|
||||
description="Проверьте ссылку или вернитесь к истории своего аккаунта."
|
||||
action={<ButtonLink to={supportLandingPath(actor)}>Мои обращения</ButtonLink>}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (detailsAccessError) {
|
||||
if (detailsAccessError.status === 404) {
|
||||
return (
|
||||
<Page title="Обращение не найдено">
|
||||
<EmptyState
|
||||
title="Обращение не найдено или недоступно"
|
||||
description="Ссылка не дает доступ к истории другого аккаунта."
|
||||
action={<ButtonLink to={supportLandingPath(actor)}>Мои обращения</ButtonLink>}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Page title="Обращение недоступно">
|
||||
<ForbiddenState
|
||||
error={detailsAccessError}
|
||||
title="Обращение недоступно"
|
||||
description="Сервер не подтвердил доступ к этой истории."
|
||||
action={
|
||||
<ButtonLink to={paths.login} state={{ returnTo: "support" }}>
|
||||
Обновить вход
|
||||
</ButtonLink>
|
||||
}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (details.isPending && !details.data) {
|
||||
return (
|
||||
<Page title="Обращение">
|
||||
<LoadingState label="Загружаем обращение..." />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (details.isError && !details.data) {
|
||||
return (
|
||||
<Page title="Не удалось открыть обращение">
|
||||
<ErrorState
|
||||
error={details.error}
|
||||
title="Не удалось загрузить обращение"
|
||||
isRetrying={details.isRefetching}
|
||||
onRetry={() => void details.refetch()}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
if (!details.data)
|
||||
return (
|
||||
<Page title="Обращение">
|
||||
<LoadingState label="Загружаем обращение..." />
|
||||
</Page>
|
||||
);
|
||||
|
||||
return (
|
||||
<Page
|
||||
title={details.data.number}
|
||||
eyebrow="Мои обращения"
|
||||
lead={supportCaseTypeLabels[details.data.type]}
|
||||
width="wide"
|
||||
>
|
||||
<SupportCaseDetails supportCase={details.data} session={actor} />
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
function SupportCaseDetails({
|
||||
supportCase,
|
||||
session,
|
||||
}: {
|
||||
supportCase: SupportCase;
|
||||
session: Session;
|
||||
}) {
|
||||
return (
|
||||
<div className={styles.root}>
|
||||
<Section title="Состояние">
|
||||
<dl className={styles.facts}>
|
||||
<dt>Номер</dt>
|
||||
<dd>{supportCase.number}</dd>
|
||||
<dt>Статус</dt>
|
||||
<dd>{supportCaseStatusLabels[supportCase.status]}</dd>
|
||||
<dt>Создано</dt>
|
||||
<dd>{formatSupportDate(supportCase.created_at)}</dd>
|
||||
<dt>Операционная цель</dt>
|
||||
<dd>{supportTargetDescription(supportCase.response_target)}</dd>
|
||||
{supportCase.assessment_target ? (
|
||||
<>
|
||||
<dt>Специальность</dt>
|
||||
<dd>{supportCase.assessment_target.specialization}</dd>
|
||||
<dt>Желаемый грейд</dt>
|
||||
<dd>{supportCase.assessment_target.grade}</dd>
|
||||
</>
|
||||
) : null}
|
||||
{supportCase.type === "manual_assessment" ? (
|
||||
<>
|
||||
<dt>Рубрика</dt>
|
||||
<dd>
|
||||
{supportCase.rubric_version === null
|
||||
? "Опубликованной рубрики для этой категории пока нет. Запрос ожидает эксперта; автоматическая оценка не выполнялась."
|
||||
: `Зафиксирована версия ${supportCase.rubric_version}. Запрос ожидает эксперта.`}
|
||||
</dd>
|
||||
</>
|
||||
) : null}
|
||||
</dl>
|
||||
<p className={styles.description}>{supportCase.description}</p>
|
||||
{supportCase.decision ? (
|
||||
<div className={styles.decision}>
|
||||
<h3>Решение</h3>
|
||||
<p>{supportCase.decision.reason}</p>
|
||||
</div>
|
||||
) : null}
|
||||
</Section>
|
||||
<Section title="История">
|
||||
<ol className={styles.history}>
|
||||
{supportCase.history.map((event) => (
|
||||
<li key={event.sequence} className={styles.event}>
|
||||
<div className={styles["event-heading"]}>
|
||||
<h3>{supportCaseEventKindLabels[event.kind]}</h3>
|
||||
<time dateTime={event.occurred_at}>{formatSupportDate(event.occurred_at)}</time>
|
||||
</div>
|
||||
<p>{supportCaseActorLabels[event.actor]}</p>
|
||||
{event.status ? <p>Статус: {supportCaseStatusLabels[event.status]}</p> : null}
|
||||
{event.message ? <p className={styles.message}>{event.message}</p> : null}
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</Section>
|
||||
<div className={styles.actions}>
|
||||
<ButtonLink to={supportLandingPath(session)} variant="secondary">
|
||||
Мои обращения
|
||||
</ButtonLink>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user