[go: nahoru, domu]

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

feat: CLI collection runner command generation UI flow #4141

Merged
merged 12 commits into from
Jun 27, 2024

Conversation

jamesgeorge007
Copy link
Member
@jamesgeorge007 jamesgeorge007 commented Jun 22, 2024

Description

#4095 adds support for accessing collections/environments from a team workspace straightaway via the CLI by supplying the respective IDs without having to obtain an export. This PR includes UI flow updates to support the same where the CLI command to run a certain collection with the ID can be obtained (optionally including the active environment) via the context menu.

Closes HFE-520.

Changes

  • Fixes the case about dismissing the environment context menu (opened via pressing the More kebab menu) via pressing Escape, which results in an exception.

    image
  • Made editingProperties a required prop for the CollectionsProperties component with null removed from the types since the existing usages guarantee the above prop to be an object.

The below additions apply only to team workspaces.

  • New Run collection action under the context menu option for collections that displays the modal with the respective CLI command to run the collection, optionally including any active environment. It can also be accessed while hovering over a certain collection.

    image

    image

    image
  • The Collection Properties modal now includes a new Details tab that shows the collection ID.

    image
  • There'll be a new properties action under the context menu for environments that opens a new Environment Properties modal which displays the respective environment ID.

    image

    image

@jamesgeorge007 jamesgeorge007 force-pushed the feat/cli-collection-runner-command-gen-ui branch 9 times, most recently from 5f282a8 to 3cf412e Compare June 24, 2024 12:50
@jamesgeorge007 jamesgeorge007 marked this pull request as ready for review June 24, 2024 13:03
@jamesgeorge007 jamesgeorge007 force-pushed the feat/cli-collection-runner-command-gen-ui branch 3 times, most recently from 126ea13 to c9efc07 Compare June 26, 2024 06:35
Copy link
Member
@nivedin nivedin left a comment

Choose a reason for hiding this comment

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

  • for the collection 'Details' tab section in properties can we remove the 'Save' button and conditional render it as 'Copy' since save in that context does not do anything. Similar to Environment Properties modal

image

image

  • we can add a copy button close to the text, similar to the other modals.
    image

@jamesgeorge007 jamesgeorge007 force-pushed the feat/cli-collection-runner-command-gen-ui branch from 17b1e95 to bffb78a Compare June 26, 2024 11:19
@jamesgeorge007
Copy link
Member Author

we can add a copy button close to the text, similar to the other modals.

Discussed separately, the copy to clipboard action next to the generated CLI command made it appear crowded and a primary copy action already exists.

Copy link
Contributor
@amk-dev amk-dev left a comment

Choose a reason for hiding this comment

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

Look into,
#4141 (comment)

rest LGTM.

@jamesgeorge007 jamesgeorge007 force-pushed the feat/cli-collection-runner-command-gen-ui branch from bffb78a to 26260b6 Compare June 27, 2024 13:39
@jamesgeorge007 jamesgeorge007 force-pushed the feat/cli-collection-runner-command-gen-ui branch from 26260b6 to 9e1a454 Compare June 27, 2024 13:43
Copy link
Contributor
@amk-dev amk-dev left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@jamesgeorge007 jamesgeorge007 merged commit 3b70668 into next Jun 27, 2024
@jamesgeorge007 jamesgeorge007 deleted the feat/cli-collection-runner-command-gen-ui branch June 27, 2024 13:48
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.

None yet

3 participants