Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Revert "Move tabs files to be more idiomatic with the rest of the app"
Browse files Browse the repository at this point in the history
This reverts commit 47f0a25.
  • Loading branch information
khelif96 committed Sep 11, 2023
1 parent a2ba29a commit fd7eae2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/pages/task/TaskTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { usePrevious } from "hooks";
import { useTabShortcut } from "hooks/useTabShortcut";
import { TaskTab } from "types/task";
import { queryString } from "utils";
import { BuildBaron } from "./taskTabs/BuildBaronAndAnnotations";
import useBuildBaronVariables from "./taskTabs/BuildBaronAndAnnotations/useBuildBaronVariables";
import { BuildBaron } from "./taskTabs/BuildBaron";
import { useBuildBaronVariables } from "./taskTabs/buildBaronAndAnnotations";
import { ExecutionTasksTable } from "./taskTabs/ExecutionTasksTable";
import FilesTableTab from "./taskTabs/FileTableTab";
import { Logs } from "./taskTabs/Logs";
Expand Down
5 changes: 5 additions & 0 deletions src/pages/task/taskTabs/BuildBaron.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { loadable } from "components/SpruceLoader";

export const BuildBaron = loadable(
() => import("./buildBaronAndAnnotations/BuildBaron")
);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CustomStoryObj, CustomMeta } from "test_utils/types";

import { ExecutionTasksTable } from ".";
import { ExecutionTasksTable } from "./ExecutionTasksTable";

export default {
title: "Pages/Task/Table/Execution Tasks Table",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ import { size } from "constants/tokens";
import { TaskLogLinks } from "gql/generated/types";
import { useUpdateURLQueryParams } from "hooks";
import { LogTypes, QueryParams } from "types/task";
import { EventLog, AgentLog, SystemLog, TaskLog, AllLog } from "./LogTypes";
import {
EventLog,
AgentLog,
SystemLog,
TaskLog,
AllLog,
} from "./logs/LogTypes";

const DEFAULT_LOG_TYPE = LogTypes.Task;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import { RequiredQueryParams, TableOnChange } from "types/task";
import { TestStatus } from "types/test";
import { queryString, url } from "utils";
import { getColumnsTemplate } from "./getColumnsTemplate";
import { getColumnsTemplate } from "./testsTable/getColumnsTemplate";

const { getLimitFromSearch, getPageFromSearch } = url;
const { parseQueryString, queryParamAsNumber } = queryString;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/task/taskTabs/buildBaronAndAnnotations/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { loadable } from "components/SpruceLoader";
import useBuildBaronVariables from "./useBuildBaronVariables";

export const BuildBaron = loadable(() => import("./BuildBaron"));
export { useBuildBaronVariables };

0 comments on commit fd7eae2

Please sign in to comment.