New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(key-management-service): add kms dashboard #11664
Conversation
1c56612
to
415a228
Compare
415a228
to
cc4333f
Compare
cc4333f
to
a1ffd47
Compare
a1ffd47
to
403c833
Compare
eae9871
to
236ad23
Compare
ce9e006
to
f25d5ee
Compare
packages/manager/apps/key-management-service/src/api/services/put.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/key-management-service/src/api/services/put.ts
Outdated
Show resolved
Hide resolved
return <DataGridTextCell>{props.iam.displayName}</DataGridTextCell>; | ||
const navigate = useNavigate(); | ||
return ( | ||
<div> |
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 remove this div
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.
We can't, alex gonna talk about it on react sharing but if we remove it, it makes the browser crash. Probably some issue with ODS Link and the onClick
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.
we have to find why we need to wrap with a div ? Nicolas has the same issue
packages/manager/apps/key-management-service/src/components/Modal/EditNameModal.tsx
Outdated
Show resolved
Hide resolved
import { OsdsModal } from '@ovhcloud/ods-components/react'; | ||
import React, { useRef } from 'react'; | ||
|
||
const Modal: React.FC<React.PropsWithChildren & { |
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.
Maybe you could move this component to manager-components cause it's a duplicate packages/manager/apps/pci-rancher/src/components/Modal/Modal.tsx
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.
We need to create a task or plan it in refinement.
I think there is already work ongoing for edit and deletion.
Gonna refactor when it's up i'll just keep it this way for now and refactor when available.
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.
already in progress in another PR 👍
packages/manager/apps/key-management-service/src/pages/dashboard/tabs/GeneralInformations.tsx
Outdated
Show resolved
Hide resolved
onEditName: (okms: OKMS) => void; | ||
} | ||
|
||
const EditNameModal = ({ okms, toggleModal, onEditName }: DeleteModalProps) => { |
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.
I think it will be better if you only pass the name here instead of full okms object so you can compute your onEditName in parent to have a reusable Modal :)
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.
It will be rework with a generic component 👍
9a4c108
to
d5108ca
Compare
ref: MANAGER-14018 Signed-off-by: Vincent BONMARCHAND <vincent.bonmarchand.ext@corp.ovh.com>
ref: MANAGER-13826 Signed-off-by: Vincent BONMARCHAND <vincent.bonmarchand.ext@corp.ovh.com>
ref: MANAGER-12567 Signed-off-by: Vincent BONMARCHAND <vincent.bonmarchand.ext@corp.ovh.com>
7fa7bb6
to
a972410
Compare
a972410
to
e78b768
Compare
packages/manager/apps/key-management-service/src/api/services/useUpdateOkmsName.ts
Outdated
Show resolved
Hide resolved
ref: MANAGER-12567 Signed-off-by: Alex Boungnaseng <alex.boungnaseng.ext@corp.ovh.com> Signed-off-by: David Arsène <david.arsene.ext@ovhcloud.com>
packages/manager/apps/key-management-service/src/api/hooks/useUpdateOkmsName.ts
Outdated
Show resolved
Hide resolved
ref: MANAGER-13567 Signed-off-by: David Arsène <david.arsene.ext@ovhcloud.com>
Quality Gate passedIssues Measures |
ref: MANAGER-13567 Signed-off-by: Vincent BONMARCHAND <vincent.bonmarchand.ext@corp.ovh.com>
ref: MANAGER-13567
Description
As a customer, I want to view KMS details, and make actions on it (edit information and encryption methods)
Related