Skip to content

feat(alt-text): add per-collection validate option#106

Merged
jhb-dev merged 12 commits intomainfrom
fix/alt-text-folder-move-validation
Apr 26, 2026
Merged

feat(alt-text): add per-collection validate option#106
jhb-dev merged 12 commits intomainfrom
fix/alt-text-folder-move-validation

Conversation

@jhb-dev
Copy link
Copy Markdown
Contributor

@jhb-dev jhb-dev commented Apr 15, 2026

Closes #95.

Adds a per-collection validate option on AltTextCollectionConfig that fully replaces the default alt text validator. Exports validateAltText so projects can compose around the default — e.g. to skip the required-alt check when the request body does not touch alt (folder moves, partial API updates in localized setups with fallback: false).

The dev app demonstrates the composition pattern on media-with-folders.

claude and others added 8 commits April 24, 2026 20:16
…ove-validation

# Conflicts:
#	alt-text/CHANGELOG.md
…ove-validation

# Conflicts:
#	chat-agent/plans/015-detached-agent-runs.md
Demonstrates the folder-move-with-unfilled-locale fix from #106 in the
admin panel. Adds a `media-with-folders` upload collection with
`folders: true` and switches the dev app's `localization.fallback` to
`false` so alt text in an unfilled locale is truly empty (the bug
condition).
@jhb-dev jhb-dev changed the title fix(alt-text): allow folder moves when alt text is missing for some locales feat(alt-text): add per-collection validate option Apr 26, 2026
@jhb-dev jhb-dev merged commit 10e342a into main Apr 26, 2026
2 checks passed
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.

Folder move fails with localized alt text validation

2 participants