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

Commit

Permalink
Move tabs files to be more idiomatic with the rest of the app
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Sep 8, 2023
1 parent c39a17b commit 47f0a25
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 18 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/BuildBaron";
import { useBuildBaronVariables } from "./taskTabs/buildBaronAndAnnotations";
import { BuildBaron } from "./taskTabs/BuildBaronAndAnnotations";
import useBuildBaronVariables from "./taskTabs/BuildBaronAndAnnotations/useBuildBaronVariables";
import { ExecutionTasksTable } from "./taskTabs/ExecutionTasksTable";
import FilesTableTab from "./taskTabs/FileTableTab";
import { Logs } from "./taskTabs/Logs";
Expand Down
5 changes: 0 additions & 5 deletions src/pages/task/taskTabs/BuildBaron.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CustomStoryObj, CustomMeta } from "test_utils/types";

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

export default {
title: "Pages/Task/Table/Execution Tasks Table",
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 useBuildBaronVariables from "./useBuildBaronVariables";
import { loadable } from "components/SpruceLoader";

export { useBuildBaronVariables };
export const BuildBaron = loadable(() => import("./BuildBaron"));
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ 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 "./logs/LogTypes";
import { EventLog, AgentLog, SystemLog, TaskLog, AllLog } from "./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 "./testsTable/getColumnsTemplate";
import { getColumnsTemplate } from "./getColumnsTemplate";

const { getLimitFromSearch, getPageFromSearch } = url;
const { parseQueryString, queryParamAsNumber } = queryString;
Expand Down

0 comments on commit 47f0a25

Please sign in to comment.