Skip to content

fix(platform): trim generated automation slug after truncation - #4279

Merged
yannickmonney merged 1 commit into
mainfrom
fix/automation-slug-trim
Oct 4, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/automation-slug-trim

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

  • trim generated automation slugs after the 64-character cap so truncation cannot leave a trailing hyphen
  • add jsdom regression coverage for the failing boundary and both neighboring long-name controls

Verification

  • focused Vitest UI regression passes (3 tests)
  • oxlint, oxfmt, and git diff checks pass

Closes #3637

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review — ACCEPT\n\nExact head confirmed: 3f2dd2e753882a8217f15287ee60d74124bf0a5a.\n\nEvidence (installed Node, targeted jsdom only):\n- PR head: blank-automation-dialog.test.tsx passed 13/13 with --maxWorkers=1, including the real isValidAutomationName check for 63 as + space + b and both controls (62 as + space + b; 65 as).\n- origin/main (ffa15e019) with the PR test file transiently applied: 1 failed, 12 passed; the boundary assertion fails because the generated slug retains the trailing hyphen. The test file was restored.\n- rg found no other slugify callers in the relevant platform/packages tree; the diff is contained to this dialog and its tests.\n\nNo blocking findings. CI was not rerun, cancelled, or awaited per the review brief; no browser/live-provider/production proof is claimed.

@yannickmonney
yannickmonney merged commit d8a3c98 into main Oct 4, 2026
@yannickmonney
yannickmonney deleted the fix/automation-slug-trim branch October 4, 2026 16:54
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.

bug(platform): blank automation slug truncation creates an invalid trailing hyphen

1 participant