Skip to content

Commit 4c0cf43

Browse files
authored
Merge pull request #16 from sharadregoti/v0.5.2
V0.5.2
2 parents fd566de + f266bf2 commit 4c0cf43

File tree

7 files changed

+38
-10
lines changed

7 files changed

+38
-10
lines changed

.github/workflows/version-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
git checkout ${{ steps.current-branch.outputs.branch}}
6565
git checkout -b "temp-branch"
6666
TIMESTAMP=$(date +%s)
67-
git tag -a "v0.5.1" -m "dummy tag"
67+
git tag -a "v0.5.2" -m "dummy tag"
6868
echo "TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
6969
7070
echo "Running script..."

cmd/devops/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/spf13/viper"
2525
)
2626

27-
const VERSION = "0.5.1"
27+
const VERSION = "0.5.2"
2828

2929
// @title NEW Devops API
3030
// @version v0.1.0

devops-frontend/src/components/recentlyUsed/RecentlyUsed.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const RecentlyUsed: React.FC<RecentlyUsedPropsTypes> = ({ title, recentlyUsedIte
2525
// display: "block",
2626
};
2727

28-
const [selectedTags, setSelectedTags] = useState<string[]>(['Books']);
28+
const [selectedTags, setSelectedTags] = useState<string[]>([]);
2929

3030
const handleChange = (tag: string, checked: boolean) => {
3131
const nextSelectedTags = checked

devops-frontend/src/components/resourceTable/ResourceTable.css

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
background-color: lightskyblue;
33
}
44

5+
/* Change background color on hover */
6+
tr:hover {
7+
opacity: 0.5;
8+
}
9+
.ant-table-tbody>tr.ant-table-row:hover>td {
10+
background: none !important;
11+
}
12+
513
.darkorange {
614
background-color: darkorange;
715
}

devops-frontend/src/components/resourceTable/ResourceTable.tsx

+24-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DeleteOutlined, DownOutlined, EditOutlined, FileAddOutlined, MoreOutlined, ReadOutlined } from '@ant-design/icons';
22
import type { TableColumnsType } from 'antd';
3-
import { Badge, Col, Dropdown, Menu, Row, Space, Table, Typography } from 'antd';
3+
import { Badge, Col, Dropdown, Menu, Row, Space, Table, Tooltip, Typography } from 'antd';
44
import React, { useEffect, useState } from 'react';
55
import { ModelFrontendEvent, ProtoAction } from "../../generated-sources/openapi";
66
import './ResourceTable.css';
@@ -164,7 +164,25 @@ const ResourceTable: React.FC<ResourceTablePropsType> = ({ onEvent, handleCloseG
164164
title,
165165
dataIndex: index,
166166
key: index,
167-
}));
167+
defaultSortOrder: 'descend',
168+
sorter: (a, b) => a[index].length - b[index].length,
169+
// filters: () => {
170+
// return []
171+
// },
172+
// filterMode: 'tree',
173+
// filterSearch: true,
174+
// onFilter: (value: string, record) => record[index].startsWith(value),
175+
ellipsis: {
176+
showTitle: false,
177+
},
178+
render: (address) => (
179+
<Tooltip placement="topLeft" title={address}>
180+
{address}
181+
</Tooltip>
182+
),
183+
}
184+
185+
));
168186

169187
if (wsTableName !== message.name) {
170188
count = 0;
@@ -284,7 +302,7 @@ const ResourceTable: React.FC<ResourceTablePropsType> = ({ onEvent, handleCloseG
284302
/>
285303
</Col>
286304

287-
{wsTableName === defaultIsolatorResourceType &&
305+
{itableName === defaultIsolatorResourceType &&
288306
<Col>
289307
<FileAddOutlined
290308
style={{ color: "gray" }}
@@ -422,7 +440,7 @@ const ResourceTable: React.FC<ResourceTablePropsType> = ({ onEvent, handleCloseG
422440
<Table
423441
title={() => (
424442
<center>
425-
<Typography.Title style={{ margin: "8px" }} level={5}>
443+
<Typography.Title style={{ padding: 0, margin: 0 }} level={5}>
426444
{itableName.charAt(0).toUpperCase() + itableName.slice(1)} ({idataRows.length})
427445
</Typography.Title>
428446
</center>
@@ -451,6 +469,8 @@ const ResourceTable: React.FC<ResourceTablePropsType> = ({ onEvent, handleCloseG
451469
};
452470
}}
453471
// scroll={{ y: 1000 }}
472+
scroll={{ x: 'max-content' }}
473+
// tableLayout='auto'
454474
pagination={false}
455475
// pagination={{
456476
// pageSize: 100,

devops-frontend/src/pages/Home.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -900,14 +900,14 @@ const Home: React.FC = () => {
900900
}, {})}
901901
/>
902902
</Col> */}
903-
<Col style={{ "margin": "8px" }}>
903+
{/* <Col style={{ "margin": "8px" }}>
904904
<InfoCard
905905
title='Specific Actions'
906906
content={currentResourceSpecificActions?.reduce((acc, curVal) => {
907907
return { ...acc, [curVal.key_binding]: curVal.name }
908908
}, {})}
909909
/>
910-
</Col>
910+
</Col> */}
911911
<Col style={{ "margin": "8px" }}>
912912
<RecentlyUsed
913913
title='Recently Used'

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This project is inspired from the following softwares terraform, K9s, Lens.
1818
## Installation
1919
**Linux & Mac**
2020

21-
`curl https://storage.googleapis.com/devops-cli-artifacts/releases/devops/0.5.1/install.sh | bash`
21+
`curl https://storage.googleapis.com/devops-cli-artifacts/releases/devops/0.5.2/install.sh | bash`
2222

2323
## Usage
2424

0 commit comments

Comments
 (0)