Add curator Influences tool with import wizard, CRUD, and graph.

CSV/JSON/XLSX mapping wizard expands artist-level rows to all paintings, blocks duplicate file/data imports via content and payload hashes, and documents the workflow in influence-import.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-07-16 18:54:26 +03:00
co-authored by Cursor
parent 62d7ebbe6a
commit 48bd17e985
21 changed files with 3402 additions and 15 deletions
+1
View File
@@ -14,6 +14,7 @@
"showMoreDebug": "Show more (debug)",
"checkup": "Checkup",
"translations": "Translations",
"influences": "Influences",
"curatorRequiredTitle": "Curator access required",
"curatorRequiredBody": "Sign in as a curator to use this tool.",
"backToGalleryBtn": "Back to gallery"
+70
View File
@@ -0,0 +1,70 @@
{
"title": "Influence links",
"back": "← Back to gallery",
"tabList": "List",
"tabImport": "Import",
"tabGraph": "Graph",
"loadFailed": "Failed to load influences",
"searchPlaceholder": "Search artist, painting, source…",
"refresh": "Refresh",
"loading": "Loading…",
"loadingParse": "Reading file…",
"loadingPreview": "Validating influence links…",
"loadingCommit": "Importing links into the database…",
"loadingSave": "Saving link…",
"addEdge": "Add link",
"cancelAdd": "Cancel",
"total": "{{count}} links",
"filtered": "filtered by artist",
"clearFilter": "Clear artist filter",
"subjectPainting": "Subject painting",
"searchPainting": "Search painting…",
"sourceType": "Source type",
"typeArtist": "Artist",
"typePainting": "Painting",
"typeMovement": "Movement",
"sourceEntity": "Source entity",
"searchSource": "Search source…",
"notes": "Notes",
"saveEdge": "Save link",
"addRequiresIds": "Pick a subject painting and a source entity",
"colSubject": "Subject",
"colSource": "Source",
"colType": "Type",
"colNotes": "Notes",
"colActions": "Actions",
"colAction": "Action",
"colDirection": "Direction",
"delete": "Delete",
"confirmDelete": "Delete this influence link?",
"noEdges": "No influence links match.",
"stepUpload": "1. Upload",
"stepMapping": "2. Map columns",
"stepPreview": "3. Validate",
"stepDone": "4. Done",
"uploadHelp": "Choose a CSV, JSON, or XLSX file with influence rows (e.g. Inputs/artist_influences_web_sources.xlsx).",
"parseFailed": "Failed to parse file",
"previewFailed": "Failed to build preview",
"commitFailed": "Failed to commit import",
"rowsMissing": "File rows were not returned (too large). Use a smaller file (≤2000 rows).",
"fileInfo": "{{name}} · {{rows}} rows · {{format}}",
"sheet": "Sheet",
"preset": "Mapping preset",
"column": "Column",
"role": "Role",
"sample": "Sample",
"backStep": "Back",
"runPreview": "Validate & preview",
"previewCounts": "Will create {{create}} · skip {{skip}} · row errors {{errors}} · proposals {{proposals}}",
"warnings": "{{count}} warnings",
"commitImport": "Import {{count}} links",
"commitSummary": "Imported {{inserted}} links ({{skipped}} already present or skipped).",
"alreadyImportedWarn": "Already imported {{when}} by {{who}} ({{match}}: {{file}}). Commit is blocked unless you force re-import.",
"alreadyImportedBlock": "This file or identical data was already imported. Enable “Import anyway” to force, or cancel.",
"forceImport": "Import anyway (force — may recreate skipped edges only; existing edges stay unique)",
"matchFile": "same file bytes",
"matchData": "same mapped data",
"searchArtist": "Search artist for neighborhood graph…",
"graphEmpty": "Select an artist to visualize influence neighbors.",
"graphStats": "{{nodes}} nodes · {{edges}} edges"
}
+1
View File
@@ -14,6 +14,7 @@
"showMoreDebug": "Показать больше (отладка)",
"checkup": "Проверка",
"translations": "Переводы",
"influences": "Влияния",
"curatorRequiredTitle": "Требуется доступ куратора",
"curatorRequiredBody": "Войдите как куратор, чтобы использовать этот инструмент.",
"backToGalleryBtn": "Вернуться в галерею"
+70
View File
@@ -0,0 +1,70 @@
{
"title": "Связи влияния",
"back": "← Назад в галерею",
"tabList": "Список",
"tabImport": "Импорт",
"tabGraph": "Граф",
"loadFailed": "Не удалось загрузить связи",
"searchPlaceholder": "Поиск: художник, картина, источник…",
"refresh": "Обновить",
"loading": "Загрузка…",
"loadingParse": "Чтение файла…",
"loadingPreview": "Проверка связей влияния…",
"loadingCommit": "Импорт связей в базу…",
"loadingSave": "Сохранение связи…",
"addEdge": "Добавить связь",
"cancelAdd": "Отмена",
"total": "{{count}} связей",
"filtered": "фильтр по художнику",
"clearFilter": "Сбросить фильтр",
"subjectPainting": "Картина (субъект)",
"searchPainting": "Поиск картины…",
"sourceType": "Тип источника",
"typeArtist": "Художник",
"typePainting": "Картина",
"typeMovement": "Направление",
"sourceEntity": "Источник",
"searchSource": "Поиск источника…",
"notes": "Заметки",
"saveEdge": "Сохранить связь",
"addRequiresIds": "Выберите картину и источник",
"colSubject": "Субъект",
"colSource": "Источник",
"colType": "Тип",
"colNotes": "Заметки",
"colActions": "Действия",
"colAction": "Действие",
"colDirection": "Направление",
"delete": "Удалить",
"confirmDelete": "Удалить эту связь влияния?",
"noEdges": "Связи не найдены.",
"stepUpload": "1. Файл",
"stepMapping": "2. Столбцы",
"stepPreview": "3. Проверка",
"stepDone": "4. Готово",
"uploadHelp": "Выберите CSV, JSON или XLSX со связями влияния (например Inputs/artist_influences_web_sources.xlsx).",
"parseFailed": "Не удалось разобрать файл",
"previewFailed": "Не удалось построить превью",
"commitFailed": "Не удалось выполнить импорт",
"rowsMissing": "Строки файла не получены (слишком большой файл). Используйте ≤2000 строк.",
"fileInfo": "{{name}} · {{rows}} строк · {{format}}",
"sheet": "Лист",
"preset": "Шаблон сопоставления",
"column": "Столбец",
"role": "Роль",
"sample": "Пример",
"backStep": "Назад",
"runPreview": "Проверить",
"previewCounts": "Создать {{create}} · пропустить {{skip}} · ошибки строк {{errors}} · предложений {{proposals}}",
"warnings": "{{count}} предупреждений",
"commitImport": "Импортировать {{count}} связей",
"commitSummary": "Импортировано {{inserted}} (пропущено {{skipped}}).",
"alreadyImportedWarn": "Уже импортировано {{when}} пользователем {{who}} ({{match}}: {{file}}). Импорт заблокирован, пока не включите принудительный повтор.",
"alreadyImportedBlock": "Этот файл или те же данные уже импортировались. Включите «Импортировать всё равно» или отмените.",
"forceImport": "Импортировать всё равно (принудительно — существующие связи остаются уникальными)",
"matchFile": "те же байты файла",
"matchData": "те же сопоставленные данные",
"searchArtist": "Поиск художника для графа…",
"graphEmpty": "Выберите художника, чтобы увидеть соседей по влиянию.",
"graphStats": "{{nodes}} узлов · {{edges}} рёбер"
}