generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
feature: Edit ManagedControlPlane using the wizard #287
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
Merged
Merged
Changes from 79 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
23c23d7
init
lucasgoral 0c01a1a
Update ImportMembersDialog.tsx
lucasgoral 6b440c0
updates
lucasgoral 72ab035
Update ImportMembersDialog.tsx
lucasgoral d2ce22a
Update ImportMembersDialog.tsx
lucasgoral 166f647
Update ImportMembersDialog.tsx
lucasgoral 4a4dcc3
Update ImportMembersDialog.tsx
lucasgoral 2931141
fixes
lucasgoral 590a1fb
fixes
lucasgoral 9b833dc
Update MemberTable.tsx
lucasgoral db1afff
Merge branch 'main' into import-members
lucasgoral 421477e
Merge branch 'members-table-fix' into import-members
lucasgoral ba36f94
Update ImportMembersDialog.tsx
lucasgoral 74b192d
refactor
lucasgoral 402c410
fix
lucasgoral ccdd7a5
Update ImportMembersDialog.tsx
lucasgoral 78a6fab
Merge branch 'main' into import-members
lucasgoral 0ae01d9
Update ImportMembersDialog.tsx
lucasgoral 3dd5531
Update ImportMembersDialog.tsx
lucasgoral 6044067
fixes
lucasgoral 781b873
fix
lucasgoral f62e443
suggest label and icon
GenosseOtt 9511fdd
simplify members table
GenosseOtt 4100f11
fixes
lucasgoral da3fdec
fix
lucasgoral e4b7dd4
Update MemberTable.tsx
lucasgoral 63f7c3c
Merge branch 'main' into import-members
Lasserich 0a17041
Merge branch 'main' into import-members
andreaskienle b47494d
Revamp Import Members dialog UI and logic
andreaskienle d4d3401
Merge branch 'main' into import-members
andreaskienle 3aa41c9
Implement review feedback
andreaskienle 503af2a
Add toast
andreaskienle e8b65f7
Fix linting
andreaskienle 471e21d
init
lucasgoral ba662db
fixes
lucasgoral 7febbfa
fix
lucasgoral 089f965
fix
lucasgoral 5df9fbb
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 3a0307b
Merge branch 'import-members' into edit-mcp
lucasgoral 14e76b8
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral bba4c9e
Merge branch 'main' into edit-mcp
lucasgoral cad8b2c
Update createManagedControlPlane.ts
lucasgoral c88c362
fixes
lucasgoral 37140a5
fix
lucasgoral 86913d6
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 62ac31e
fixes
lucasgoral 2939393
fixes
lucasgoral 94f247a
fix
lucasgoral 2ecb4a8
fix
lucasgoral a4ddcc2
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 0743aa5
Update EditManagedControlPlaneWizardDataLoader.tsx
lucasgoral 1b3f3de
fixes
lucasgoral a7594fb
fix
lucasgoral 8680b16
Update ComponentsSelectionContainer.tsx
lucasgoral 9600aa1
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 7ecae3e
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 3f11aa4
Merge branch 'main' into edit-mcp
lucasgoral 442575b
fixes
lucasgoral bd20053
fixes
lucasgoral 0fbe5b3
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 7ff45f5
reafctor
lucasgoral 4ad9b4d
fix
lucasgoral d0484aa
fixes
lucasgoral 873b75c
Merge branch 'main' into edit-mcp
lucasgoral d0dfd22
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 2291c56
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral dbce6af
Update ComponentsSelectionContainer.tsx
lucasgoral 3e33016
fix
lucasgoral e9d5c2d
fixes
lucasgoral 6ce7759
fix
lucasgoral 6653985
fix
lucasgoral 70e8bc0
Update CreateManagedControlPlaneWizardContainer.tsx
lucasgoral 9fe2de1
fix
lucasgoral 74a7a94
fix
lucasgoral 04b696d
Merge branch 'main' into edit-mcp
lucasgoral da39fd6
Update YamlDiff.module.css
lucasgoral 8fb3105
Update YamlViewer.tsx
lucasgoral 2469b93
fix
lucasgoral bd623a5
fix
lucasgoral 39e81cc
Update src/components/Wizards/CreateManagedControlPlane/CreateManaged…
lucasgoral 3710cae
Update src/components/Wizards/CreateManagedControlPlane/CreateManaged…
lucasgoral 05dc482
Update src/components/ComponentsSelection/ComponentsSelectionContaine…
lucasgoral ee76d3d
Update ControlPlaneCard.tsx
lucasgoral 9883a24
fix
lucasgoral e58125b
Update ControlPlaneCard.tsx
lucasgoral 49882c1
Update MetadataForm.tsx
lucasgoral cd1dc0d
Update MetadataForm.tsx
lucasgoral File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCardMenu.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| import { Button, Menu, MenuItem } from '@ui5/webcomponents-react'; | ||
|
|
||
| import { Dispatch, FC, SetStateAction, useRef, useState } from 'react'; | ||
| import '@ui5/webcomponents-icons/dist/copy'; | ||
| import '@ui5/webcomponents-icons/dist/accept'; | ||
|
|
||
| import { useTranslation } from 'react-i18next'; | ||
|
|
||
| type ControlPlanesListMenuProps = { | ||
| setDialogDeleteMcpIsOpen: Dispatch<SetStateAction<boolean>>; | ||
| isDeleteMcpButtonDisabled: boolean; | ||
| setIsEditManagedControlPlaneWizardOpen: Dispatch<SetStateAction<boolean>>; | ||
| }; | ||
|
|
||
| export const ControlPlaneCardMenu: FC<ControlPlanesListMenuProps> = ({ | ||
| setDialogDeleteMcpIsOpen, | ||
| isDeleteMcpButtonDisabled, | ||
| setIsEditManagedControlPlaneWizardOpen, | ||
| }) => { | ||
| const buttonRef = useRef(null); | ||
| const [menuIsOpen, setMenuIsOpen] = useState(false); | ||
| const { t } = useTranslation(); | ||
|
|
||
| const handleOpenerClick = () => { | ||
| setMenuIsOpen(true); | ||
| }; | ||
|
|
||
| return ( | ||
| <> | ||
| <Button ref={buttonRef} icon="overflow" icon-end onClick={handleOpenerClick} /> | ||
| <Menu | ||
| open={menuIsOpen} | ||
| opener={buttonRef.current} | ||
| onItemClick={(event) => { | ||
| const action = (event.detail.item as HTMLElement).dataset.action; | ||
| if (action === 'editMcp') { | ||
| setIsEditManagedControlPlaneWizardOpen(true); | ||
| } | ||
| if (action === 'deleteMcp') { | ||
| setDialogDeleteMcpIsOpen(true); | ||
| } | ||
|
|
||
| setMenuIsOpen(false); | ||
| }} | ||
| onClose={() => { | ||
| setMenuIsOpen(false); | ||
| }} | ||
| > | ||
| <MenuItem | ||
| key={'delete'} | ||
| text={t('ControlPlaneCard.deleteMCP')} | ||
| data-action="deleteMcp" | ||
| icon="delete" | ||
| disabled={isDeleteMcpButtonDisabled} | ||
| /> | ||
| <MenuItem | ||
| key={'edit'} | ||
| text={t('ControlPlaneCard.editMCP')} | ||
| data-action="editMcp" | ||
| icon="edit" | ||
| disabled={isDeleteMcpButtonDisabled} | ||
| /> | ||
| </Menu> | ||
| </> | ||
| ); | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.