Allow importing and exporting magic shelf JSON from the UI (#3183) (#3210)

This commit is contained in:
ACX
2026-03-06 17:29:32 -07:00
committed by GitHub
parent d337def504
commit 484da7936d
8 changed files with 117 additions and 2 deletions
+2
View File
@@ -279,6 +279,7 @@
"magicShelf": {
"optionsLabel": "Options",
"editMagicShelf": "Edit Magic Shelf",
"exportJson": "Copy JSON",
"deleteMagicShelf": "Delete Magic Shelf"
},
"confirm": {
@@ -298,6 +299,7 @@
"shelfDeleteFailedDetail": "Failed to delete shelf",
"magicShelfDeletedDetail": "Magic shelf was deleted",
"magicShelfDeleteFailedDetail": "Failed to delete shelf",
"magicShelfJsonCopiedDetail": "Magic shelf JSON copied to clipboard",
"failedSummary": "Failed"
},
"loading": {
+9
View File
@@ -265,6 +265,15 @@
"comicCoverArtists": "Cover Artists",
"comicEditors": "Editors"
},
"importJson": {
"buttonLabel": "Import",
"placeholder": "{\n \"type\": \"group\",\n \"join\": \"and\",\n \"rules\": [\n { \"field\": \"readStatus\", \"operator\": \"equals\", \"value\": \"READING\" }\n ]\n}",
"apply": "Apply",
"emptyError": "Please paste a JSON configuration first.",
"parseError": "Invalid JSON. Please check the syntax and try again.",
"structureError": "Invalid structure. The JSON must have \"type\": \"group\" and a \"rules\" array.",
"successDetail": "Rules imported successfully. Review and save when ready."
},
"toast": {
"validationErrorSummary": "Validation Error",
"validationErrorDetail": "You must add at least one valid rule before saving.",
+2
View File
@@ -279,6 +279,7 @@
"magicShelf": {
"optionsLabel": "Opciones",
"editMagicShelf": "Editar estante mágico",
"exportJson": "Copiar JSON",
"deleteMagicShelf": "Eliminar estante mágico"
},
"confirm": {
@@ -298,6 +299,7 @@
"shelfDeleteFailedDetail": "Error al eliminar el estante",
"magicShelfDeletedDetail": "Estante mágico eliminado",
"magicShelfDeleteFailedDetail": "Error al eliminar el estante",
"magicShelfJsonCopiedDetail": "JSON del estante mágico copiado al portapapeles",
"failedSummary": "Error"
},
"loading": {
+9
View File
@@ -265,6 +265,15 @@
"comicCoverArtists": "Artistas de Portada",
"comicEditors": "Editores"
},
"importJson": {
"buttonLabel": "Importar",
"placeholder": "{\n \"type\": \"group\",\n \"join\": \"and\",\n \"rules\": [\n { \"field\": \"readStatus\", \"operator\": \"equals\", \"value\": \"READING\" }\n ]\n}",
"apply": "Aplicar",
"emptyError": "Pegue una configuración JSON primero.",
"parseError": "JSON inválido. Verifique la sintaxis e intente de nuevo.",
"structureError": "Estructura inválida. El JSON debe tener \"type\": \"group\" y un arreglo \"rules\".",
"successDetail": "Reglas importadas exitosamente. Revise y guarde cuando esté listo."
},
"toast": {
"validationErrorSummary": "Error de Validación",
"validationErrorDetail": "Debe agregar al menos una regla válida antes de guardar.",