Skip to content

Commit d87ba9e

Browse files
authored
chore(orchestrator): reorganize components into folders (#1404)
Signed-off-by: Lior Soffer <liorsoffer1@gmail.com>
1 parent 450f289 commit d87ba9e

24 files changed

Lines changed: 49 additions & 28 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
---
4+
5+
### Move components to `ui` folder:
6+
7+
- BaseOrchestratorPage
8+
- InfoDialog
9+
- Selector
10+
- WorkflowInstanceStatusIndicator
11+
- WorkflowStatus
12+
13+
### Move components to `WorkflowInstancePage` folder:
14+
15+
- Paragraph
16+
- WorkflowDescriptionModal
17+
- WorkflowRunDetails
18+
19+
### Move types to `types` folder:
20+
21+
- WorkflowRunDetail

workspaces/orchestrator/plugins/orchestrator/src/components/ExecuteWorkflowPage/ExecuteWorkflowPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import {
4949
workflowInstanceRouteRef,
5050
} from '../../routes';
5151
import { getErrorObject } from '../../utils/ErrorUtils';
52-
import { BaseOrchestratorPage } from '../BaseOrchestratorPage';
52+
import { BaseOrchestratorPage } from '../ui/BaseOrchestratorPage';
5353
import MissingSchemaNotice from './MissingSchemaNotice';
5454
import { getSchemaUpdater } from './schemaUpdater';
5555

workspaces/orchestrator/plugins/orchestrator/src/components/OrchestratorPage/InputSchemaDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { InputSchemaResponseDTO } from '@red-hat-developer-hub/backstage-plugin-
2929
import { orchestratorApiRef } from '../../api/api';
3030
import { FormattedWorkflowOverview } from '../../dataFormatters/WorkflowOverviewFormatter';
3131
import { useIsDarkMode } from '../../utils/isDarkMode';
32-
import { InfoDialog } from '../InfoDialog';
32+
import { InfoDialog } from '../ui/InfoDialog';
3333
import { JsonCodeBlock } from '../ui/JsonCodeBlock';
3434

3535
const InputSchemaDialogContent = ({

workspaces/orchestrator/plugins/orchestrator/src/components/OrchestratorPage/OrchestratorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { makeStyles } from 'tss-react/mui';
2121

2222
import { workflowInstancesRouteRef } from '../../routes';
2323
import { useIsDarkMode } from '../../utils/isDarkMode';
24-
import { BaseOrchestratorPage } from '../BaseOrchestratorPage';
24+
import { BaseOrchestratorPage } from '../ui/BaseOrchestratorPage';
2525
import { WorkflowRunsTabContent } from './WorkflowRunsTabContent';
2626
import { WorkflowsTabContent } from './WorkflowsTabContent';
2727

workspaces/orchestrator/plugins/orchestrator/src/components/OrchestratorPage/WorkflowRunsTabContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ import {
5050
workflowInstanceRouteRef,
5151
workflowRouteRef,
5252
} from '../../routes';
53-
import { Selector } from '../Selector';
53+
import { WorkflowRunDetail } from '../types/WorkflowRunDetail';
5454
import OverrideBackstageTable from '../ui/OverrideBackstageTable';
55+
import { Selector } from '../ui/Selector';
56+
import { WorkflowInstanceStatusIndicator } from '../ui/WorkflowInstanceStatusIndicator';
5557
import { mapProcessInstanceToDetails } from '../WorkflowInstancePage/WorkflowInstancePageContent';
56-
import { WorkflowInstanceStatusIndicator } from '../WorkflowInstanceStatusIndicator';
57-
import { WorkflowRunDetail } from '../WorkflowRunDetail';
5858

5959
const makeSelectItemsFromProcessInstanceValues = (): SelectItem[] => [
6060
{ label: 'Running', value: ProcessInstanceStatusDTO.Active },

workspaces/orchestrator/plugins/orchestrator/src/components/OrchestratorPage/WorkflowsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import {
4949
workflowRunsRouteRef,
5050
} from '../../routes';
5151
import OverrideBackstageTable from '../ui/OverrideBackstageTable';
52-
import { WorkflowInstanceStatusIndicator } from '../WorkflowInstanceStatusIndicator';
53-
import { WorkflowStatus } from '../WorkflowStatus';
52+
import { WorkflowInstanceStatusIndicator } from '../ui/WorkflowInstanceStatusIndicator';
53+
import { WorkflowStatus } from '../ui/WorkflowStatus';
5454
import { InputSchemaDialog } from './InputSchemaDialog';
5555

5656
export interface WorkflowsTableProps {

workspaces/orchestrator/plugins/orchestrator/src/components/Paragraph.tsx renamed to workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/Paragraph.tsx

File renamed without changes.

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/VariablesDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from '@red-hat-developer-hub/backstage-plugin-orchestrator-common';
2525

2626
import { useIsDarkMode } from '../../utils/isDarkMode';
27-
import { InfoDialog } from '../InfoDialog';
27+
import { InfoDialog } from '../ui/InfoDialog';
2828
import { JsonCodeBlock } from '../ui/JsonCodeBlock';
2929

3030
export const VariablesDialog = ({

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowDescriptionModal.tsx renamed to workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowDescriptionModal.tsx

File renamed without changes.

workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInstancePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ import {
7373
import { deepSearchObject } from '../../utils/deepSearchObject';
7474
import { isNonNullable } from '../../utils/TypeGuards';
7575
import { buildUrl } from '../../utils/UrlUtils';
76-
import { BaseOrchestratorPage } from '../BaseOrchestratorPage';
77-
import { InfoDialog } from '../InfoDialog';
76+
import { BaseOrchestratorPage } from '../ui/BaseOrchestratorPage';
77+
import { InfoDialog } from '../ui/InfoDialog';
7878
import { WorkflowInstancePageContent } from './WorkflowInstancePageContent';
7979

8080
const useStyles = makeStyles()(theme => ({

0 commit comments

Comments
 (0)