From 541e642a2dc76266eaf3d6da2b32831ff84b245c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janis=20Daniel=20Da=CC=88hne?= <janis.daehne@informatik.uni-halle.de> Date: Wed, 26 Mar 2025 18:24:43 +0100 Subject: [PATCH] - made tooltip more precise why test assets cannot be added --- i18n/en.ts | 4 ++-- i18n/i18nRoot.ts | 4 ++-- .../dialog/customTestsDialog/changeCustomTestView.tsx | 2 +- .../dialogs/changeTestDialog/changeTestView.tsx | 2 +- .../exerciseTestsPanel/dialogs/changeTestView.tsx | 2 +- src/components/sites/exerciseEditorSite/headerBarContent.tsx | 2 +- src/constants.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/i18n/en.ts b/i18n/en.ts index 612e236c..0527da73 100644 --- a/i18n/en.ts +++ b/i18n/en.ts @@ -465,7 +465,7 @@ export const lang_en: LangObj = { "Export tests": "Export tests", "Import tests": "Import tests", "Importing tests ...": "Importing tests ...", - "Imports tests from a json file and saves the tests to the backend": "Imports tests from a json file and saves the tests to the backend", + "Imports tests from a json file and saves the tests to the backend immediately. Test assets (files) are newly created (not connected to original test).": "Imports tests from a json file and saves the tests to the backend immediately. Test assets (files) are newly created (not connected to original test).", "At least one test could not be created": "At least one test could not be created", "... all tests were created and saved": "... all tests were created and saved", "Lock exercise permanently" : "Lock exercise permanently", @@ -957,7 +957,7 @@ export const lang_en: LangObj = { "Note that when you detach a file and it has no connection to another exercise, it will get deleted!" : "Note that when you detach a file and it has no connection to another exercise then it will get deleted!", "Managing assets is only allowed for saved exercises (not for new exercises)": "Managing assets is only allowed for saved exercises (not for new exercises)", "All changes to assets are applied immediately in the backend (saving is not needed for this)!": "All changes to assets are applied immediately in the backend (saving is not needed for this)!", - "Managing test asset files is only allowed for saved tests (not for new tests)": "Managing test asset files is only allowed for saved tests (not for new tests)", + "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first": "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first", } diff --git a/i18n/i18nRoot.ts b/i18n/i18nRoot.ts index c969c35a..c939684f 100644 --- a/i18n/i18nRoot.ts +++ b/i18n/i18nRoot.ts @@ -476,7 +476,7 @@ export interface LangObj { "Export tests": string "Import tests": string "Importing tests ...": string - "Imports tests from a json file and saves the tests to the backend": string + "Imports tests from a json file and saves the tests to the backend immediately. Test assets (files) are newly created (not connected to original test).": string "At least one test could not be created": string "... all tests were created and saved": string "Lock exercise permanently": string @@ -961,7 +961,7 @@ export interface LangObj { "Note that when you detach a file and it has no connection to another exercise, it will get deleted!": string "Managing assets is only allowed for saved exercises (not for new exercises)": string "All changes to assets are applied immediately in the backend (saving is not needed for this)!": string - "Managing test asset files is only allowed for saved tests (not for new tests)": string + "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first": string } diff --git a/src/components/sites/doExerciseSite/customTestsPanel/dialog/customTestsDialog/changeCustomTestView.tsx b/src/components/sites/doExerciseSite/customTestsPanel/dialog/customTestsDialog/changeCustomTestView.tsx index 21c5d747..3689ba94 100644 --- a/src/components/sites/doExerciseSite/customTestsPanel/dialog/customTestsDialog/changeCustomTestView.tsx +++ b/src/components/sites/doExerciseSite/customTestsPanel/dialog/customTestsDialog/changeCustomTestView.tsx @@ -534,7 +534,7 @@ class ChangeCustomTestView extends React.Component<Props, any> { { this.props.test.id <= 0 && <HelpPopup className="mar-left-half" defaultText={getI18n(this.props.langId, - "Managing test asset files is only allowed for saved tests (not for new tests)" + "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first" )}/> } diff --git a/src/components/sites/editCustomProjectSite/dialogs/changeTestDialog/changeTestView.tsx b/src/components/sites/editCustomProjectSite/dialogs/changeTestDialog/changeTestView.tsx index 1ae8cf41..94181d01 100644 --- a/src/components/sites/editCustomProjectSite/dialogs/changeTestDialog/changeTestView.tsx +++ b/src/components/sites/editCustomProjectSite/dialogs/changeTestDialog/changeTestView.tsx @@ -618,7 +618,7 @@ class ChangeTestView extends React.Component<Props, any> { { this.props.test.id <= 0 && <HelpPopup className="mar-left-half" defaultText={getI18n(this.props.langId, - "Managing test asset files is only allowed for saved tests (not for new tests)" + "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first" )}/> } diff --git a/src/components/sites/exerciseEditorSite/exerciseTestsPanel/dialogs/changeTestView.tsx b/src/components/sites/exerciseEditorSite/exerciseTestsPanel/dialogs/changeTestView.tsx index 799d1b52..0221573c 100644 --- a/src/components/sites/exerciseEditorSite/exerciseTestsPanel/dialogs/changeTestView.tsx +++ b/src/components/sites/exerciseEditorSite/exerciseTestsPanel/dialogs/changeTestView.tsx @@ -613,7 +613,7 @@ class ChangeTestView extends React.Component<Props, any> { { this.props.test.id <= 0 && <HelpPopup className="mar-left-half" defaultText={getI18n(this.props.langId, - "Managing test asset files is only allowed for saved tests (not for new tests)" + "Managing test asset files is only allowed for saved tests (not for new tests), save the exercise first" )}/> } diff --git a/src/components/sites/exerciseEditorSite/headerBarContent.tsx b/src/components/sites/exerciseEditorSite/headerBarContent.tsx index 1359fcba..c1bb165b 100644 --- a/src/components/sites/exerciseEditorSite/headerBarContent.tsx +++ b/src/components/sites/exerciseEditorSite/headerBarContent.tsx @@ -417,7 +417,7 @@ class HeaderBar extends React.Component<Props, any> { }} /> </div> - <HelpPopup defaultText={getI18n(this.props.langId,'Imports tests from a json file and saves the tests to the backend')}/> + <HelpPopup defaultText={getI18n(this.props.langId,'Imports tests from a json file and saves the tests to the backend immediately. Test assets (files) are newly created (not connected to original test).')}/> <SimpleVDivider/> diff --git a/src/constants.ts b/src/constants.ts index f4bc357c..62e1f313 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,7 +13,7 @@ import Logger from './helpers/logger' * y - breaking changes / new features * z - fixes, small changes */ -export const versionString = '2.20.0' +export const versionString = '2.20.1' export const supportMail = 'yapex@informatik.uni-halle.de' -- GitLab