Skip to content

Commit

Permalink
IVYPORTAL-17410: Change the message for no tasks/cases available(#1023)
Browse files Browse the repository at this point in the history
(cherry picked from commit 235724a)
  • Loading branch information
pvthai-axonivy authored Sep 10, 2024
1 parent 2ce9185 commit 4ab44b6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 88 deletions.
14 changes: 2 additions & 12 deletions AxonIvyPortal/portal/cms/cms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -704,20 +704,10 @@ ch.ivy.addon.portalkit.ui.jsf:
filters: Filters
iconMessage:
caseWidget:
BEACH_PALM_SUNBED: You are awesome - all cases are done. Lean back and enjoy.
CHARGING_BATTERY_FULL_1: There are currently no cases. Time to recharge the batteries a little.
COFFEE_OF_HOT: Wow! Good job! All cases are completed. How about a quick coffee break?
RANKING_WINNER_MEDAL: Game, set and match! You did it, all cases are completed!
SOCCER_PLAYER: Goal! You did it, all cases completed. Short half-time break.
YOGA_MEDITATE: Well done! All cases are done. Inhale, exhale, relax.
EMPTY_MESSAGE: Currently, there are no cases available.
noCasesFoundWhenFilter: There are currently no cases considering the applied filter.
taskWidget:
BEACH_PALM_SUNBED: You are awesome - all tasks are done. Lean back and enjoy.
CHARGING_BATTERY_FULL_1: There are currently no tasks. Time to recharge the batteries a little.
COFFEE_OF_HOT: Wow! Good job! All tasks are completed. How about a quick coffee break?
RANKING_WINNER_MEDAL: Game, set and match! You did it, all tasks are completed!
SOCCER_PLAYER: Goal! You did it, all tasks completed. Short half-time break.
YOGA_MEDITATE: Well done! All tasks are done. Inhale, exhale, relax.
EMPTY_MESSAGE: Currently, there are no tasks available.
noTasksFoundWhenFilter: There are currently no tasks after applied filter.
loading: Loading...
noCategory: There are no categories
Expand Down
14 changes: 2 additions & 12 deletions AxonIvyPortal/portal/cms/cms_de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -875,20 +875,10 @@ ch.ivy.addon.portalkit.ui.jsf:
fullscreenMode: Vollbildmodus
iconMessage:
caseWidget:
BEACH_PALM_SUNBED: Sie sind großartig - alle Vorgänge sind erledigt. Lehnen Sie sich zurück und genießen Sie.
CHARGING_BATTERY_FULL_1: Zurzeit gibt es keine Vorgänge. Zeit, die Batterien ein wenig aufzuladen.
COFFEE_OF_HOT: Wahnsinn! Gut gemacht! Alle Vorgänge sind abgeschlossen. Wie wäre es mit einer kurzen Kaffeepause?
RANKING_WINNER_MEDAL: Spiel, Satz und Sieg! Du hast es geschafft, alle Vorgänge sind abgeschlossen!
SOCCER_PLAYER: Ziel erreicht! Du hast es geschafft, alle Vorgänge sind abgeschlossen. Kurze Halbzeitpause.
YOGA_MEDITATE: Gut gemacht! Alle Vorgänge sind erledigt. Einatmen, ausatmen, entspannen.
EMPTY_MESSAGE: Aktuell sind keine weiteren Cases vorhanden.
noCasesFoundWhenFilter: Derzeit gibt es keine Vorgänge nach dem angewandten Filter.
taskWidget:
BEACH_PALM_SUNBED: Sie sind großartig - alle Aufgaben sind erledigt. Lehnen Sie sich zurück und genießen Sie.
CHARGING_BATTERY_FULL_1: Derzeit gibt es keine Aufgaben. Zeit, die Batterien ein wenig aufzuladen.
COFFEE_OF_HOT: Wahnsinn! Gut gemacht! Alle Aufgaben sind erledigt. Wie wäre es mit einer kurzen Kaffeepause?
RANKING_WINNER_MEDAL: Spiel, Satz und Sieg! Du hast es geschafft, alle Aufgaben sind erledigt!
SOCCER_PLAYER: Ziel erreicht! Du hast es geschafft, alle Aufgaben sind erledigt. Kurze Halbzeitpause.
YOGA_MEDITATE: Gut gemacht! Alle Aufgaben sind erledigt. Einatmen, ausatmen, entspannen.
EMPTY_MESSAGE: Aktuell sind keine weiteren Aufgaben vorhanden.
noTasksFoundWhenFilter: Derzeit gibt es keine Aufgaben nach dem angewandten Filter.
loading: Laden...
noCategory: Es gibt keine Kategorien
Expand Down
14 changes: 2 additions & 12 deletions AxonIvyPortal/portal/cms/cms_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -877,20 +877,10 @@ ch.ivy.addon.portalkit.ui.jsf:
fullscreenMode: Fullscreen Mode
iconMessage:
caseWidget:
BEACH_PALM_SUNBED: You are awesome - all cases are done. Lean back and enjoy.
CHARGING_BATTERY_FULL_1: There are currently no cases. Time to recharge the batteries a little.
COFFEE_OF_HOT: Wow! Good job! All cases are completed. How about a quick coffee break?
RANKING_WINNER_MEDAL: Game, set and match! You did it, all cases are completed!
SOCCER_PLAYER: Goal! You did it, all cases completed. Short half-time break.
YOGA_MEDITATE: Well done! All cases are done. Inhale, exhale, relax.
EMPTY_MESSAGE: Currently, there are no cases available.
noCasesFoundWhenFilter: There are currently no cases after applied filter.
taskWidget:
BEACH_PALM_SUNBED: You are awesome - all tasks are done. Lean back and enjoy.
CHARGING_BATTERY_FULL_1: There are currently no tasks. Time to recharge the batteries a little.
COFFEE_OF_HOT: Wow! Good job! All tasks are completed. How about a quick coffee break?
RANKING_WINNER_MEDAL: Game, set and match! You did it, all tasks are completed!
SOCCER_PLAYER: Goal! You did it, all tasks completed. Short half-time break.
YOGA_MEDITATE: Well done! All tasks are done. Inhale, exhale, relax.
EMPTY_MESSAGE: Currently, there are no tasks available.
noTasksFoundWhenFilter: There are currently no tasks after applied filter.
loading: Loading...
noCategory: There are no categories
Expand Down
14 changes: 2 additions & 12 deletions AxonIvyPortal/portal/cms/cms_es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -874,20 +874,10 @@ ch.ivy.addon.portalkit.ui.jsf:
fullscreenMode: Modo de pantalla completa
iconMessage:
caseWidget:
BEACH_PALM_SUNBED: Eres increíble - todos los casos están hechos. Recuéstate y disfruta.
CHARGING_BATTERY_FULL_1: There are currently no cases. Time to recharge the batteries a little.
COFFEE_OF_HOT: ¡Vaya! ¡Buen trabajo! Todos los casos están completados. ¿Qué tal una pausa rápida para el café?
RANKING_WINNER_MEDAL: ¡Juego, set y partido! Lo has conseguido, ¡todos los casos están completados!
SOCCER_PLAYER: ¡Gol! Lo has hecho, todos los casos completados. Breve descanso de medio tiempo.
YOGA_MEDITATE: ¡Bien hecho! Todos los casos están hechos. Inhala, exhala, relájate.
EMPTY_MESSAGE: Actualmente, no hay casos adicionales disponibles.
noCasesFoundWhenFilter: Actualmente no hay casos después de aplicar el filtro.
taskWidget:
BEACH_PALM_SUNBED: 'Eres increíble: todas las tareas están hechas. Recuéstate y disfruta.'
CHARGING_BATTERY_FULL_1: Actualmente no hay tareas. Es hora de recargar un poco las pilas.
COFFEE_OF_HOT: ¡Vaya! ¡Buen trabajo! Todas las tareas están completadas. ¿Qué tal una pausa rápida para el café?
RANKING_WINNER_MEDAL: ¡Juego, set y partido! Lo has conseguido, ¡todas las tareas están completadas!
SOCCER_PLAYER: ¡Gol! Lo hiciste, todas las tareas completadas. Breve descanso de medio tiempo.
YOGA_MEDITATE: Bien hecho. Todas las tareas están hechas. Inhala, exhala, relájate.
EMPTY_MESSAGE: Actualmente, no hay tareas adicionales disponibles.
noTasksFoundWhenFilter: Actualmente no hay tareas después del filtro aplicado.
loading: Cargando...
noCategory: No hay categorías
Expand Down
14 changes: 2 additions & 12 deletions AxonIvyPortal/portal/cms/cms_fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -871,20 +871,10 @@ ch.ivy.addon.portalkit.ui.jsf:
fullscreenMode: Mode plein écran
iconMessage:
caseWidget:
BEACH_PALM_SUNBED: Vous êtes géniale - toutes les affaires sont réglées. Détendez-vous et profitez-en.
CHARGING_BATTERY_FULL_1: Il n'y a actuellement aucun cas. Il est temps de recharger un peu les batteries.
COFFEE_OF_HOT: Wow ! Bon travail ! Toutes les affaires sont terminées. Que diriez-vous d'une petite pause café ?
RANKING_WINNER_MEDAL: Jeu, set et match ! Vous avez réussi, toutes les affaires sont terminées !
SOCCER_PLAYER: But ! Vous avez réussi, toutes les affaires sont terminées. Petite pause à la mi-temps.
YOGA_MEDITATE: Bien joué ! Tous les cas sont terminés. Inspirez, expirez, détendez-vous.
EMPTY_MESSAGE: Actuellement, il n'y a pas de cas supplémentaires disponibles.
noCasesFoundWhenFilter: Il n'y a actuellement aucun cas après le filtre appliqué.
taskWidget:
BEACH_PALM_SUNBED: Vous êtes génial - toutes les tâches sont terminées. Détendez-vous et profitez-en.
CHARGING_BATTERY_FULL_1: Il n'y a actuellement aucune tâche. Il est temps de recharger un peu les batteries.
COFFEE_OF_HOT: Ouah ! Bon travail ! Toutes les tâches sont terminées. Que diriez-vous d'une petite pause café ?
RANKING_WINNER_MEDAL: Jeu, set et match ! Vous avez réussi, toutes les tâches sont terminées !
SOCCER_PLAYER: But ! Vous avez réussi, toutes les tâches sont terminées. Petite pause à la mi-temps.
YOGA_MEDITATE: Bien joué ! Toutes les tâches sont terminées. Inspirez, expirez, détendez-vous.
EMPTY_MESSAGE: Actuellement, il n'y a pas de tâches supplémentaires disponibles.
noTasksFoundWhenFilter: Il n'y a actuellement aucune tâche après le filtre appliqué.
loading: Chargement...
noCategory: Il n'y a pas de catégories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ public class DashboardBean implements Serializable {
private List<WidgetFilterModel> deleteFilters;
private ITask selectedTask;
private boolean isRunningTaskWhenClickingOnTaskInList;
private CaseEmptyMessage noCasesMessage;
private TaskEmptyMessage noTasksMessage;
private List<DashboardTemplate> dashboardTemplates;
protected String translatedText;
protected String warningText;
Expand Down Expand Up @@ -380,23 +378,11 @@ public void setDeleteFilters(List<WidgetFilterModel> deleteFilters) {
}

public CaseEmptyMessage getNoCasesMessage() {
if (noCasesMessage == null) {
List<CaseEmptyMessage> messages = Stream.of(CaseEmptyMessage.values()).collect(Collectors.toList());
Random random = new Random();
int index = random.ints(0, messages.size()).findFirst().getAsInt();
noCasesMessage = messages.get(index);
}
return noCasesMessage;
return CaseEmptyMessage.EMPTY_MESSAGE;
}

public TaskEmptyMessage getNoTasksMessage() {
if (noTasksMessage == null) {
List<TaskEmptyMessage> messages = Stream.of(TaskEmptyMessage.values()).collect(Collectors.toList());
Random random = new Random();
int index = random.ints(0, messages.size()).findFirst().getAsInt();
noTasksMessage = messages.get(index);
}
return noTasksMessage;
return TaskEmptyMessage.EMPTY_MESSAGE;
}

public List<DashboardTemplate> getDashboardTemplates() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
import ch.ivyteam.ivy.environment.Ivy;

public enum CaseEmptyMessage {
COFFEE_OF_HOT("si-coffee-cup-hot"),
YOGA_MEDITATE("si-yoga-meditate"),
RANKING_WINNER_MEDAL("si-ranking-winner-medal"),
SOCCER_PLAYER("si-soccer-player"),
CHARGING_BATTERY_FULL_1("si-charging-battery-full-1"),
BEACH_PALM_SUNBED("si-beach-palm-sunbed");
EMPTY_MESSAGE("si-task-list-edit");

private String icon;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
import ch.ivyteam.ivy.environment.Ivy;

public enum TaskEmptyMessage {
COFFEE_OF_HOT("si-coffee-cup-hot"),
YOGA_MEDITATE("si-yoga-meditate"),
RANKING_WINNER_MEDAL("si-ranking-winner-medal"),
SOCCER_PLAYER("si-soccer-player"),
CHARGING_BATTERY_FULL_1("si-charging-battery-full-1"),
BEACH_PALM_SUNBED("si-beach-palm-sunbed");
EMPTY_MESSAGE("si-task-list-edit");

private String icon;

Expand Down

0 comments on commit 4ab44b6

Please sign in to comment.