⚡ Spark: slugify transformation - #69
Conversation
Adds a new 'slugify' transformation to valueTransforms and Input component. Handles diacritics, normalization, and URL-friendly character replacement.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: Added a new
slugifytransformation to thevalueTransformsutility andInputcomponent.🎯 Why: Developers frequently need to convert user input (like titles or names) into URL-friendly slugs for permalinks, IDs, or filenames. This is a common requirement in forms and content management interfaces.
📦 What it adds:
"slugify"option to theTransformTypeunion.valueTransformsthat handles:🚀 How to use:
♻️ Deps Free: Confirmed. Uses only native JavaScript string methods and built-in Unicode normalization.
🎨 Harmony: Fits perfectly with the library's existing patterns. By extending the centralized
valueTransformsutility, the new transformation is automatically type-safe and available in theInputcomponent via the existingtransformprop. Added comprehensive tests inlib/utilities/strings.test.ts.PR created automatically by Jules for task 4898550752951199275 started by @galiprandi