feat(form): x-references поля → SingleSelect с опциями из target словаря

Поля spacecraft.status, satellite_type_code и другие FK с x-references
теперь показывают dropdown с записями из целевого справочника вместо
свободного ввода. Label формируется как '<code> — <name.ru-RU>' если
target имеет localized name.

Fallback на TextInput когда target dict недоступен (scope-hide → 404)
или пуст — admin может ввести значение вручную, валидация серверная.

Кеш 5 минут (referenced data slow-moving) через TanStack Query.

UI tests +2 (75 total).
This commit is contained in:
Zimin A.N.
2026-05-06 19:29:01 +03:00
parent 5d5b03c421
commit c5d41da834
4 changed files with 287 additions and 2 deletions
+3
View File
@@ -57,6 +57,9 @@ export type JsonSchema = {
items?: JsonSchema
additionalProperties?: boolean | JsonSchema
['x-localized']?: boolean
['x-references']?: string
['x-id-source']?: string
['x-unique']?: boolean
default?: unknown
}