Skip to content

Commit

Permalink
Replace the Sync/Suspend/Resume controls, used in the SyncActions a…
Browse files Browse the repository at this point in the history
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080)

* Create the new `SyncControls` component for Sync/Suspend/Resume controls.

* Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder.

* Update the related UI snapshot.

* Add `SyncControls` to exports.

* Move custom actions to the start (left) of `SyncControls` buttons.

* Re-arrange icons in `IconType` alphabetically.
  • Loading branch information
opudrovs committed Oct 31, 2023
1 parent 15909de commit dd4c5fc
Show file tree
Hide file tree
Showing 20 changed files with 4,741 additions and 1,269 deletions.
2 changes: 1 addition & 1 deletion ui/components/AutomationDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import ReconciledObjectsTable from "./ReconciledObjectsTable";
import ReconciliationGraph from "./ReconciliationGraph";
import RequestStateHandler from "./RequestStateHandler";
import SubRouterTabs, { RouterTab } from "./SubRouterTabs";
import SyncActions from "./SyncActions";
import SyncActions from "./Sync/SyncActions";
import Text from "./Text";
import Timestamp from "./Timestamp";
import YamlView from "./YamlView";
Expand Down
119 changes: 0 additions & 119 deletions ui/components/CheckboxActions.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion ui/components/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styled from "styled-components";
import { ThemeTypes } from "../../contexts/AppContext";
import { SearchedNamespaces } from "../../lib/types";
import { IconButton } from "../Button";
import CheckboxActions from "../CheckboxActions";
import CheckboxActions from "../Sync/CheckboxActions";

Check failure on line 9 in ui/components/DataTable/DataTable.tsx

View workflow job for this annotation

GitHub Actions / CI Test JS (16.X)

`../Sync/CheckboxActions` import should occur after import of `../SearchField`
import ChipGroup from "../ChipGroup";
import FilterDialog, {
FilterConfig,
Expand Down
Loading

0 comments on commit dd4c5fc

Please sign in to comment.