Skip to content

Commit 788179a

Browse files
committed
DS migration - StackedList
1 parent 30f2b54 commit 788179a

File tree

42 files changed

+814
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+814
-344
lines changed

apps/design-system/src/subjects/views/connectors/mock-connectors-data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"connector": {
44
"name": "connector-1",
55
"identifier": "connector1",
6-
"description": "",
6+
"description": "asdasdasd",
77
"accountIdentifier": "account123",
88
"orgIdentifier": "org1",
99
"projectIdentifier": "project1",
@@ -74,9 +74,9 @@
7474
},
7575
{
7676
"connector": {
77-
"name": "connector-2",
77+
"name": "connector-2 with long long text, connector-2 with long long text",
7878
"identifier": "connector2",
79-
"description": "",
79+
"description": "desc 2 with long long text with long long text with long long text with long long text",
8080
"accountIdentifier": "account123",
8181
"orgIdentifier": "org1",
8282
"projectIdentifier": "project1",

apps/design-system/src/subjects/views/data-table-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const DataTableDemo: React.FC = () => {
156156
}
157157

158158
return (
159-
<SandboxLayout.Main className="flex justify-center items-center">
159+
<SandboxLayout.Main className="flex items-center justify-center">
160160
<SandboxLayout.Content className="w-[900px] justify-center">
161161
<DataTable<User>
162162
columns={columns}

apps/design-system/src/subjects/views/draggable-cards-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const DraggableCardsDemo = () => {
1717
{
1818
id: '1',
1919
title: (
20-
<div className="w-full flex items-center justify-between">
20+
<div className="flex w-full items-center justify-between">
2121
<span className="flex items-center">
2222
<IconV2 name="ai" size="md" />
2323
<span className="ml-2">First Card</span>

apps/design-system/src/subjects/views/execution-list/execution-list.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
import { FC } from 'react'
2-
import { Link } from 'react-router-dom'
32

43
import { noop } from '@utils/viewUtils'
54

6-
import { ExecutionListPage, RepoSummaryViewProps, TLinkComponent } from '@harnessio/ui/views'
5+
import { ExecutionListPage, RepoSummaryViewProps } from '@harnessio/ui/views'
76

87
import { useExecutionListStore } from './execution-list.store'
98

10-
const LinkComponent: TLinkComponent = ({ to, children }) => <Link to={to}>{children}</Link>
11-
129
const ExecutionListWrapper: FC<Partial<RepoSummaryViewProps>> = () => {
1310
return (
1411
<ExecutionListPage
1512
useExecutionListStore={useExecutionListStore}
1613
setSearchQuery={noop}
1714
isLoading={false}
1815
isError={false}
19-
LinkComponent={LinkComponent}
2016
handleExecutePipeline={noop}
2117
/>
2218
)

apps/design-system/src/subjects/views/pipeline-list/pipeline-list.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { FC, useState } from 'react'
2-
import { Link } from 'react-router-dom'
32

43
import { noop } from '@utils/viewUtils'
54

6-
import { CreatePipelineDialog, PipelineListPage, RepoSummaryViewProps, TLinkComponent } from '@harnessio/ui/views'
5+
import { CreatePipelineDialog, PipelineListPage, RepoSummaryViewProps } from '@harnessio/ui/views'
76

87
import { usePipelineListStore } from './pipeline-list.store'
98

10-
const LinkComponent: TLinkComponent = ({ to, children }) => <Link to={to}>{children}</Link>
11-
129
const PipelineListWrapper: FC<Partial<RepoSummaryViewProps>> = () => {
1310
const [createPipelineOpen, setCreatePipelineOpen] = useState(false)
1411
return (
@@ -19,7 +16,6 @@ const PipelineListWrapper: FC<Partial<RepoSummaryViewProps>> = () => {
1916
isLoading={false}
2017
isError={false}
2118
handleCreatePipeline={() => setCreatePipelineOpen(true)}
22-
LinkComponent={LinkComponent}
2319
/>
2420
<CreatePipelineDialog
2521
isOpen={createPipelineOpen}

apps/design-system/src/subjects/views/repo-files/components/repo-file-content-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const RepoFileContentViewer = ({ isMarkdown = false }: { isMarkdown?: boo
5050
isSubmitting={false}
5151
/>
5252
<Tabs.Root
53-
className="flex flex-col h-full"
53+
className="flex h-full flex-col"
5454
value={view as string}
5555
onValueChange={val => onChangeView(val as ViewTypeValue)}
5656
>

apps/design-system/src/subjects/views/table-v2-demo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const users: User[] = [
5757

5858
export const TableV2Demo: React.FC = () => {
5959
return (
60-
<SandboxLayout.Main className="justify-center items-center">
61-
<SandboxLayout.Content className="max-w-[600px] justify-center items-center">
60+
<SandboxLayout.Main className="items-center justify-center">
61+
<SandboxLayout.Content className="max-w-[600px] items-center justify-center">
6262
<Table.Root size="compact">
6363
<Table.Header>
6464
<Table.Row>

apps/gitness/src/components-v2/LinkComponent.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/gitness/src/pages-v2/repo/repo-execution-list.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ListExecutionsOkResponse, TypesExecution, useListExecutionsQuery } from
77
import { IconV2 } from '@harnessio/ui/components'
88
import { ExecutionListPage, IExecution } from '@harnessio/ui/views'
99

10-
import { LinkComponent } from '../../components-v2/LinkComponent'
1110
import { useGetRepoRef } from '../../framework/hooks/useGetRepoPath'
1211
import { parseAsInteger, useQueryState } from '../../framework/hooks/useQueryState'
1312
import { PathParams } from '../../RouteDefinitions'
@@ -63,7 +62,6 @@ export default function RepoExecutionListPage() {
6362
searchQuery={query}
6463
setSearchQuery={setQuery}
6564
handleExecutePipeline={noop}
66-
LinkComponent={LinkComponent}
6765
/>
6866
{/* TODO */}
6967
{/* <RunPipelineDialog

0 commit comments

Comments
 (0)