Repository navigation
Archive AI operations and Card Select, now built into Directus 12.7 - #337
bryantgillespie wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The archived README references nonexistent image filenames for both Radio Cards and Checkbox Cards, preventing the examples from rendering.
1 open issue
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
This PR archives five AI operations and the Card Select bundle in favor of Directus 12.7’s built-in features, replacing the separate AI bundle planned in #332.
Changes:
- Moves six extension folders out of the active workspace while preserving their source.
- Adds deprecation notices, replacement guidance, and archive catalog entries.
- Updates screenshot paths and removes archived extensions from the generated extension list and issue templates.
| File | Description |
|---|---|
readme.md |
Removes six archived extensions from the listing. |
archived/README.md |
Records archive details and replacements. |
archived/card-select-interfaces/tsconfig.json |
Archives TypeScript configuration. |
archived/card-select-interfaces/src/utils/get-root-path.ts |
Archives API root URL helpers. |
archived/card-select-interfaces/src/utils/get-asset-url.ts |
Archives asset URL helper. |
archived/card-select-interfaces/src/shared/types.ts |
Archives shared interface types. |
archived/card-select-interfaces/src/shared/options.ts |
Archives shared configuration options. |
archived/card-select-interfaces/src/shared/helpers.ts |
Archives SVG detection helper. |
archived/card-select-interfaces/src/shared/cards.scss |
Archives shared card styles. |
archived/card-select-interfaces/src/shared/CardPreview.vue |
Archives card preview component. |
archived/card-select-interfaces/src/radio-cards-interface/shims.d.ts |
Archives Vue type declarations. |
archived/card-select-interfaces/src/radio-cards-interface/interface.vue |
Archives single-select card interface. |
archived/card-select-interfaces/src/radio-cards-interface/index.ts |
Archives radio interface registration. |
archived/card-select-interfaces/src/image-uuid-interface/shims.d.ts |
Archives Vue type declarations. |
archived/card-select-interfaces/src/image-uuid-interface/interface.vue |
Archives image picker component. |
archived/card-select-interfaces/src/image-uuid-interface/index.ts |
Archives image picker registration. |
archived/card-select-interfaces/src/checkbox-cards-interface/shims.d.ts |
Archives Vue type declarations. |
archived/card-select-interfaces/src/checkbox-cards-interface/interface.vue |
Archives multiple-select card interface. |
archived/card-select-interfaces/src/checkbox-cards-interface/index.ts |
Archives checkbox interface registration. |
archived/card-select-interfaces/readme.md |
Adds replacement notice and updates image paths. |
archived/card-select-interfaces/package.json |
Archives bundle metadata and dependencies. |
archived/card-select-interfaces/docs/radio-cards-example.png |
Preserves radio cards screenshot. |
archived/ai-writer-operation/tsconfig.json |
Archives TypeScript configuration. |
archived/ai-writer-operation/src/types.ts |
Archives prompt and message types. |
archived/ai-writer-operation/src/shims.d.ts |
Archives Vue type declarations. |
archived/ai-writer-operation/src/Provider/Replicate.ts |
Archives Replicate provider implementation. |
archived/ai-writer-operation/src/Provider/ProviderFactory.ts |
Archives provider selection logic. |
archived/ai-writer-operation/src/Provider/Provider.ts |
Archives shared provider abstraction. |
archived/ai-writer-operation/src/Provider/OpenAi.ts |
Archives OpenAI provider implementation. |
archived/ai-writer-operation/src/Provider/Anthropic.ts |
Archives Anthropic provider implementation. |
archived/ai-writer-operation/src/prompts/seo.ts |
Archives search-description prompt. |
archived/ai-writer-operation/src/prompts/microblog.ts |
Archives social-post prompt. |
archived/ai-writer-operation/src/prompts/index.ts |
Archives prompt registry. |
archived/ai-writer-operation/src/prompts/expander.ts |
Archives content expansion prompt. |
archived/ai-writer-operation/src/prompts/editor.ts |
Archives copy-editing prompt. |
archived/ai-writer-operation/src/prompts/custom.ts |
Archives custom prompt definition. |
archived/ai-writer-operation/src/prompts/condenser.ts |
Archives content shortening prompt. |
archived/ai-writer-operation/src/app.ts |
Archives AI Writer configuration interface. |
archived/ai-writer-operation/src/api.ts |
Archives AI Writer operation handler. |
archived/ai-writer-operation/README.md |
Recommends AI Text and updates image paths. |
archived/ai-writer-operation/package.json |
Archives package metadata and dependencies. |
archived/ai-translator-operation/src/languages.js |
Archives supported language list. |
archived/ai-translator-operation/src/app.js |
Archives translation configuration interface. |
archived/ai-translator-operation/src/api.js |
Archives DeepL operation handler. |
archived/ai-translator-operation/README.md |
Recommends AI Text for translation. |
archived/ai-translator-operation/package.json |
Archives package metadata and dependencies. |
archived/ai-image-generation-operation/src/app.js |
Archives image generation configuration. |
archived/ai-image-generation-operation/src/api.js |
Archives image generation handler. |
archived/ai-image-generation-operation/README.md |
Recommends AI Image and explains file storage. |
archived/ai-image-generation-operation/package.json |
Archives package metadata and dependencies. |
archived/ai-focal-point-detection-operation/src/app.js |
Archives focal-point configuration interface. |
archived/ai-focal-point-detection-operation/src/api.js |
Archives focal-point operation handler. |
archived/ai-focal-point-detection-operation/README.md |
Documents AI Text focal-point replacement. |
archived/ai-focal-point-detection-operation/package.json |
Archives package metadata and dependencies. |
archived/ai-alt-text-writer/tsconfig.json |
Archives TypeScript configuration. |
archived/ai-alt-text-writer/src/shims.d.ts |
Archives Vue type declarations. |
archived/ai-alt-text-writer/src/app.ts |
Archives alt-text configuration interface. |
archived/ai-alt-text-writer/src/api.ts |
Archives Clarifai operation handler. |
archived/ai-alt-text-writer/README.md |
Recommends AI Text for image descriptions. |
archived/ai-alt-text-writer/package.json |
Archives package metadata and dependencies. |
archived/ai-alt-text-writer/docs/sample-output.png |
Preserves sample output screenshot. |
.github/ISSUE_TEMPLATE/enhancement.yml |
Removes archived extension choices. |
.github/ISSUE_TEMPLATE/bug-report.yml |
Removes archived extension choices. |
Review effort: Balanced
LZylstra
left a comment
There was a problem hiding this comment.
Went through this locally on a fresh 12.7.0 instance. AI Text and AI Image are both there, the lockfile regenerates with no diff, and command-palette-module still builds and passes its tests on the refreshed lockfile.
Ran into one thing with Card Select that I think the notice should cover, plus a couple of smaller things on the AI notices. Left them inline.
| # DEPRECATED | ||
|
|
||
| > **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.** | ||
| > Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card. |
There was a problem hiding this comment.
From what I can tell, existing fields don't move over to the core interfaces on their own. Core registers them as select-card-radio and select-card-checkbox (directus/directus#28424), and there's nothing in 12.7.0 that maps radio-cards-interface / checkbox-cards-interface over. I created a field with radio-cards-interface on a fresh 12.7.0 instance without the extension and it keeps the old id, so once someone uninstalls this they'd get Interface "radio-cards-interface" not found. on every one of those fields.
The choices themselves should mostly carry over when you switch, since core uses the same text, value, description, icon and image keys. The exceptions are SVG icons, which core doesn't have (options.ts) and which are this extension's default icon_type, and gridSize, which is size in core (options.ts).
Since this is the most used one in the PR, could we add a line about switching fields before uninstalling?
| > Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card. | |
| > Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card. Existing fields don't switch over on their own, so change each field's interface to Card Select or Card Select (Multiple) before uninstalling this extension. Cards that use SVG icons will need an icon or image instead. |
| # DEPRECATED | ||
|
|
||
| > **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.** | ||
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint. |
There was a problem hiding this comment.
small thing, could we add "(Directus 12.7+)" here like the Card Select notice has? AI Text and AI Image aren't in 12.6 or earlier, and this extension's host is ^10.0.0 || ^11.0.0, so most people reading this won't have them until they upgrade.
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint. | |
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead (Directus 12.7+). It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint. |
Same for the other four AI READMEs. The "Use instead" column in archived/README.md could use it too, like the youtube-embed-interface row has "(Directus 12.6+)".
| # DEPRECATED | ||
|
|
||
| > **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.** | ||
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. Pass the image in **Files**, set **Output** to **Object** with `focal_point_x` and `focal_point_y`, then save them with an Update Data step. |
There was a problem hiding this comment.
small thing, focal_point_x and focal_point_y are pixel values (integer columns, and core's own AI files prompt describes them as pixels from the left edge). If the model comes back with 0–1 or percentages, the crop ends up stuck near the top-left. Maybe worth saying to ask for pixels and pass the image's width and height in the prompt?
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. Pass the image in **Files**, set **Output** to **Object** with `focal_point_x` and `focal_point_y`, then save them with an Update Data step. | |
| > Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead (Directus 12.7+). Pass the image in **Files**, include its `width` and `height` in the prompt, set **Output** to **Object** with `focal_point_x` and `focal_point_y` as pixel values, then save them with an Update Data step. |

This PR moves the last 5 AI operations and the Card Select interfaces from
packages/toarchived/and marks them deprecated. Directus 12.7.0 ships AI Text and AI Image flow operations that cover the AI ones, with current models and the providers set in Settings → AI, plus built-in Card Select and Card Select (Multiple) interfaces (directus/directus#28424).This replaces the plan in #332 for a new AI bundle. Core does that job now.
Unblocked: the core operations (directus/directus#28487, directus/directus#28488, directus/directus#28506) and Card Select (directus/directus#28424) shipped in v12.7.0, and the docs (directus/docs#853, directus/docs#860) are live. The deprecation notices link to those docs.
What replaces each one
focal_point_x,focal_point_y), then Update DataCard Select, Writer and Image Generation still get real use, so their notices say exactly what to switch to.
What's in here
archived/withgit mv, so history follows them. They drop out of the workspace, CI and publishing.archived/.archived/README.mdlists the 6 with their npm page, date, reason and replacement.Review notes
tree/main/packages/<name>URLs will 404 after merge, same as the earlier archive PRs.packages/changed.Todo
archived/README.mdto the merge date.npm deprecateon all 6 packages with a message pointing to the matching core operation or interface.