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: add Edit Test link to dropdown #826

Closed
wants to merge 1 commit into from

Conversation

haneabogdan
Copy link
Contributor

This PR...

Changes

Fixes

How to test it

screenshots

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@vercel
Copy link

vercel bot commented Aug 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
testkube-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2023 2:22pm

Copy link
Member

@rangoo94 rangoo94 left a comment

Choose a reason for hiding this comment

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

Is it actually needed? I recall that there was discussion about having an option to edit test, but for a single run

Comment on lines +127 to +129
const onEditTest = () => {
onSettingsTabChange('test');
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const onEditTest = () => {
onSettingsTabChange('test');
};
const onEditTest = useLastCallback(() => {
onSettingsTabChange('test');
});

or

Suggested change
const onEditTest = () => {
onSettingsTabChange('test');
};
const onEditTest = useCallback(() => {
onSettingsTabChange('test');
}, [onSettingsTabChange]);

@@ -154,7 +158,10 @@ const EntityDetailsContent: React.FC<EntityDetailsContentProps> = ({
/>,
<DotsDropdown
key="entity-options"
items={[{key: 1, label: <span onClick={onAbortAllExecutionsClick}>Abort all executions</span>}]}
items={[
{key: 1, label: <span onClick={onEditTest}>Edit Test</span>},
Copy link
Member

Choose a reason for hiding this comment

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

Is it meant to be displayed for both Tests and Test Suites?

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