-
Notifications
You must be signed in to change notification settings - Fork 25
DEVPROD-1973: Update public keys table #2174
Conversation
1 flaky test on run #14482 ↗︎
Details:
Review all test suite changes for PR #2174 ↗︎ |
data: { myPublicKeys: [...data.updatePublicKey] }, | ||
}); | ||
}, | ||
refetchQueries: ["MyPublicKeys"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D
<Button | ||
size="small" | ||
data-cy="edit-btn" | ||
leftGlyph={<Icon glyph="Edit" />} | ||
onClick={() => { | ||
setEditModalProps({ | ||
initialPublicKey: { key, name }, | ||
visible: true, | ||
}); | ||
}} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly could look nice if we turned these into IconButton
s? its just a suggestion :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alas it looked a bit weird :( we use this action button pattern elsewhere too so I think the consistency is good!
cell: ({ row }) => { | ||
const { key, name } = row.original; | ||
return ( | ||
<ButtonContainer className="w-[100px]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just double checking that you mean to keep this className here
|
||
return ( | ||
<BaseTable | ||
data-cy="hosts-table" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-cy
should probably be updated!
@@ -131,25 +25,16 @@ export const PublicKeysTab: React.FC = () => { | |||
}); | |||
}} | |||
> | |||
Add New Key | |||
Add key | |||
</PlusButton> | |||
<TableContainer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could possibly remove the TableContainer here, the space between the button and table seems like a lot
Merging since the flake failure is also present on |
DEVPROD-1973
Description
MyPublicKeys
query insteadScreenshots
Testing
Evergreen PR