Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Design change on dashboard creation #6984

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ui/src/components/dashboard/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@
name: 'dashboards/update',
params: {id: props.id},
}"
data-test-id="dashboard-update-dashboard-button"
>
<el-button :icon="Pencil">
{{ $t("edit_custom_dashboard") }}
</el-button>
</router-link>
</li>
<li v-if="!props.id">
<router-link
:to="{name: 'dashboards/create'}"
data-test-id="dashboard-create-dashboard-button"
>
<el-button :icon="ViewDashboardEdit">
{{ $t("create_dashboard") }}
</el-button>
</router-link>
</li>
<li>
<router-link
:to="{name: 'flows/create'}"
Expand Down Expand Up @@ -42,6 +53,7 @@

import Pencil from "vue-material-design-icons/Pencil.vue";
import Plus from "vue-material-design-icons/Plus.vue";
import ViewDashboardEdit from "vue-material-design-icons/ViewDashboardEdit.vue";

const store = useStore();
const {t} = useI18n({useScope: "global"});
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/filter/segments/Dashboards.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<el-dropdown trigger="click" placement="bottom-end">
<KestraIcon placement="bottom">
<el-button :icon="ViewDashboardEdit">
<el-button :icon="Menu">
{{ selectedDashboard ?? $t('default_dashboard') }}
</el-button>
</KestraIcon>
Expand Down Expand Up @@ -73,7 +73,7 @@
<script setup lang="ts">
import {onBeforeMount, ref, computed, getCurrentInstance} from "vue";
import KestraIcon from "../../Kicon.vue";
import {ViewDashboardEdit, Plus, DeleteOutline, Magnify, Pencil} from "../utils/icons";
import {Menu, Plus, DeleteOutline, Magnify, Pencil} from "../utils/icons";
import {useI18n} from "vue-i18n";
import {useStore} from "vuex";
import {useRouter, useRoute} from "vue-router";
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/filter/utils/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import TagOutline from "vue-material-design-icons/TagOutline.vue";
import TimelineTextOutline from "vue-material-design-icons/TimelineTextOutline.vue";
import ViewDashboardEdit from "vue-material-design-icons/ViewDashboardEdit.vue";
import Pencil from "vue-material-design-icons/Pencil.vue";
import Menu from "vue-material-design-icons/Menu.vue";

export {
AccountCheck,
Expand All @@ -43,5 +44,6 @@ export {
TagOutline,
TimelineTextOutline,
ViewDashboardEdit,
Pencil
Pencil,
Menu
};
3 changes: 2 additions & 1 deletion ui/src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Neuen Wert hinzufügen"
},
"export_to_file": "In Datei exportieren",
"change state current state": "Aktueller Zustand ist:"
"change state current state": "Aktueller Zustand ist:",
"create_dashboard": "Dashboard erstellen"
}
}
1 change: 1 addition & 0 deletions ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@
"default_dashboard": "Default Dashboard",
"custom_dashboard": "Custom Dashboards",
"create_custom_dashboard": "Create new dashboard",
"create_dashboard": "Create Dashboard",
"edit_custom_dashboard": "Edit Dashboard",
"custom_dashboard_empty": "There are no results to be shown.",
"filters": {
Expand Down
3 changes: 2 additions & 1 deletion ui/src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Añadir un nuevo value"
},
"export_to_file": "Exportar a archivo",
"change state current state": "Estado actual es:"
"change state current state": "Estado actual es:",
"create_dashboard": "Crear Panel de Control"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Ajouter une nouvelle valeur"
},
"export_to_file": "Exporter vers un fichier",
"change state current state": "Statut actuel :"
"change state current state": "Statut actuel :",
"create_dashboard": "Créer un tableau de bord"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ एक नया value जोड़ें"
},
"export_to_file": "फ़ाइल में निर्यात करें",
"change state current state": "वर्तमान स्थिति है:"
"change state current state": "वर्तमान स्थिति है:",
"create_dashboard": "डैशबोर्ड बनाएं"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Aggiungi un nuovo value"
},
"export_to_file": "Esporta su file",
"change state current state": "Lo stato attuale è:"
"change state current state": "Lo stato attuale è:",
"create_dashboard": "Crea Dashboard"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ 新しいvalueを追加"
},
"export_to_file": "ファイルにエクスポート",
"change state current state": "現在のステータスは:"
"change state current state": "現在のステータスは:",
"create_dashboard": "ダッシュボードを作成"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ 새 value 추가"
},
"export_to_file": "파일로 내보내기",
"change state current state": "현재 상태는:"
"change state current state": "현재 상태는:",
"create_dashboard": "대시보드 생성"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Dodaj nową wartość"
},
"export_to_file": "Eksportuj do pliku",
"change state current state": "Aktualny status to:"
"change state current state": "Aktualny status to:",
"create_dashboard": "Utwórz Dashboard"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Adicionar um novo value"
},
"export_to_file": "Exportar para arquivo",
"change state current state": "Status atual é:"
"change state current state": "Status atual é:",
"create_dashboard": "Criar Dashboard"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ Добавить новое value"
},
"export_to_file": "Экспортировать в файл",
"change state current state": "Текущий статус:"
"change state current state": "Текущий статус:",
"create_dashboard": "Создать Dashboard"
}
}
3 changes: 2 additions & 1 deletion ui/src/translations/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
"adding_default": "+ 添加新value"
},
"export_to_file": "导出到文件",
"change state current state": "当前状态是:"
"change state current state": "当前状态是:",
"create_dashboard": "创建仪表板"
}
}