Skip to content
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

[UI] Add edit option to resources that have create template in annotation #2846

Merged
merged 21 commits into from
Oct 12, 2022

Conversation

AlinaGoaga
Copy link
Contributor

@AlinaGoaga AlinaGoaga commented Oct 10, 2022

Part of https://app.zenhub.com/workspaces/team-pesto-6127680175876a0014fc5657/issues/weaveworks/weave-gitops-enterprise/1591

Added the CustomActions Component in order to add Edit to the standard Sync and Suspend on the Resource Details page in EE.

The Edit is solely used by resources created by the user via templates so it will only be visible in EE.

@AlinaGoaga AlinaGoaga marked this pull request as ready for review October 11, 2022 15:53
@AlinaGoaga AlinaGoaga requested a review from a team October 11, 2022 15:54
Copy link
Contributor

@joshri joshri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works in oss while I'm passing down no actions - nothing is showing up and it's not crashing! Hooray!

One small thing that confused me when I was reading through the changes, but that's all!

ui/components/CustomActions.tsx Outdated Show resolved Hide resolved
ui/components/CustomActions.tsx Outdated Show resolved Hide resolved
ui/components/CustomActions.tsx Outdated Show resolved Hide resolved
@AlinaGoaga
Copy link
Contributor Author

Cheers Josh, fair points :)! I've moved the Edit Button to EE and added types for actions (we can extend at a later date if necessary)

foot pushed a commit that referenced this pull request Oct 14, 2022
…tion (#2846)

* Add edit option to resources that have create template in anno - WIP

* Move edit option to resource details page

* Refactor edit in details

* Extract custom actions component

* Remove edit from core details table

* Remove edit from core details table - updated

* Fix some errors

* Add custom actions to the details page

* Add custom actions to the details page - updated

* Add actions type and move edit button

* Add actions type and move edit button - updated

* Lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants