An open source design system that's fully customizable and agent ready
TypeScript
chore: remove one-off creatable naming vibe test files (#1119)
Cindy Zhang6d3254e7b407
diff --git a/internal/vibe-tests/creatable-naming-test/prompts.json b/internal/vibe-tests/creatable-naming-test/prompts.jsondeleted file mode 100644index 21b6ab3ed2..0000000000--- a/internal/vibe-tests/creatable-naming-test/prompts.json+++ /dev/null@@ -1,67 +0,0 @@-{- "name": "creatable-naming",- "description": "Vibe test comparing prop names for XDSTokenizer free-text token creation: isCreatable vs hasCreate vs hasAddNew",- "variants": [- "isCreatable",- "hasCreate",- "hasAddNew"- ],- "prompts": [- {- "id": "cr-1",- "category": "tag-input",- "prompt": "Build a blog post editor form with a title field, body textarea, and a tag input where users can type custom tags and add them. Tags don't come from a predefined list \u2014 users create whatever tags they want.",- "tests": "Basic free-text token creation, no search source needed",- "notes": "Core use case \u2014 does the LLM discover and use the creatable prop for a pure free-text tag input?"- },- {- "id": "cr-2",- "category": "tag-input",- "prompt": "Create a project settings page with a 'Labels' section. Users should be able to search from existing labels (Bug, Feature, Enhancement, Documentation, Question) but also type and create new custom labels that don't exist yet.",- "tests": "Hybrid: search source + creatable mode together",- "notes": "Tests whether the LLM combines searchSource with the creatable prop correctly"- },- {- "id": "cr-3",- "category": "invite-flow",- "prompt": "Build an invite flow where users type email addresses to invite team members. Each email becomes a token chip. Users should be able to type any email, not just pick from a list. Show validation that emails are properly formatted.",- "tests": "Free-text creation with validation pattern",- "notes": "Tests whether the LLM naturally reaches for creatable when building an email input"- },- {- "id": "cr-4",- "category": "filter-builder",- "prompt": "Create a search filter component for a log viewer. Users can add multiple search terms as token chips \u2014 each term is free text that they type. Include a clear-all button.",- "tests": "Free-text tokens in a non-tag context (search terms)",- "notes": "Tests whether 'creatable' naming generalizes beyond the tag metaphor"- },- {- "id": "cr-5",- "category": "tag-input",- "prompt": "Build a recipe ingredient entry. Users type ingredient names (like 'flour', 'sugar', 'vanilla extract') and each one becomes a chip. The list is open-ended \u2014 any ingredient name is valid. Show a count of total ingredients added.",- "tests": "Domain-specific free-text, count display alongside tokenizer",- "notes": "Tests creatable in a domain where no search source makes sense"- },- {- "id": "cr-6",- "category": "hybrid",- "prompt": "Build a skills selector for a job posting form. Provide a search source with common skills (React, TypeScript, Python, Java, CSS, SQL, Docker, AWS, Node.js, GraphQL) but let hiring managers also type and add niche skills that aren't in the predefined list.",- "tests": "Hybrid with onChange distinguishing created vs selected",- "notes": "Tests whether the LLM uses the change.type to distinguish 'add' vs 'create'"- },- {- "id": "cr-7",- "category": "filter-builder",- "prompt": "Create a CSV column mapper. Show a tokenizer for each target field where users can either search from detected CSV headers (Name, Email, Phone, Address, City, State, Zip) or type a custom column name if the CSV has different headers.",- "tests": "Multiple tokenizers with maxEntries=1 and creatable",- "notes": "Tests creatable with maxEntries constraint \u2014 single-select creatable typeahead pattern"- },- {- "id": "cr-8",- "category": "invite-flow",- "prompt": "Build a notification rules editor. Users configure alert recipients by typing Slack channel names (like #engineering, #incidents, #on-call). Channels are free-text \u2014 no predefined list. Each channel becomes a removable chip. Limit to 5 channels max.",- "tests": "Free-text creation with maxEntries limit",- "notes": "Tests creatable + maxEntries interaction"- }- ]-}\ No newline at end of filediff --git a/internal/vibe-tests/creatable-naming-test/variant-hasAddNew.md b/internal/vibe-tests/creatable-naming-test/variant-hasAddNew.mddeleted file mode 100644index 893d833e8f..0000000000--- a/internal/vibe-tests/creatable-naming-test/variant-hasAddNew.md+++ /dev/null@@ -1,107 +0,0 @@-# XDSTokenizer — Multi-select Typeahead with Token Chips--A multi-select input that combines typeahead search with token chips. Users search for items via a dropdown and selected items appear as removable chips. Supports free-text token creation for open-ended inputs like tags, emails, or custom values.--## Import--```tsx-import {XDSTokenizer} from '@xds/core';-```--## Basic Usage — Search Only--```tsx-const userSource = {- search: query => users.filter(u => u.label.includes(query)),- bootstrap: () => users.slice(0, 5),-};--<XDSTokenizer- label="Team Members"- searchSource={userSource}- value={selected}- onChange={items => setSelected(items)}- placeholder="Search people..."-/>;-```--## Free-Text Token Creation--When `hasAddNew` is true, users can type any value and commit it as a new token — even if the search source returns no results. A "Create" option appears in the dropdown.--```tsx-// Tags — no search source, pure free-text-const emptySource = {search: () => [], bootstrap: () => []};--<XDSTokenizer- label="Tags"- searchSource={emptySource}- value={tags}- onChange={(items, change) => {- setTags(items);- if (change.type === 'addNew') {- console.log('New tag created:', change.item.label);- }- }}- hasAddNew- placeholder="Type a tag and press Enter..."-/>;-```--## Hybrid — Search + Create--Combine a search source with `hasAddNew` so users can pick existing items OR create new ones:--```tsx-<XDSTokenizer- label="Skills"- searchSource={skillSource}- value={skills}- onChange={(items, change) => {- setSkills(items);- if (change.type === 'addNew') {- // Persist the new skill to the backend- saveNewSkill(change.item.label);- }- }}- hasAddNew- placeholder="Search or add skills..."-/>-```--## Props--| Prop | Type | Default | Description |-| ------------------- | ---------------------------------- | ------- | ------------------------------------------------------------------------------------------- |-| `label` | `string` | — | Accessible label (required) |-| `searchSource` | `XDSSearchSource<T>` | — | Data source for search + bootstrap (required) |-| `value` | `T[]` | — | Currently selected items (required) |-| `onChange` | `(items: T[], change) => void` | — | Selection change callback. `change.type` is `'add'`, `'addNew'`, `'remove'`, or `'reorder'` |-| `hasAddNew` | `boolean` | `false` | Enable free-text token creation from typed input |-| `placeholder` | `string` | — | Input placeholder (shown when no tokens selected) |-| `maxEntries` | `number` | — | Maximum selections allowed |-| `hasClear` | `boolean` | `false` | Show clear-all button |-| `renderItem` | `(item: T) => ReactNode` | — | Custom dropdown item renderer |-| `renderToken` | `(item: T, onRemove) => ReactNode` | — | Custom token chip renderer |-| `hasEntriesOnFocus` | `boolean` | `false` | Show bootstrap results on focus |-| `isDisabled` | `boolean` | `false` | Disable the input |-| `debounceMs` | `number` | `150` | Search debounce delay (0 for sync sources) |-| `size` | `'sm' \| 'md'` | `'md'` | Input and token size |--## Change Types--The `onChange` callback's second argument tells you what happened:--| `change.type` | Meaning |-| ------------- | ------------------------------------------------ |-| `'add'` | User selected an existing item from the dropdown |-| `'addNew'` | User created a new token from typed free-text |-| `'remove'` | User removed a token |-| `'reorder'` | Tokens were reordered |--## Keyboard--- **Enter** — Select highlighted item, or create a token from typed text when `hasAddNew` is true-- **Backspace** — On empty input, removes the last token-- **Arrow keys** — Navigate dropdown items-- **Escape** — Close dropdowndiff --git a/internal/vibe-tests/creatable-naming-test/variant-hasCreate.md b/internal/vibe-tests/creatable-naming-test/variant-hasCreate.mddeleted file mode 100644index f4be88fd5e..0000000000--- a/internal/vibe-tests/creatable-naming-test/variant-hasCreate.md+++ /dev/null@@ -1,107 +0,0 @@-# XDSTokenizer — Multi-select Typeahead with Token Chips--A multi-select input that combines typeahead search with token chips. Users search for items via a dropdown and selected items appear as removable chips. Supports free-text token creation for open-ended inputs like tags, emails, or custom values.--## Import--```tsx-import {XDSTokenizer} from '@xds/core';-```--## Basic Usage — Search Only--```tsx-const userSource = {- search: query => users.filter(u => u.label.includes(query)),- bootstrap: () => users.slice(0, 5),-};--<XDSTokenizer- label="Team Members"- searchSource={userSource}- value={selected}- onChange={items => setSelected(items)}- placeholder="Search people..."-/>;-```--## Free-Text Token Creation--When `hasCreate` is true, users can type any value and commit it as a new token — even if the search source returns no results. A "Create" option appears in the dropdown.--```tsx-// Tags — no search source, pure free-text-const emptySource = {search: () => [], bootstrap: () => []};--<XDSTokenizer- label="Tags"- searchSource={emptySource}- value={tags}- onChange={(items, change) => {- setTags(items);- if (change.type === 'create') {- console.log('New tag created:', change.item.label);- }- }}- hasCreate- placeholder="Type a tag and press Enter..."-/>;-```--## Hybrid — Search + Create--Combine a search source with `hasCreate` so users can pick existing items OR create new ones:--```tsx-<XDSTokenizer- label="Skills"- searchSource={skillSource}- value={skills}- onChange={(items, change) => {- setSkills(items);- if (change.type === 'create') {- // Persist the new skill to the backend- saveNewSkill(change.item.label);- }- }}- hasCreate- placeholder="Search or add skills..."-/>-```--## Props--| Prop | Type | Default | Description |-| ------------------- | ---------------------------------- | ------- | ------------------------------------------------------------------------------------------- |-| `label` | `string` | — | Accessible label (required) |-| `searchSource` | `XDSSearchSource<T>` | — | Data source for search + bootstrap (required) |-| `value` | `T[]` | — | Currently selected items (required) |-| `onChange` | `(items: T[], change) => void` | — | Selection change callback. `change.type` is `'add'`, `'create'`, `'remove'`, or `'reorder'` |-| `hasCreate` | `boolean` | `false` | Enable free-text token creation from typed input |-| `placeholder` | `string` | — | Input placeholder (shown when no tokens selected) |-| `maxEntries` | `number` | — | Maximum selections allowed |-| `hasClear` | `boolean` | `false` | Show clear-all button |-| `renderItem` | `(item: T) => ReactNode` | — | Custom dropdown item renderer |-| `renderToken` | `(item: T, onRemove) => ReactNode` | — | Custom token chip renderer |-| `hasEntriesOnFocus` | `boolean` | `false` | Show bootstrap results on focus |-| `isDisabled` | `boolean` | `false` | Disable the input |-| `debounceMs` | `number` | `150` | Search debounce delay (0 for sync sources) |-| `size` | `'sm' \| 'md'` | `'md'` | Input and token size |--## Change Types--The `onChange` callback's second argument tells you what happened:--| `change.type` | Meaning |-| ------------- | ------------------------------------------------ |-| `'add'` | User selected an existing item from the dropdown |-| `'create'` | User created a new token from typed free-text |-| `'remove'` | User removed a token |-| `'reorder'` | Tokens were reordered |--## Keyboard--- **Enter** — Select highlighted item, or create a token from typed text when `hasCreate` is true-- **Backspace** — On empty input, removes the last token-- **Arrow keys** — Navigate dropdown items-- **Escape** — Close dropdowndiff --git a/internal/vibe-tests/creatable-naming-test/variant-isCreatable.md b/internal/vibe-tests/creatable-naming-test/variant-isCreatable.mddeleted file mode 100644index 391958686f..0000000000--- a/internal/vibe-tests/creatable-naming-test/variant-isCreatable.md+++ /dev/null@@ -1,107 +0,0 @@-# XDSTokenizer — Multi-select Typeahead with Token Chips--A multi-select input that combines typeahead search with token chips. Users search for items via a dropdown and selected items appear as removable chips. Supports free-text token creation for open-ended inputs like tags, emails, or custom values.--## Import--```tsx-import {XDSTokenizer} from '@xds/core';-```--## Basic Usage — Search Only--```tsx-const userSource = {- search: query => users.filter(u => u.label.includes(query)),- bootstrap: () => users.slice(0, 5),-};--<XDSTokenizer- label="Team Members"- searchSource={userSource}- value={selected}- onChange={items => setSelected(items)}- placeholder="Search people..."-/>;-```--## Free-Text Token Creation--When `isCreatable` is true, users can type any value and commit it as a new token — even if the search source returns no results. A "Create" option appears in the dropdown.--```tsx-// Tags — no search source, pure free-text-const emptySource = {search: () => [], bootstrap: () => []};--<XDSTokenizer- label="Tags"- searchSource={emptySource}- value={tags}- onChange={(items, change) => {- setTags(items);- if (change.type === 'create') {- console.log('New tag created:', change.item.label);- }- }}- isCreatable- placeholder="Type a tag and press Enter..."-/>;-```--## Hybrid — Search + Create--Combine a search source with `isCreatable` so users can pick existing items OR create new ones:--```tsx-<XDSTokenizer- label="Skills"- searchSource={skillSource}- value={skills}- onChange={(items, change) => {- setSkills(items);- if (change.type === 'create') {- // Persist the new skill to the backend- saveNewSkill(change.item.label);- }- }}- isCreatable- placeholder="Search or add skills..."-/>-```--## Props--| Prop | Type | Default | Description |-| ------------------- | ---------------------------------- | ------- | ------------------------------------------------------------------------------------------- |-| `label` | `string` | — | Accessible label (required) |-| `searchSource` | `XDSSearchSource<T>` | — | Data source for search + bootstrap (required) |-| `value` | `T[]` | — | Currently selected items (required) |-| `onChange` | `(items: T[], change) => void` | — | Selection change callback. `change.type` is `'add'`, `'create'`, `'remove'`, or `'reorder'` |-| `isCreatable` | `boolean` | `false` | Enable free-text token creation from typed input |-| `placeholder` | `string` | — | Input placeholder (shown when no tokens selected) |-| `maxEntries` | `number` | — | Maximum selections allowed |-| `hasClear` | `boolean` | `false` | Show clear-all button |-| `renderItem` | `(item: T) => ReactNode` | — | Custom dropdown item renderer |-| `renderToken` | `(item: T, onRemove) => ReactNode` | — | Custom token chip renderer |-| `hasEntriesOnFocus` | `boolean` | `false` | Show bootstrap results on focus |-| `isDisabled` | `boolean` | `false` | Disable the input |-| `debounceMs` | `number` | `150` | Search debounce delay (0 for sync sources) |-| `size` | `'sm' \| 'md'` | `'md'` | Input and token size |--## Change Types--The `onChange` callback's second argument tells you what happened:--| `change.type` | Meaning |-| ------------- | ------------------------------------------------ |-| `'add'` | User selected an existing item from the dropdown |-| `'create'` | User created a new token from typed free-text |-| `'remove'` | User removed a token |-| `'reorder'` | Tokens were reordered |--## Keyboard--- **Enter** — Select highlighted item, or create a token from typed text when `isCreatable` is true-- **Backspace** — On empty input, removes the last token-- **Arrow keys** — Navigate dropdown items-- **Escape** — Close dropdown