From 25b3e4f29e9ed2fd45984a75ce151ee7ad3ba933 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 14 Nov 2018 15:49:19 -0800 Subject: [PATCH] Move IndexList into Clockface directory --- .../components/index_views/IndexList.scss | 0 .../components/index_views/IndexList.tsx | 10 +++++----- .../components/index_views/IndexListBody.tsx | 0 .../components/index_views/IndexListHeader.tsx | 0 .../components/index_views/IndexListHeaderCell.tsx | 0 .../components/index_views/IndexListRow.tsx | 0 .../components/index_views/IndexListRowCell.tsx | 0 .../components/index_views/README.md | 4 ++-- .../components/index_views/test/IndexList.test.tsx | 2 +- .../test/__snapshots__/IndexList.test.tsx.snap | 0 ui/src/clockface/index.ts | 2 ++ ui/src/dashboards/components/DashboardsTable.tsx | 2 +- ui/src/organizations/components/BucketList.tsx | 3 +-- ui/src/organizations/components/BucketRow.tsx | 2 +- ui/src/organizations/components/DashboardList.tsx | 2 +- ui/src/organizations/components/MemberList.tsx | 2 +- .../components/OrganizationsIndexContents.tsx | 3 +-- ui/src/organizations/components/TaskList.tsx | 2 +- ui/src/tasks/components/TaskRow.tsx | 2 +- ui/src/tasks/components/TasksList.tsx | 2 +- 20 files changed, 19 insertions(+), 19 deletions(-) rename ui/src/{shared => clockface}/components/index_views/IndexList.scss (100%) rename ui/src/{shared => clockface}/components/index_views/IndexList.tsx (59%) rename ui/src/{shared => clockface}/components/index_views/IndexListBody.tsx (100%) rename ui/src/{shared => clockface}/components/index_views/IndexListHeader.tsx (100%) rename ui/src/{shared => clockface}/components/index_views/IndexListHeaderCell.tsx (100%) rename ui/src/{shared => clockface}/components/index_views/IndexListRow.tsx (100%) rename ui/src/{shared => clockface}/components/index_views/IndexListRowCell.tsx (100%) rename ui/src/{shared => clockface}/components/index_views/README.md (96%) rename ui/src/{shared => clockface}/components/index_views/test/IndexList.test.tsx (96%) rename ui/src/{shared => clockface}/components/index_views/test/__snapshots__/IndexList.test.tsx.snap (100%) diff --git a/ui/src/shared/components/index_views/IndexList.scss b/ui/src/clockface/components/index_views/IndexList.scss similarity index 100% rename from ui/src/shared/components/index_views/IndexList.scss rename to ui/src/clockface/components/index_views/IndexList.scss diff --git a/ui/src/shared/components/index_views/IndexList.tsx b/ui/src/clockface/components/index_views/IndexList.tsx similarity index 59% rename from ui/src/shared/components/index_views/IndexList.tsx rename to ui/src/clockface/components/index_views/IndexList.tsx index 670007396f..dd3b0df107 100644 --- a/ui/src/shared/components/index_views/IndexList.tsx +++ b/ui/src/clockface/components/index_views/IndexList.tsx @@ -2,11 +2,11 @@ import React, {Component} from 'react' // Components -import Body from 'src/shared/components/index_views/IndexListBody' -import Header from 'src/shared/components/index_views/IndexListHeader' -import HeaderCell from 'src/shared/components/index_views/IndexListHeaderCell' -import Row from 'src/shared/components/index_views/IndexListRow' -import Cell from 'src/shared/components/index_views/IndexListRowCell' +import Body from 'src/clockface/components/index_views/IndexListBody' +import Header from 'src/clockface/components/index_views/IndexListHeader' +import HeaderCell from 'src/clockface/components/index_views/IndexListHeaderCell' +import Row from 'src/clockface/components/index_views/IndexListRow' +import Cell from 'src/clockface/components/index_views/IndexListRowCell' // Decorators import {ErrorHandling} from 'src/shared/decorators/errors' diff --git a/ui/src/shared/components/index_views/IndexListBody.tsx b/ui/src/clockface/components/index_views/IndexListBody.tsx similarity index 100% rename from ui/src/shared/components/index_views/IndexListBody.tsx rename to ui/src/clockface/components/index_views/IndexListBody.tsx diff --git a/ui/src/shared/components/index_views/IndexListHeader.tsx b/ui/src/clockface/components/index_views/IndexListHeader.tsx similarity index 100% rename from ui/src/shared/components/index_views/IndexListHeader.tsx rename to ui/src/clockface/components/index_views/IndexListHeader.tsx diff --git a/ui/src/shared/components/index_views/IndexListHeaderCell.tsx b/ui/src/clockface/components/index_views/IndexListHeaderCell.tsx similarity index 100% rename from ui/src/shared/components/index_views/IndexListHeaderCell.tsx rename to ui/src/clockface/components/index_views/IndexListHeaderCell.tsx diff --git a/ui/src/shared/components/index_views/IndexListRow.tsx b/ui/src/clockface/components/index_views/IndexListRow.tsx similarity index 100% rename from ui/src/shared/components/index_views/IndexListRow.tsx rename to ui/src/clockface/components/index_views/IndexListRow.tsx diff --git a/ui/src/shared/components/index_views/IndexListRowCell.tsx b/ui/src/clockface/components/index_views/IndexListRowCell.tsx similarity index 100% rename from ui/src/shared/components/index_views/IndexListRowCell.tsx rename to ui/src/clockface/components/index_views/IndexListRowCell.tsx diff --git a/ui/src/shared/components/index_views/README.md b/ui/src/clockface/components/index_views/README.md similarity index 96% rename from ui/src/shared/components/index_views/README.md rename to ui/src/clockface/components/index_views/README.md index d44a7d5b83..ddf66f5825 100644 --- a/ui/src/shared/components/index_views/README.md +++ b/ui/src/clockface/components/index_views/README.md @@ -17,9 +17,9 @@ import {Alignment} from 'src/clockface' import { IndexListColumn, IndexListRow, -} from 'src/shared/components/index_views/IndexListTypes' +} from 'src/clockface/components/index_views/IndexListTypes' -import IndexList from 'src/shared/components/index_views/IndexList' +import IndexList from 'src/clockface/components/index_views/IndexList' ``` #### Define Your Columns diff --git a/ui/src/shared/components/index_views/test/IndexList.test.tsx b/ui/src/clockface/components/index_views/test/IndexList.test.tsx similarity index 96% rename from ui/src/shared/components/index_views/test/IndexList.test.tsx rename to ui/src/clockface/components/index_views/test/IndexList.test.tsx index 3876ea6588..e1ab152a6f 100644 --- a/ui/src/shared/components/index_views/test/IndexList.test.tsx +++ b/ui/src/clockface/components/index_views/test/IndexList.test.tsx @@ -1,7 +1,7 @@ import React from 'react' import {mount} from 'enzyme' -import IndexList from 'src/shared/components/index_views/IndexList' +import IndexList from 'src/clockface/components/index_views/IndexList' describe('IndexList', () => { let wrapper diff --git a/ui/src/shared/components/index_views/test/__snapshots__/IndexList.test.tsx.snap b/ui/src/clockface/components/index_views/test/__snapshots__/IndexList.test.tsx.snap similarity index 100% rename from ui/src/shared/components/index_views/test/__snapshots__/IndexList.test.tsx.snap rename to ui/src/clockface/components/index_views/test/__snapshots__/IndexList.test.tsx.snap diff --git a/ui/src/clockface/index.ts b/ui/src/clockface/index.ts index 3ad6f99c17..fb7aae1016 100644 --- a/ui/src/clockface/index.ts +++ b/ui/src/clockface/index.ts @@ -17,6 +17,7 @@ import ProgressBar from './components/wizard/ProgressBar' import ComponentSpacer from './components/component_spacer/ComponentSpacer' import EmptyState from './components/empty_state/EmptyState' import Spinner from './components/spinners/Spinner' +import IndexList from './components/index_views/IndexList' // Import Types import { @@ -44,6 +45,7 @@ export { MultiSelectDropdown, EmptyState, Form, + IndexList, Input, InputType, OverlayTechnology, diff --git a/ui/src/dashboards/components/DashboardsTable.tsx b/ui/src/dashboards/components/DashboardsTable.tsx index 41d8991b63..19b25bbbae 100644 --- a/ui/src/dashboards/components/DashboardsTable.tsx +++ b/ui/src/dashboards/components/DashboardsTable.tsx @@ -7,7 +7,6 @@ import _ from 'lodash' import {Alignment} from 'src/clockface' // Components -import IndexList from 'src/shared/components/index_views/IndexList' import { Button, ComponentColor, @@ -15,6 +14,7 @@ import { ComponentSize, ComponentSpacer, EmptyState, + IndexList, } from 'src/clockface' import DefaultToggle from 'src/dashboards/components/DashboardDefaultToggle' diff --git a/ui/src/organizations/components/BucketList.tsx b/ui/src/organizations/components/BucketList.tsx index 9a6e8f0174..d6601d97e9 100644 --- a/ui/src/organizations/components/BucketList.tsx +++ b/ui/src/organizations/components/BucketList.tsx @@ -2,10 +2,9 @@ import React, {PureComponent} from 'react' // Components -import IndexList from 'src/shared/components/index_views/IndexList' import UpdateBucketOverlay from 'src/organizations/components/UpdateBucketOverlay' import BucketRow, {PrettyBucket} from 'src/organizations/components/BucketRow' -import {OverlayTechnology} from 'src/clockface' +import {OverlayTechnology, IndexList} from 'src/clockface' // Types import {OverlayState} from 'src/types/v2' diff --git a/ui/src/organizations/components/BucketRow.tsx b/ui/src/organizations/components/BucketRow.tsx index 83fbfa6fdc..2a460363a8 100644 --- a/ui/src/organizations/components/BucketRow.tsx +++ b/ui/src/organizations/components/BucketRow.tsx @@ -2,7 +2,7 @@ import React, {PureComponent} from 'react' // Components -import IndexList from 'src/shared/components/index_views/IndexList' +import {IndexList} from 'src/clockface' // Types import {Bucket, OverlayState} from 'src/types/v2' diff --git a/ui/src/organizations/components/DashboardList.tsx b/ui/src/organizations/components/DashboardList.tsx index 5c1ec5c1a7..373948fefa 100644 --- a/ui/src/organizations/components/DashboardList.tsx +++ b/ui/src/organizations/components/DashboardList.tsx @@ -3,7 +3,7 @@ import React, {PureComponent} from 'react' import {Link} from 'react-router' // Components -import IndexList from 'src/shared/components/index_views/IndexList' +import {IndexList} from 'src/clockface' // Types import {Dashboard} from 'src/types/v2' diff --git a/ui/src/organizations/components/MemberList.tsx b/ui/src/organizations/components/MemberList.tsx index c794a6dcfe..fcc22b9c79 100644 --- a/ui/src/organizations/components/MemberList.tsx +++ b/ui/src/organizations/components/MemberList.tsx @@ -2,7 +2,7 @@ import React, {PureComponent} from 'react' // Components -import IndexList from 'src/shared/components/index_views/IndexList' +import {IndexList} from 'src/clockface' // Types import {Member} from 'src/types/v2' diff --git a/ui/src/organizations/components/OrganizationsIndexContents.tsx b/ui/src/organizations/components/OrganizationsIndexContents.tsx index 63fee29c1c..ccddb8b48d 100644 --- a/ui/src/organizations/components/OrganizationsIndexContents.tsx +++ b/ui/src/organizations/components/OrganizationsIndexContents.tsx @@ -4,9 +4,8 @@ import {Link} from 'react-router' import _ from 'lodash' // Components -import IndexList from 'src/shared/components/index_views/IndexList' import DeleteOrgButton from 'src/organizations/components/DeleteOrgButton' -import {Alignment, ComponentSize, EmptyState} from 'src/clockface' +import {Alignment, ComponentSize, EmptyState, IndexList} from 'src/clockface' // Decorators import {ErrorHandling} from 'src/shared/decorators/errors' diff --git a/ui/src/organizations/components/TaskList.tsx b/ui/src/organizations/components/TaskList.tsx index e4b2b30c0c..a4da23088e 100644 --- a/ui/src/organizations/components/TaskList.tsx +++ b/ui/src/organizations/components/TaskList.tsx @@ -3,7 +3,7 @@ import React, {PureComponent} from 'react' import {Link} from 'react-router' // Components -import IndexList from 'src/shared/components/index_views/IndexList' +import {IndexList} from 'src/clockface' // Types import {Task} from 'src/types/v2' diff --git a/ui/src/tasks/components/TaskRow.tsx b/ui/src/tasks/components/TaskRow.tsx index 4116a90074..331c7acf3f 100644 --- a/ui/src/tasks/components/TaskRow.tsx +++ b/ui/src/tasks/components/TaskRow.tsx @@ -7,8 +7,8 @@ import { ComponentColor, ComponentSize, SlideToggle, + IndexList, } from 'src/clockface' -import IndexList from 'src/shared/components/index_views/IndexList' import {Task, TaskStatus} from 'src/types/v2/tasks' diff --git a/ui/src/tasks/components/TasksList.tsx b/ui/src/tasks/components/TasksList.tsx index 94e66bb8b0..415af704b9 100644 --- a/ui/src/tasks/components/TasksList.tsx +++ b/ui/src/tasks/components/TasksList.tsx @@ -2,7 +2,7 @@ import React, {PureComponent} from 'react' // Components -import IndexList from 'src/shared/components/index_views/IndexList' +import {IndexList} from 'src/clockface' import TaskRow from 'src/tasks/components/TaskRow' // Types