-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: IATR-M0 Page Header (#24722) #25360
Changes from 1 commit
5e54ce3
8c82c45
48790b5
59a78e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -30,7 +30,17 @@ | |||||
titlePart.type === 'LAST-1' ? 'shrink-0 whitespace-pre' : | ||||||
titlePart.type === 'LAST-0' ? 'pl-2.5 truncate' : 'px-2.5 truncate'" | ||||||
> | ||||||
{{ titlePart.title }} | ||||||
<template v-if="titlePart.title === '...'"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Check with type instead of title |
||||||
<Tooltip> | ||||||
<span>...</span> | ||||||
<template #popper> | ||||||
<span data-cy="tooltip-content">{{ titlePart.originalTitle }}</span> | ||||||
</template> | ||||||
</Tooltip> | ||||||
</template> | ||||||
<template v-else> | ||||||
{{ titlePart.title }} | ||||||
</template> | ||||||
</span> | ||||||
</template> | ||||||
<div | ||||||
|
@@ -69,6 +79,7 @@ import GroupedDebugFailedTestVue from './GroupedDebugFailedTest.vue' | |||||
import { computed } from 'vue' | ||||||
import type { TestResults } from './DebugSpec.vue' | ||||||
import type { StatsMetadata_GroupsFragment } from '../generated/graphql' | ||||||
import Tooltip from '@packages/frontend-shared/src/components/Tooltip.vue' | ||||||
|
||||||
const props = defineProps<{ | ||||||
failedTestsResult: TestResults[] | ||||||
|
@@ -84,6 +95,7 @@ const failedTestData = computed(() => { | |||||
type MappedTitlePart = { | ||||||
title: string | ||||||
type: Parts | ||||||
originalTitle?: string | ||||||
} | ||||||
let isFirstMiddleAdded: boolean = false | ||||||
const mappedTitleParts: MappedTitlePart[] = titleParts.map<MappedTitlePart | MappedTitlePart[]>((ele, index, parts) => { | ||||||
|
@@ -121,6 +133,7 @@ const failedTestData = computed(() => { | |||||
{ | ||||||
title: '...', | ||||||
type: 'ELLIPSIS', | ||||||
originalTitle: ele, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will need to gather up all the "MIDDLE" parts to construct the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense, thanks! I think I was missing the underlying concept here, that it's really combining the parts 👍 |
||||||
}, | ||||||
{ | ||||||
title: ele, | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should contain everything that was hidden by the ellipsis separated by
>