Skip to content

feat(term-maps): move directory rules into Settings - #218

Merged
kfstorm merged 1 commit into
mainfrom
quick-mongoose
Oct 4, 2026
Merged

kfstorm merged 1 commit into
mainfrom
quick-mongoose

Conversation

@kfstorm

@kfstorm kfstorm commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

Move persistent directory Term map settings into Settings so Translate focuses on the Term map choice for the current Job. Directory edits previously appeared beside Media selection and looked too similar to a one-off translation choice.

  • Keep one optional selector in Translate for automatic selection, a specific Term map, or no map. Show the resolved automatic result without ancestor-directory details.
  • Split Term map settings into a searchable library and an Automatic use view for explicit directory rules. Show creation guidance and JSON import only in the new-map flow.
  • Preview the fallback before deleting a directory rule and report the resulting automatic choice. Require fresh rule data for deletion and retries.
  • Preserve translation drafts across Settings navigation in memory. Require a new choice if a selected Term map is deleted, and keep explicit no-map selection available during loading or errors.
  • Resolve file-link directories consistently between previews and Job creation, and update the interface copy across all supported languages.

API and behavior

Add GET /api/term-maps/directory-rules to list explicit directory settings. Discovery responses include the resolved Media directory while retaining the requested Media path.

Each Job uses at most one complete Term map. Child directory rules replace the ancestor's choice without merging entries, and batch translation retains its same-directory constraint. Existing directory settings and queued Job snapshots are preserved; no database migration is required.

Separate persistent directory defaults from the Term map choice for one translation. Add a searchable library and explicit directory rule management, with automatic result previews and reliable deletion fallbacks.

Preserve translation drafts across Settings navigation, require a new choice when a selected map is deleted, and resolve file-link directories consistently with Job creation. Retain one complete map per Job and the same-directory batch constraint.
@kfstorm
kfstorm merged commit 1ab2600 into main Oct 4, 2026
3 checks passed
@kfstorm
kfstorm deleted the quick-mongoose branch October 4, 2026 08:50
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.

1 participant