Skip to content

fix(ui): handle null wildcard_value in formatWithTemplate#460

Open
staging-devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1778957950-fix-null-wildcard
Open

fix(ui): handle null wildcard_value in formatWithTemplate#460
staging-devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1778957950-fix-null-wildcard

Conversation

@staging-devin-ai-integration
Copy link
Copy Markdown
Contributor

@staging-devin-ai-integration staging-devin-ai-integration Bot commented May 16, 2026

Summary

Fixes #443.

formatWithTemplate had a guard wildcard !== undefined && wildcard !== null that incorrectly excluded null-valued wildcards. The server registry uses null as a valid wildcard value for RawVideo, EncodedVideo, EncodedAudio, and Custom fields. When a field's value matched the wildcard, it should display as * but was showing the literal string "null".

Changed the guard to 'wildcard_value' in rule, matching the approach already used by canConnectPair in the same file.

Updated the corresponding test to expect 'Raw Video (*x*, Rgba8)' instead of the previous buggy 'Raw Video (nullxnull, Rgba8)'.

Review & Testing Checklist for Human

  • Verify that packet types with null wildcard fields (RawVideo, EncodedVideo, EncodedAudio, Custom) now render * instead of "null" in the pipeline editor UI
  • Confirm no regressions in pin compatibility display for non-null wildcard fields

Notes

Two-line code fix + test assertion update. The canConnectPair function in the same file already handled this correctly.

Link to Devin session: https://staging.itsdev.in/sessions/13a4a8f5837b4c6fbfb42b2931249d3b
Requested by: @streamer45


Devin Review

Status Commit
🔴 Failed 0e17ec6
Open in Devin Review (Staging)

The guard `wildcard !== undefined && wildcard !== null` incorrectly
excluded null-valued wildcards used by RawVideo, EncodedVideo,
EncodedAudio, and Custom fields. Use `'wildcard_value' in rule`
instead, matching the approach already used by `canConnectPair`.

Closes #443

Signed-off-by: Staging-Devin AI <166158716+staging-devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Claudio Costa <cstcld91@gmail.com>
@staging-devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.90%. Comparing base (bddff06) to head (0e17ec6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #460      +/-   ##
==========================================
- Coverage   65.91%   65.90%   -0.01%     
==========================================
  Files         217      217              
  Lines       57496    57495       -1     
  Branches     1597     1597              
==========================================
- Hits        37896    37892       -4     
- Misses      19594    19597       +3     
  Partials        6        6              
Flag Coverage Δ
backend 64.98% <ø> (-0.01%) ⬇️
ui 75.07% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core 84.29% <ø> (ø)
engine 75.57% <ø> (ø)
api 84.73% <ø> (ø)
nodes 67.40% <ø> (ø)
server 57.16% <ø> (-0.02%) ⬇️
plugin-native 70.93% <ø> (ø)
plugin-wasm 6.37% <ø> (ø)
ui-services 74.73% <ø> (ø)
ui-components 60.49% <ø> (ø)
Files with missing lines Coverage Δ
ui/src/utils/packetTypes.ts 90.96% <100.00%> (-0.06%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

ui: formatWithTemplate ignores null wildcard_value, rendering RawVideo wildcards as 'null' instead of '*'

1 participant