-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Blocked Reason, Link and Link Namespace to Callback UI (#2476)
* Add blocked reason and links * Add blocked reason to callback, add link namespace with a link to namespace * Remove unused classes, consistent padding
- Loading branch information
1 parent
125a99f
commit 22b37ea
Showing
10 changed files
with
90 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
<script lang="ts"> | ||
import Link from '$lib/holocene/link.svelte'; | ||
import { translate } from '$lib/i18n/translate'; | ||
import type { EventLink } from '$lib/types/events'; | ||
import { routeForEventHistory } from '$lib/utilities/route-for'; | ||
export let link: EventLink; | ||
$: href = routeForEventHistory({ | ||
export let value = link.workflowEvent.workflowId; | ||
export let label = translate('nexus.link'); | ||
export let href = routeForEventHistory({ | ||
namespace: link.workflowEvent.namespace, | ||
workflow: link.workflowEvent.workflowId, | ||
run: link.workflowEvent.runId, | ||
}); | ||
</script> | ||
|
||
<div | ||
class="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 xl:max-w-xl {$$props.class}" | ||
class="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 {$$props.class}" | ||
> | ||
<p class="max-w-fit whitespace-nowrap text-right text-xs">Link</p> | ||
<Link {href}> | ||
{link.workflowEvent.workflowId} | ||
</Link> | ||
<p class="max-w-fit whitespace-nowrap text-right text-sm"> | ||
{label} | ||
</p> | ||
<div class="overflow-hidden {$$props.linkClass}"> | ||
<Link {href}> | ||
{value} | ||
</Link> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
<script lang="ts"> | ||
import Link from '$lib/holocene/link.svelte'; | ||
import type { EventLink } from '$lib/types/events'; | ||
import { routeForEventHistory } from '$lib/utilities/route-for'; | ||
import { translate } from '$lib/i18n/translate'; | ||
import type { EventLink as ELink } from '$lib/types/events'; | ||
import { routeForNamespace } from '$lib/utilities/route-for'; | ||
export let links: EventLink[] = []; | ||
import EventLink from './event-link.svelte'; | ||
export let links: ELink[] = []; | ||
</script> | ||
|
||
{#each links as link} | ||
{#if link?.workflowEvent} | ||
{@const href = routeForEventHistory({ | ||
namespace: link.workflowEvent.namespace, | ||
workflow: link.workflowEvent.workflowId, | ||
run: link.workflowEvent.runId, | ||
})} | ||
<div class="content"> | ||
<p class="text-sm">Link</p> | ||
<Link class="whitespace-pre-line" {href}> | ||
{link.workflowEvent.workflowId} | ||
</Link> | ||
<div class="flex w-full items-center gap-4 p-2"> | ||
<EventLink {link} /> | ||
</div> | ||
<div class="flex w-full items-center gap-4 p-2"> | ||
<EventLink | ||
{link} | ||
label={translate('nexus.link-namespace')} | ||
value={link.workflowEvent.namespace} | ||
href={routeForNamespace({ namespace: link.workflowEvent.namespace })} | ||
/> | ||
</div> | ||
{/if} | ||
{/each} | ||
|
||
<style lang="postcss"> | ||
.content { | ||
@apply block flex w-full w-full items-center gap-4 px-2 py-1 py-1 text-left text-left xl:flex; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters