Skip to content

refactor(DT-3906): Update components/event components to Svelte 5 syntax#3360

Closed
tegan-temporal wants to merge 0 commit intocodefreeze-05.01.26from
DT-3906-ui-svelte-5-migration-2
Closed

refactor(DT-3906): Update components/event components to Svelte 5 syntax#3360
tegan-temporal wants to merge 0 commit intocodefreeze-05.01.26from
DT-3906-ui-svelte-5-migration-2

Conversation

@tegan-temporal
Copy link
Copy Markdown
Contributor

Description & motivation 💭

Update components/event components to Svelte 5 syntax

@tegan-temporal tegan-temporal self-assigned this Apr 30, 2026
@tegan-temporal tegan-temporal requested a review from a team as a code owner April 30, 2026 23:20
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment May 1, 2026 5:13pm

Request Review

Base automatically changed from DT-3906-ui-svelte-5-migration to codefreeze-05.01.26 May 1, 2026 17:06
@tegan-temporal tegan-temporal force-pushed the DT-3906-ui-svelte-5-migration-2 branch from a752c8c to 7bbf2af Compare May 1, 2026 17:12
? options.filter((o) => $eventCategoryFilter.includes(o.value))
: [],
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • ⚠️ Parameter '_options' implicitly has an 'any' type.

const resolvedHref = $derived(href ?? getEventLinkHref(link));
const resolvedValue = $derived(
value ??
(resolvedHref.split('workflows/')?.[1] || resolvedHref) ??
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • ⚠️ 'link.workflowEvent' is possibly 'null' or 'undefined'.

@temporal-cicd
Copy link
Copy Markdown
Contributor

temporal-cicd Bot commented May 1, 2026

Warnings
⚠️

📊 Strict Mode: 5 errors in 3 files (0.5% of 1003 total)

src/lib/components/event/event-details-link.svelte (2)
  • L44:8: Type 'string | undefined' is not assignable to type 'string'.
  • L45:8: Type 'string | undefined' is not assignable to type 'string'.
src/lib/components/event/event-category-multiselect-filter.svelte (2)
  • L46:25: Parameter '_options' implicitly has an 'any' type.
  • L51:32: Parameter 'o' implicitly has an 'any' type.
src/lib/components/event/event-link.svelte (1)
  • L28:6: 'link.workflowEvent' is possibly 'null' or 'undefined'.

Generated by 🚫 dangerJS against 7bbf2af

Copy link
Copy Markdown
Contributor

@GraceGardner GraceGardner left a comment

Choose a reason for hiding this comment

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

Some weird flags that popped up about undefined and such that might be worth a look before merging? Happy to approve when you're ready though

Comment on lines +10 to +28
export let href: string | undefined = undefined;

$: if (!href) {
href = getEventLinkHref(link);
value = href.split('workflows/')?.[1] || href;
interface Props {
link: EventLink;
value?: string;
label?: string;
href?: string;
class?: string;
linkClass?: string;
}

let {
link,
value,
label = translate('nexus.link'),
href,
class: className = '',
linkClass = '',
}: Props = $props();

const resolvedHref = $derived(href ?? getEventLinkHref(link));
const resolvedValue = $derived(
value ??
(resolvedHref.split('workflows/')?.[1] || resolvedHref) ??
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you already look into this? I can see why you would have removed the null/undefined stuff. Not sure why we would be using this component in a case where this is undefined? But might want to just make sure that removing that is safe? Which you may have already done?

@tegan-temporal tegan-temporal force-pushed the DT-3906-ui-svelte-5-migration-2 branch from 7bbf2af to 23d7cfb Compare May 4, 2026 18:34
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