The GitHub Actions job "Lint PR" on texera.git/fix/operator-caption-truncate 
has succeeded.
Run started by GitHub user chenlica (triggered by chenlica).

Head commit for run:
02705d9b658d85849e731acf36285d44fd9f997b / Chen Li <[email protected]>
refactor(frontend): truncate operator captions by pixel width instead of 
character count

Replace MAX_OPERATOR_NAME_LENGTH with MAX_OPERATOR_NAME_PIXELS = 200 and
measure caption width with a cached Canvas 2D context at the same font
the SVG renders (14px sans-serif). truncateOperatorDisplayName now
binary-searches the longest prefix that fits the pixel budget after
reserving room for the trailing horizontal-ellipsis, so visually wide
strings get truncated sooner than narrow ones — fixing the iiii-vs-WWWW
mismatch that a character-count cap cannot see.

The function also accepts an optional measurer for testability; the spec
injects a deterministic 10px-per-character measurer so the unit test
does not depend on a real canvas in jsdom.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/25943108963

With regards,
GitHub Actions via GitBox

Reply via email to