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

fix: hide abort run when now running tests #902

Merged
merged 7 commits into from
Nov 16, 2023

Conversation

mortada-codes
Copy link
Contributor

This PR...

Changes

  • 1 We should safely remove “Abort all executions” if there is NO RUNNING execution. (make sure the it IS visible if there IS an execution running) - ideally this would be covered with an E2E test

  • 2 Weird breaking on resize. The select boxes + buttons should be in the same line. The text is currently just cut… We typically use “ellipsis” to have the typo cut by “…” and display the whole title on hover

Fixes

How to test it

screenshots

Checklist

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

@vercel
Copy link

vercel bot commented Oct 11, 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 Nov 16, 2023 8:38am

@rangoo94
Copy link
Member

Could you rebase on top of develop?

<PageTitle>
{title} {pageTitleAddon}
</PageTitle>
<Tooltip title={title}>
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if a tooltip is a proper option. It may look strange, especially for short titles

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, me too. should we enable/disable based on the length of the title?

Copy link
Member

Choose a reason for hiding this comment

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

In the best situation we should show it only when it's truncated. Quick googling shows that most likely it's possible, so it would be great if you could try it: https://stackoverflow.com/a/63214232/2922986

const entityOptionsMenu = useMemo(
() =>
[
{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.

EntityDetailsHeader is not only used for tests, so the prop should be called onEdit and this label should be based on entity type, not static Edit Test

@mortada-codes mortada-codes merged commit 4cee851 into develop Nov 16, 2023
9 checks passed
@mortada-codes mortada-codes deleted the mm/fix/abortrunbutton branch November 16, 2023 08:39
@github-actions github-actions bot mentioned this pull request Nov 20, 2023
4 tasks
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.

3 participants