Skip to content

Draft fix for link variant handling#3620

Open
VegetarianOrc wants to merge 1 commit into
mainfrom
amazzeo/sano
Open

Draft fix for link variant handling#3620
VegetarianOrc wants to merge 1 commit into
mainfrom
amazzeo/sano

Conversation

@VegetarianOrc

Copy link
Copy Markdown

Description & motivation 💭

This PR shows some changes made using codex to handle the new nexusOperation link variant in various display scenarios. Codex attempted to generalize the solution to handle future variants.

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jun 30, 2026 8:45pm

Request Review

const callbackLinks = $derived(links.length ? links : link ? [link] : []);
const linkViews = $derived(toEventLinkViews(callbackLinks, { namespace }));
</script>

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 'view' implicitly has an 'any' type.

<th>{translate('nexus.caller-link')}</th>
<th>{translate('nexus.caller-namespace')}</th>
<th>{translate('nexus.handler-event')}</th>
</TableHeaderRow>

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.

  • ⚠️ 'event' is possibly 'undefined'.

<th>{translate('nexus.handler-event')}</th>
</TableHeaderRow>
{#each inboundLinkEvents as event}
{#each inboundLinkEvents as event (event.id)}

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.

  • ⚠️ Argument of type 'WorkflowExecutionStartedEvent | WorkflowExecutionOptionsUpdatedEvent | undefined' is not assignable to parameter of type 'WorkflowEvent'.

</TableHeaderRow>
{#each inboundLinkEvents as event}
{#each inboundLinkEvents as event (event.id)}
{@const link = getInboundLinkForEvent(event)}

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.

  • ⚠️ Argument of type 'false | ILink | undefined' is not assignable to parameter of type 'ILink | undefined'.

@temporal-cicd

temporal-cicd Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
Warnings
⚠️

📊 Strict Mode: 22 errors in 4 files (2.6% of 848 total)

src/lib/components/event/event-card.svelte (6)
  • L162:19: Parameter 'key' implicitly has an 'any' type.
  • L162:24: Parameter 'value' implicitly has an 'any' type.
  • L209:15: Parameter 'key' implicitly has an 'any' type.
  • L209:20: Parameter 'value' implicitly has an 'any' type.
  • L229:18: Parameter 'key' implicitly has an 'any' type.
  • L229:23: Parameter 'value' implicitly has an 'any' type.
src/lib/components/event/event-summary-row.svelte (5)
  • L136:6: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  • L173:23: Parameter 'event' implicitly has an 'any' type.
  • L188:30: Parameter 'group' implicitly has an 'any' type.
  • L188:37: Parameter 'hoveredEventId' implicitly has an 'any' type.
  • L338:16: Type 'ITimestamp | null | undefined' is not assignable to type 'ITimestamp'.
src/lib/components/workflow/workflow-callback.svelte (3)
  • L49:23: Parameter 'view' implicitly has an 'any' type.
  • L40:11: Type 'null' cannot be used as an index type.
  • L40:11: Type 'undefined' cannot be used as an index type.
src/lib/pages/workflow-nexus-links.svelte (8)
  • L72:41: 'event' is possibly 'undefined'.
  • L73:46: Argument of type 'WorkflowExecutionStartedEvent | WorkflowExecutionOptionsUpdatedEvent | undefined' is not assignable to parameter of type 'WorkflowEvent'.
  • L74:43: Argument of type 'false | ILink | undefined' is not assignable to parameter of type 'ILink | undefined'.
  • L95:25: 'event' is possibly 'undefined'.
  • L97:16: 'event' is possibly 'undefined'.
  • L98:16: 'event' is possibly 'undefined'.
  • L133:25: 'scheduledEvent' is possibly 'undefined'.
  • L134:19: 'scheduledEvent' is possibly 'undefined'.

Generated by 🚫 dangerJS against 9863ebb

@rossedfort rossedfort marked this pull request as ready for review July 2, 2026 20:03
@rossedfort rossedfort requested a review from a team as a code owner July 2, 2026 20:03
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