fix(npcs): faster editor open, save progress, black screen crash

Warm and show the NPC window sooner, lazy-load ReactFlow/TipTap, overlay save progress like materials, and fix the undefined controlStyles crash after creating an NPC.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-30 08:50:05 +08:00
parent c7bf7cf449
commit e687303c57
10 changed files with 247 additions and 106 deletions
@@ -414,6 +414,10 @@ export const EDITOR_MESSAGES: Record<EditorLocale, Record<string, string>> = {
'npcs.add': 'Добавить',
'npcs.addTitle': 'Новый НПС',
'npcs.editTitle': 'Изменить НПС',
'npcs.savingTitle': 'Сохранение НПС',
'npcs.savingWait': 'Подождите…',
'npcs.savingProgress': 'Прогресс сохранения НПС',
'npcs.graphLoading': 'Загрузка графа…',
'npcs.edit': 'Изменить',
'npcs.tileMenu': 'Меню НПС',
'npcs.search': 'Поиск НПС…',
@@ -979,6 +983,10 @@ export const EDITOR_MESSAGES: Record<EditorLocale, Record<string, string>> = {
'npcs.add': 'Add',
'npcs.addTitle': 'New NPC',
'npcs.editTitle': 'Edit NPC',
'npcs.savingTitle': 'Saving NPC',
'npcs.savingWait': 'Please wait…',
'npcs.savingProgress': 'NPC save progress',
'npcs.graphLoading': 'Loading graph…',
'npcs.edit': 'Edit',
'npcs.tileMenu': 'NPC menu',
'npcs.search': 'Search NPCs…',