Skip to content

Commit 2021e27

Browse files
UBERF-12988: Add integration status and redesign integration state (#9643)
* UBERF-12988: Add integration status and redesign integration state Signed-off-by: Artem Savchenko <[email protected]> * Update plugins/setting-assets/lang/es.json Co-authored-by: Copilot <[email protected]> Signed-off-by: Artyom Savchenko <[email protected]> * UBERF-12988: Get state from event Signed-off-by: Artem Savchenko <[email protected]> * UBERF-12988: Add isLoading for status Signed-off-by: Artem Savchenko <[email protected]> * UBERF-12988: Fix svelte-check Signed-off-by: Artem Savchenko <[email protected]> --------- Signed-off-by: Artem Savchenko <[email protected]> Signed-off-by: Artyom Savchenko <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 568d091 commit 2021e27

File tree

60 files changed

+378
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+378
-385
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script lang="ts">
2+
import type { Status } from '@hcengineering/platform'
3+
import { tooltip as tp } from '../tooltips'
4+
import type { LabelAndProps } from '../types'
5+
6+
export let status: Status
7+
export let overflow: boolean = true
8+
export let multicolor: boolean = true
9+
export let tooltip: LabelAndProps | undefined = undefined
10+
</script>
11+
12+
<div class="flex-center container {status.severity}" class:overflow-label={overflow} class:multicolor use:tp={tooltip}>
13+
<div class="status-circle"></div>
14+
</div>
15+
16+
<style lang="scss">
17+
.container {
18+
user-select: none;
19+
color: var(--theme-content-color);
20+
&.OK {
21+
color: var(--theme-won-color);
22+
}
23+
&.WARNING {
24+
color: var(--theme-warning-color);
25+
}
26+
&.ERROR {
27+
color: var(--theme-lost-color);
28+
}
29+
}
30+
31+
.status-circle {
32+
width: 0.5rem;
33+
height: 0.5rem;
34+
border-radius: 50%;
35+
background-color: currentColor;
36+
}
37+
</style>

packages/ui/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export { default as ButtonGroup } from './components/ButtonGroup.svelte'
6161
export { default as FilterButton } from './components/FilterButton.svelte'
6262
export { default as FilterCategoryPopup } from './components/FilterCategoryPopup.svelte'
6363
export { default as Status } from './components/Status.svelte'
64+
export { default as StatusBadge } from './components/StatusBadge.svelte'
6465
export { default as StateTag } from './components/StateTag.svelte'
6566
export { default as Component } from './components/Component.svelte'
6667
export { default as Icon } from './components/Icon.svelte'

plugins/calendar-assets/lang/cs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Poslední",
123123
"Weekday": "Všední den",
124124
"WeekendDay": "Víkendový den",
125-
"NotConnectedIntegration": "Účet {email} není integrován s pracovním prostorem",
126125
"SynchronizedCalendars": "Synchronizované kalendáře",
127126
"Account": "Účet",
128127
"NoCalendars": "Kalendáře pro synchronizaci nejsou vybrány"

plugins/calendar-assets/lang/de.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Letzter",
123123
"Weekday": "Wochentag",
124124
"WeekendDay": "Wochenendtag",
125-
"NotConnectedIntegration": "Das Konto {email} ist nicht mit dem Arbeitsbereich integriert",
126125
"SynchronizedCalendars": "Synchronisierte Kalender",
127126
"Account": "Konto",
128127
"NoCalendars": "Keine Kalender zur Synchronisation ausgewählt"

plugins/calendar-assets/lang/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Last",
123123
"Weekday": "Weekday",
124124
"WeekendDay": "Weekend day",
125-
"NotConnectedIntegration": "The account {email} is not integrated with the workspace",
126125
"SynchronizedCalendars": "Synchronized calendars",
127126
"Account": "Account",
128127
"NoCalendars": "No calendars selected for synchronization"

plugins/calendar-assets/lang/es.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Último",
123123
"Weekday": "Día laborable",
124124
"WeekendDay": "Día de descanso",
125-
"NotConnectedIntegration": "La cuenta {email} no está integrada con el espacio de trabajo",
126125
"SynchronizedCalendars": "Calendarios sincronizados",
127126
"Account": "Cuenta",
128127
"NoCalendars": "No se seleccionaron calendarios para la sincronización"

plugins/calendar-assets/lang/fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Dernier",
123123
"Weekday": "Jour de la semaine",
124124
"WeekendDay": "Jour de congé",
125-
"NotConnectedIntegration": "Le compte {email} n'est pas intégré au workspace",
126125
"SynchronizedCalendars": "Calendriers synchronisés",
127126
"Account": "Compte",
128127
"NoCalendars": "Aucun calendrier sélectionné pour la synchronisation"

plugins/calendar-assets/lang/it.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Ultimo",
123123
"Weekday": "Giorno lavorativo",
124124
"WeekendDay": "Giorno libero",
125-
"NotConnectedIntegration": "L'account {email} non è integrato con il workspace",
126125
"SynchronizedCalendars": "Calendari sincronizzati",
127126
"Account": "Account",
128127
"NoCalendars": "Nessun calendario selezionato per la sincronizzazione"

plugins/calendar-assets/lang/ja.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
"Last": "最後",
119119
"Weekday": "平日",
120120
"WeekendDay": "休日",
121-
"NotConnectedIntegration": "アカウント {email} はワークスペースに統合されていません",
122121
"SynchronizedCalendars": "同期されたカレンダー",
123122
"Account": "アカウント",
124123
"NoCalendars": "同期するカレンダーが選択されていません"

plugins/calendar-assets/lang/pt.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
"Last": "Último",
123123
"Weekday": "Dia da semana",
124124
"WeekendDay": "Folga",
125-
"NotConnectedIntegration": "A conta {email} não está integrada com o espaço de trabalho",
126125
"SynchronizedCalendars": "Calendários sincronizados",
127126
"Account": "Conta",
128127
"NoCalendars": "Nenhum calendário encontrado"

0 commit comments

Comments
 (0)