Skip to content

Commit

Permalink
Merge branch 'dev' into feature/518-public-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonesy committed May 18, 2023
2 parents fcf5cea + e011b1c commit 296c7e1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ jobs:
- sh
- -c
- 'state=\$(curl -XGET -m 2 --silent -f -H \"Accept: application/json\" http://localhost:3000/health | jq -r \".status | ascii_downcase\"); if [ ! \"\$state\" == \"ready\" ]; then exit 1; fi'
timeoutSeconds: 3
periodSeconds: 10
" > values.yaml
helm repo add bcgov http://bcgov.github.io/helm-charts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const AuthorizationProfileDialog: React.FC<AuthorizationProfileDialogProps> = ({
},
[data, handleCreateProfile, handleSaveProfile, id]
);
const owner = id ? data?.owner : data?.owner ?? user;

React.useEffect(() => {
setName(data?.name);
Expand Down Expand Up @@ -305,7 +306,7 @@ const AuthorizationProfileDialog: React.FC<AuthorizationProfileDialogProps> = ({
</Tab>
<Box flex={1} />
<Box p="relative" mt={-10} mb={2}>
<UserProfile data={user} />
<UserProfile heading="Owner" data={owner} />
</Box>
</TabList>
</Tabs>
Expand Down
3 changes: 2 additions & 1 deletion src/nextapp/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface Column extends TableColumnHeaderProps {
name: React.ReactNode;
key?: string;
sortable?: boolean;
sortKey?: string;
}

interface ApsTableProps extends TableProps {
Expand Down Expand Up @@ -109,7 +110,7 @@ const ApsTable: React.FC<ApsTableProps> = ({
}
onClick={
sort && tableProps.key
? handleSort(tableProps.key)
? handleSort(tableProps.sortKey ?? tableProps.key)
: undefined
}
_hover={{
Expand Down
4 changes: 4 additions & 0 deletions src/nextapp/components/user-profile/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const UserProfile: React.FC<UserProfileProps> = ({
...props
}) => {
const testId = props['data-testid'] ?? 'user-profile';
if (!data) {
return null;
}

return (
<Box {...props}>
<Heading size="sm" mb={3.5}>
Expand Down
2 changes: 1 addition & 1 deletion src/nextapp/pages/manager/consumers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const ConsumersPage: React.FC<
key: 'tags',
sortable: false,
},
{ name: 'Updated', key: 'sortDate' },
{ name: 'Updated', key: 'sortDate', sortKey: 'updatedAt' },
]}
data={consumers}
data-testid="all-consumer-control-tbl"
Expand Down

0 comments on commit 296c7e1

Please sign in to comment.