Skip to content

Commit

Permalink
fix: left nav doesn't accurately update on workflow version page (#718)
Browse files Browse the repository at this point in the history
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: 4nalog <[email protected]>
  • Loading branch information
ursucarina authored and 4nalog committed Mar 30, 2023
1 parent c36e80a commit 997ce2c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/console/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flyteorg/console",
"version": "0.0.12",
"version": "0.0.13",
"description": "Flyteconsole main app module",
"main": "./dist/index.js",
"module": "./lib/index.js",
Expand Down
9 changes: 4 additions & 5 deletions packages/console/src/components/Tables/PaginatedDataList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const PaginatedDataListHeader = <C,>(
className={column.className}
key={column.key}
align="left"
padding="default"
padding="normal"
sortDirection={orderBy === column.key ? order : false}
>
<TableSortLabel
Expand Down Expand Up @@ -154,13 +154,12 @@ const PaginatedDataList = <T,>({
totalRows,
showRadioButton,
fillEmptyRows = true,
noDataString,
}: PropsWithChildren<PaginatedDataListProps<T>>) => {
const classes = useStyles();
const [order, setOrder] = React.useState<Order>('asc');
const [orderBy, setOrderBy] = React.useState('calories');
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(5);
const [page] = React.useState(0);
const [rowsPerPage] = React.useState(5);

const handleRequestSort = (
event: React.MouseEvent<unknown>,
Expand Down Expand Up @@ -198,7 +197,7 @@ const PaginatedDataList = <T,>({
showRadioButton={showRadioButton}
/>
<TableBody>
{data.map((row, index) => {
{data.map((row, _index) => {
return rowRenderer(row);
})}
{fillEmptyRows && !showRadioButton && emptyRows > 0 && (
Expand Down
2 changes: 1 addition & 1 deletion packages/console/src/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class Routes {
static WorkflowDetails = {
makeUrl: (project: string, domain: string, workflowName: string) =>
makeProjectDomainBoundPath(project, domain, `/workflows/${workflowName}`),
path: `${projectDomainBasePath}/workflows/:workflowName`,
path: `${projectDomainBasePath}/(workflows|workflow)/:workflowName`,
};

// LaunchPlans
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@flyteorg/common": "^0.0.3",
"@flyteorg/console": "^0.0.12",
"@flyteorg/console": "^0.0.13",
"long": "^4.0.0",
"protobufjs": "~6.11.3",
"react-ga4": "^1.4.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ __metadata:
resolution: "@flyteconsole/client-app@workspace:website"
dependencies:
"@flyteorg/common": ^0.0.3
"@flyteorg/console": ^0.0.12
"@flyteorg/console": ^0.0.13
"@types/long": ^3.0.32
long: ^4.0.0
protobufjs: ~6.11.3
Expand Down Expand Up @@ -2034,7 +2034,7 @@ __metadata:
languageName: unknown
linkType: soft

"@flyteorg/console@^0.0.12, @flyteorg/console@workspace:packages/console":
"@flyteorg/console@^0.0.13, @flyteorg/console@workspace:packages/console":
version: 0.0.0-use.local
resolution: "@flyteorg/console@workspace:packages/console"
dependencies:
Expand Down

0 comments on commit 997ce2c

Please sign in to comment.