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

✨ Add actions kebab to archetypes table with stub dropdown items #1328

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

mturley
Copy link
Collaborator

@mturley mturley commented Sep 1, 2023

Part of #1264.

Uses the ActionsColumn component pattern introduced in #1314 to add a kebab menu for actions shown in this mockup. All 3 actions are currently stubs to unblock @sjd78 from integrating his Edit functionality. PR to implement Duplicate and Delete will be next.

Follows the pattern found in this PF example for "danger" menu items (red text below a separator): https://www.patternfly.org/components/menus/menu#danger-menu-item

Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0a9dded) 42.58% compared to head (387e0eb) 42.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1328   +/-   ##
=======================================
  Coverage   42.58%   42.58%           
=======================================
  Files         136      136           
  Lines        4220     4220           
  Branches     1000     1000           
=======================================
  Hits         1797     1797           
  Misses       2411     2411           
  Partials       12       12           
Flag Coverage Δ
client 42.58% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

That ActionsColumn is pretty sweet looking.

@mturley mturley merged commit 9287edd into konveyor:main Sep 5, 2023
6 checks passed
@mturley mturley deleted the archetypes-kebab-stub branch September 5, 2023 20:16
mturley added a commit that referenced this pull request Sep 7, 2023
Part of #1264, followup to #1328.

![Screenshot 2023-09-06 at 4 43 16
PM](https://github.com/konveyor/tackle2-ui/assets/811963/f3dde2f4-22ff-4234-b591-dbfa8025cb8a)

Note that the change to the MSW mock is because that line was a typo
that resulted in a 404 when deleting an archetype, the delete
questionnaire endpoint is already mocked in its own file.

---------

Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants