Skip to content

Commit

Permalink
🐛 ApplicationAnalysisStatus is required for status (#1359)
Browse files Browse the repository at this point in the history
#1353 follow-up to fix broken
display of analysis status.

`ApplicationAnalysisStatus` must be used to display analysis state.
`IconedStatus` cannot be used here (or at least not yet) because
analysis state mapping for tasks is specific.
  • Loading branch information
gildub authored Sep 15, 2023
1 parent 88ae668 commit e0e726d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import {
ConditionalTableBody,
TableRowContentWithControls,
} from "@app/components/TableControls";
import { IconedStatus } from "@app/components/IconedStatus";
import { ToolbarBulkSelector } from "@app/components/ToolbarBulkSelector";
import { SimpleDocumentViewerModal } from "@app/components/SimpleDocumentViewer";
import { getTaskById } from "@app/api/rest";
Expand Down Expand Up @@ -90,6 +89,7 @@ import { NoDataEmptyState } from "@app/components/NoDataEmptyState";
import { ConditionalTooltip } from "@app/components/ConditionalTooltip";
import { TaskGroupProvider } from "../analysis-wizard/components/TaskGroupContext";
import { AnalysisWizard } from "../analysis-wizard/analysis-wizard";
import { ApplicationAnalysisStatus } from "../components/application-analysis-status";

export const ApplicationsTableAnalyze: React.FC = () => {
const { t } = useTranslation();
Expand Down Expand Up @@ -659,8 +659,8 @@ export const ApplicationsTableAnalyze: React.FC = () => {
modifier="truncate"
{...getTdProps({ columnKey: "analysis" })}
>
<IconedStatus
preset={application.review ? "Completed" : "NotStarted"}
<ApplicationAnalysisStatus
state={getTask(application)?.state || "No task"}
/>
</Td>
<Td
Expand Down

0 comments on commit e0e726d

Please sign in to comment.