From 363f1e5a688c8a24e35d54500708ab19f40475d8 Mon Sep 17 00:00:00 2001 From: Judah Sotomayor Date: Fri, 26 Sep 2025 10:50:24 -0400 Subject: [PATCH 01/19] feat(intl): Add auto-publish setting descriptions. --- src/lib/locales/en-US.json | 52 ++++++++++++------------------------- src/lib/locales/es-419.json | 52 ++++++++++++------------------------- src/lib/locales/fr-FR.json | 4 +++ 3 files changed, 36 insertions(+), 72 deletions(-) diff --git a/src/lib/locales/en-US.json b/src/lib/locales/en-US.json index cfe0a95e2..a48676ec7 100644 --- a/src/lib/locales/en-US.json +++ b/src/lib/locales/en-US.json @@ -22,13 +22,8 @@ "localePicker_placeholder": "Search by Language...", "localePicker_region": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Region", "countPlural=other": "Regions" @@ -37,13 +32,8 @@ ], "localePicker_name": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Name", "countPlural=other": "Names" @@ -52,13 +42,8 @@ ], "localePicker_tag": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Tag", "countPlural=other": "Tags" @@ -67,13 +52,8 @@ ], "localePicker_variant": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Variant", "countPlural=other": "Variants" @@ -266,12 +246,8 @@ "products_unpublished": "Unpublished", "products_numArtifacts": [ { - "declarations": [ - "local countPlural = amount: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["local countPlural = amount: plural"], + "selectors": ["countPlural"], "match": { "amount=0": "No Product Files", "countPlural=one": "{amount} Product File", @@ -390,8 +366,12 @@ "project_details_language": "Language", "project_details_type": "Project Type", "project_settings_title": "Settings", - "project_autoRebuild_title": "Automatic Rebuilds", + "project_autoPublish_title": "Auto Publish on Rebuild", + "project_autoPublish_description": "When the rebuild workflow is run, skip verification and publish the app. Send a notification to owner and reviewers that the app was published without review.", + "project_autoRebuild_title": "Automatic Rebuild", "project_autoRebuild_description": "When automatic rebuilds are on, Scriptoria will automatically rebuild your products when the input source is updated", + "project_autoRebuild_on_update_title": "Rebuild on Software Update", + "project_autoRebuild_on_update_description": "When the App Builder software used by Scriptoria is updated, rebuild the products of the project that have completed the initial workflow and are not currently being rebuilt.", "project_orgDownloads_title": "Allow Other Organizations to download", "project_orgDownloads_description": "When this setting is on, any Scriptoria User that is able to view your project in the Directory will be able to download the Product Files (the outputs of the products).", "project_visibility_title": "Public Visibility", @@ -573,4 +553,4 @@ "system_publishFailed": "Publish failed", "system_unavailable": "Scriptoria is currently unable to process background tasks", "downloads_title": "Downloads" -} \ No newline at end of file +} diff --git a/src/lib/locales/es-419.json b/src/lib/locales/es-419.json index 91272dfdf..25ba667bb 100644 --- a/src/lib/locales/es-419.json +++ b/src/lib/locales/es-419.json @@ -22,13 +22,8 @@ "localePicker_placeholder": "Buscar por idioma...", "localePicker_region": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Region", "countPlural=other": "Region" @@ -37,13 +32,8 @@ ], "localePicker_name": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Name", "countPlural=other": "Names" @@ -52,13 +42,8 @@ ], "localePicker_tag": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Tag", "countPlural=other": "Tags" @@ -67,13 +52,8 @@ ], "localePicker_variant": [ { - "declarations": [ - "input count", - "local countPlural = count: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["input count", "local countPlural = count: plural"], + "selectors": ["countPlural"], "match": { "countPlural=one": "Variant", "countPlural=other": "Variants" @@ -266,12 +246,8 @@ "products_unpublished": "Sin publicar", "products_numArtifacts": [ { - "declarations": [ - "local countPlural = amount: plural" - ], - "selectors": [ - "countPlural" - ], + "declarations": ["local countPlural = amount: plural"], + "selectors": ["countPlural"], "match": { "amount=0": "No hay archivos de producto", "countPlural=one": "{amount} Product File", @@ -390,8 +366,12 @@ "project_details_language": "Lenguaje", "project_details_type": "Tipo de proyecto", "project_settings_title": "Configuración", - "project_autoRebuild_title": "Recompilaciones automáticas", + "project_autoPublish_title": "Publicación Automática al Reconstruir", + "project_autoPublish_description": "Cuando se ejecuta la compilación, omite la verificación y publica la aplicación. Notificar al propietaro y a los revisores que la aplicación se publicó sin revisión.", + "project_autoRebuild_title": "Recompilaciones Automáticas", "project_autoRebuild_description": "Cuando las recompilaciones automáticas están activadas, Scriptoria reconstruirá sus productos automáticamente cuando el código fuente se actualice", + "project_autoRebuild_on_update_title": "Recompilar cuando se Actualiza el Software", + "project_autoRebuild_on_update_description": "Cuando el App Builder se actualice, vuelva a compilar los productos del proyecto que se han completado el flujo de trabajo inicial y que no se están reconstruyendo.", "project_orgDownloads_title": "Permitir descargar a otras organizaciones", "project_orgDownloads_description": "Cuando esta configuración está activada, cualquier usuario de Scriptoria que pueda ver su proyecto en el Directorio podrá descargar los archivos del producto (los resultados de los productos).", "project_visibility_title": "Visibilidad pública", @@ -573,4 +553,4 @@ "system_publishFailed": "Publish failed", "system_unavailable": "Scriptoria actualmente no puede procesar tareas", "downloads_title": "Downloads" -} \ No newline at end of file +} diff --git a/src/lib/locales/fr-FR.json b/src/lib/locales/fr-FR.json index 2720fc5c1..e96928e00 100644 --- a/src/lib/locales/fr-FR.json +++ b/src/lib/locales/fr-FR.json @@ -366,7 +366,11 @@ "project_details_language": "Language", "project_details_type": "Project Type", "project_settings_title": "Settings", + "project_autoPublish_title": "Auto Publish on Rebuild", + "project_autoPublish_description": "When the rebuild workflow is run, skip verification and publish the app. Send a notification to owner and reviewers that the app was published without review.", "project_autoRebuild_title": "Automatic Rebuilds", + "project_autoRebuild_on_update_title": "Rebuild on Software Update", + "project_autoRebuild_on_update_description": "When the App Builder software used by Scriptoria is updated, rebuild the products of the project that have completed the initial workflow and are not currently being rebuilt.", "project_autoRebuild_description": "When automatic rebuilds are on, Scriptoria will automatically rebuild your products when the input source is updated", "project_orgDownloads_title": "Allow Other Organizations to download", "project_orgDownloads_description": "When this setting is on, any Scriptoria User that is able to view your project in the Directory will be able to download the Product Files (the outputs of the products).", From e7d26431a36489e4076c8dfa2b37fc64692fbf8e Mon Sep 17 00:00:00 2001 From: Judah Sotomayor Date: Fri, 26 Sep 2025 11:21:29 -0400 Subject: [PATCH 02/19] feat(projects): Generalize PublicPrivateToggle. Generalize the PublicPrivateToggle component into Toggle. Use Toggle in the project settings page. This will enable its use in settings. --- ...blicPrivateToggle.svelte => Toggle.svelte} | 37 ++++++++++------ .../[id=idNumber]/forms/Settings.svelte | 43 ++++++++----------- 2 files changed, 41 insertions(+), 39 deletions(-) rename src/lib/components/settings/{PublicPrivateToggle.svelte => Toggle.svelte} (62%) diff --git a/src/lib/components/settings/PublicPrivateToggle.svelte b/src/lib/components/settings/Toggle.svelte similarity index 62% rename from src/lib/components/settings/PublicPrivateToggle.svelte rename to src/lib/components/settings/Toggle.svelte index 194c3c861..5469170c7 100644 --- a/src/lib/components/settings/PublicPrivateToggle.svelte +++ b/src/lib/components/settings/Toggle.svelte @@ -1,5 +1,5 @@