From 8ed1e4b669c6c8e5c805e4e623ededf6a6f0b6fe Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 23 Sep 2026 17:01:55 +0200 Subject: [PATCH] fix(v2): lay the channels tab out like the users tab The list sits straight on the tab, without a section card around it, and Add channel goes under it on the left, as Add does under the users table. Co-Authored-By: Claude Opus 5.5 --- frontend/src/locales/bg_BG/notifications.json | 1 - frontend/src/locales/cs_CZ/notifications.json | 1 - frontend/src/locales/de_DE/notifications.json | 1 - frontend/src/locales/en_GB/notifications.json | 1 - frontend/src/locales/en_US/notifications.json | 1 - frontend/src/locales/es_ES/notifications.json | 1 - frontend/src/locales/fr_FR/notifications.json | 1 - frontend/src/locales/hu_HU/notifications.json | 1 - frontend/src/locales/it_IT/notifications.json | 1 - frontend/src/locales/ja_JP/notifications.json | 1 - frontend/src/locales/ko_KR/notifications.json | 1 - frontend/src/locales/pl_PL/notifications.json | 1 - frontend/src/locales/pt_BR/notifications.json | 1 - frontend/src/locales/ro_RO/notifications.json | 1 - frontend/src/locales/ru_RU/notifications.json | 1 - frontend/src/locales/tr_TR/notifications.json | 1 - frontend/src/locales/zh_CN/notifications.json | 1 - frontend/src/locales/zh_TW/notifications.json | 1 - .../NotificationChannelsSection.vue | 279 +++++++++--------- 19 files changed, 140 insertions(+), 157 deletions(-) diff --git a/frontend/src/locales/bg_BG/notifications.json b/frontend/src/locales/bg_BG/notifications.json index 62089c98b..90a543cca 100644 --- a/frontend/src/locales/bg_BG/notifications.json +++ b/frontend/src/locales/bg_BG/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Все още няма канали", "channels-empty-hint": "Препращайте известията си към Discord, ntfy, имейл или всеки уебхук.", "channels-load-failed": "Каналите ви не можаха да бъдат заредени", - "channels-section": "Канали за известия", "dismiss-all": "Затвори всички", "dismiss-all-body": "Всички известия ще бъдат премахнати.", "dismiss-all-title": "Затваряне на всички известия?", diff --git a/frontend/src/locales/cs_CZ/notifications.json b/frontend/src/locales/cs_CZ/notifications.json index 30722e58d..896b3d2e7 100644 --- a/frontend/src/locales/cs_CZ/notifications.json +++ b/frontend/src/locales/cs_CZ/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Zatím žádné kanály", "channels-empty-hint": "Přeposílejte oznámení na Discord, ntfy, e-mail nebo jakýkoli webhook.", "channels-load-failed": "Vaše kanály se nepodařilo načíst", - "channels-section": "Kanály oznámení", "dismiss-all": "Zavřít vše", "dismiss-all-body": "Všechna oznámení budou odstraněna.", "dismiss-all-title": "Zavřít všechna oznámení?", diff --git a/frontend/src/locales/de_DE/notifications.json b/frontend/src/locales/de_DE/notifications.json index 1aa9d46d9..c06a066ae 100644 --- a/frontend/src/locales/de_DE/notifications.json +++ b/frontend/src/locales/de_DE/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Noch keine Kanäle", "channels-empty-hint": "Leite deine Benachrichtigungen an Discord, ntfy, E-Mail oder einen beliebigen Webhook weiter.", "channels-load-failed": "Deine Kanäle konnten nicht geladen werden", - "channels-section": "Benachrichtigungskanäle", "dismiss-all": "Alle verwerfen", "dismiss-all-body": "Alle Benachrichtigungen werden entfernt.", "dismiss-all-title": "Alle Benachrichtigungen verwerfen?", diff --git a/frontend/src/locales/en_GB/notifications.json b/frontend/src/locales/en_GB/notifications.json index 4397bd6c2..00200a192 100644 --- a/frontend/src/locales/en_GB/notifications.json +++ b/frontend/src/locales/en_GB/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "No channels yet", "channels-empty-hint": "Forward your notifications to Discord, ntfy, email or any webhook.", "channels-load-failed": "Could not load your channels", - "channels-section": "Notification channels", "dismiss-all": "Dismiss all", "dismiss-all-body": "Every notification will be removed.", "dismiss-all-title": "Dismiss all notifications?", diff --git a/frontend/src/locales/en_US/notifications.json b/frontend/src/locales/en_US/notifications.json index 4397bd6c2..00200a192 100644 --- a/frontend/src/locales/en_US/notifications.json +++ b/frontend/src/locales/en_US/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "No channels yet", "channels-empty-hint": "Forward your notifications to Discord, ntfy, email or any webhook.", "channels-load-failed": "Could not load your channels", - "channels-section": "Notification channels", "dismiss-all": "Dismiss all", "dismiss-all-body": "Every notification will be removed.", "dismiss-all-title": "Dismiss all notifications?", diff --git a/frontend/src/locales/es_ES/notifications.json b/frontend/src/locales/es_ES/notifications.json index 662b80acf..0f902c094 100644 --- a/frontend/src/locales/es_ES/notifications.json +++ b/frontend/src/locales/es_ES/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Aún no hay canales", "channels-empty-hint": "Reenvía tus notificaciones a Discord, ntfy, correo o cualquier webhook.", "channels-load-failed": "No se pudieron cargar tus canales", - "channels-section": "Canales de notificaciones", "dismiss-all": "Descartar todas", "dismiss-all-body": "Se eliminarán todas las notificaciones.", "dismiss-all-title": "¿Descartar todas las notificaciones?", diff --git a/frontend/src/locales/fr_FR/notifications.json b/frontend/src/locales/fr_FR/notifications.json index 0fabac543..9347b7748 100644 --- a/frontend/src/locales/fr_FR/notifications.json +++ b/frontend/src/locales/fr_FR/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Aucun canal pour l'instant", "channels-empty-hint": "Transférez vos notifications vers Discord, ntfy, l'e-mail ou n'importe quel webhook.", "channels-load-failed": "Impossible de charger vos canaux", - "channels-section": "Canaux de notification", "dismiss-all": "Tout ignorer", "dismiss-all-body": "Toutes les notifications seront supprimées.", "dismiss-all-title": "Ignorer toutes les notifications ?", diff --git a/frontend/src/locales/hu_HU/notifications.json b/frontend/src/locales/hu_HU/notifications.json index f86a0e4f7..a70e285f2 100644 --- a/frontend/src/locales/hu_HU/notifications.json +++ b/frontend/src/locales/hu_HU/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Még nincsenek csatornák", "channels-empty-hint": "Továbbítsd az értesítéseidet Discordra, ntfy-ra, e-mailbe vagy bármilyen webhookra.", "channels-load-failed": "Nem sikerült betölteni a csatornáidat", - "channels-section": "Értesítési csatornák", "dismiss-all": "Összes elvetése", "dismiss-all-body": "Az összes értesítés törlődik.", "dismiss-all-title": "Elveted az összes értesítést?", diff --git a/frontend/src/locales/it_IT/notifications.json b/frontend/src/locales/it_IT/notifications.json index 52a716179..a44f21ccc 100644 --- a/frontend/src/locales/it_IT/notifications.json +++ b/frontend/src/locales/it_IT/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Ancora nessun canale", "channels-empty-hint": "Inoltra le tue notifiche a Discord, ntfy, email o qualsiasi webhook.", "channels-load-failed": "Impossibile caricare i tuoi canali", - "channels-section": "Canali di notifica", "dismiss-all": "Ignora tutte", "dismiss-all-body": "Tutte le notifiche verranno rimosse.", "dismiss-all-title": "Ignorare tutte le notifiche?", diff --git a/frontend/src/locales/ja_JP/notifications.json b/frontend/src/locales/ja_JP/notifications.json index 9ac03e772..b4ec992b2 100644 --- a/frontend/src/locales/ja_JP/notifications.json +++ b/frontend/src/locales/ja_JP/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "チャンネルはまだありません", "channels-empty-hint": "通知を Discord、ntfy、メール、または任意の Webhook に転送できます。", "channels-load-failed": "チャンネルを読み込めませんでした", - "channels-section": "通知チャンネル", "dismiss-all": "すべて閉じる", "dismiss-all-body": "すべての通知が削除されます。", "dismiss-all-title": "すべての通知を閉じますか?", diff --git a/frontend/src/locales/ko_KR/notifications.json b/frontend/src/locales/ko_KR/notifications.json index 311745ab0..572d97e94 100644 --- a/frontend/src/locales/ko_KR/notifications.json +++ b/frontend/src/locales/ko_KR/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "아직 채널이 없습니다", "channels-empty-hint": "알림을 Discord, ntfy, 이메일 또는 모든 웹훅으로 전달하세요.", "channels-load-failed": "채널을 불러올 수 없습니다", - "channels-section": "알림 채널", "dismiss-all": "모두 닫기", "dismiss-all-body": "모든 알림이 삭제됩니다.", "dismiss-all-title": "모든 알림을 닫으시겠습니까?", diff --git a/frontend/src/locales/pl_PL/notifications.json b/frontend/src/locales/pl_PL/notifications.json index 20b69ccf2..3449f794d 100644 --- a/frontend/src/locales/pl_PL/notifications.json +++ b/frontend/src/locales/pl_PL/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Brak kanałów", "channels-empty-hint": "Przekazuj powiadomienia do Discorda, ntfy, na e-mail lub do dowolnego webhooka.", "channels-load-failed": "Nie udało się wczytać Twoich kanałów", - "channels-section": "Kanały powiadomień", "dismiss-all": "Odrzuć wszystkie", "dismiss-all-body": "Wszystkie powiadomienia zostaną usunięte.", "dismiss-all-title": "Odrzucić wszystkie powiadomienia?", diff --git a/frontend/src/locales/pt_BR/notifications.json b/frontend/src/locales/pt_BR/notifications.json index d9c492b1c..cb73d3c0a 100644 --- a/frontend/src/locales/pt_BR/notifications.json +++ b/frontend/src/locales/pt_BR/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Nenhum canal ainda", "channels-empty-hint": "Encaminhe suas notificações para o Discord, ntfy, e-mail ou qualquer webhook.", "channels-load-failed": "Não foi possível carregar seus canais", - "channels-section": "Canais de notificação", "dismiss-all": "Dispensar todas", "dismiss-all-body": "Todas as notificações serão removidas.", "dismiss-all-title": "Dispensar todas as notificações?", diff --git a/frontend/src/locales/ro_RO/notifications.json b/frontend/src/locales/ro_RO/notifications.json index 12b158b3d..b653deea8 100644 --- a/frontend/src/locales/ro_RO/notifications.json +++ b/frontend/src/locales/ro_RO/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Încă nu există canale", "channels-empty-hint": "Redirecționează notificările către Discord, ntfy, e-mail sau orice webhook.", "channels-load-failed": "Canalele tale nu au putut fi încărcate", - "channels-section": "Canale de notificare", "dismiss-all": "Închide toate", "dismiss-all-body": "Toate notificările vor fi eliminate.", "dismiss-all-title": "Închizi toate notificările?", diff --git a/frontend/src/locales/ru_RU/notifications.json b/frontend/src/locales/ru_RU/notifications.json index f4592fb89..5edf2a668 100644 --- a/frontend/src/locales/ru_RU/notifications.json +++ b/frontend/src/locales/ru_RU/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Каналов пока нет", "channels-empty-hint": "Пересылайте уведомления в Discord, ntfy, на эл. почту или в любой вебхук.", "channels-load-failed": "Не удалось загрузить ваши каналы", - "channels-section": "Каналы уведомлений", "dismiss-all": "Закрыть все", "dismiss-all-body": "Все уведомления будут удалены.", "dismiss-all-title": "Закрыть все уведомления?", diff --git a/frontend/src/locales/tr_TR/notifications.json b/frontend/src/locales/tr_TR/notifications.json index cba9e929b..4540cbfee 100644 --- a/frontend/src/locales/tr_TR/notifications.json +++ b/frontend/src/locales/tr_TR/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "Henüz kanal yok", "channels-empty-hint": "Bildirimlerinizi Discord, ntfy, e-posta veya herhangi bir webhook'a iletin.", "channels-load-failed": "Kanallarınız yüklenemedi", - "channels-section": "Bildirim kanalları", "dismiss-all": "Tümünü kapat", "dismiss-all-body": "Tüm bildirimler kaldırılacak.", "dismiss-all-title": "Tüm bildirimler kapatılsın mı?", diff --git a/frontend/src/locales/zh_CN/notifications.json b/frontend/src/locales/zh_CN/notifications.json index 1ec973cb6..27ad167b1 100644 --- a/frontend/src/locales/zh_CN/notifications.json +++ b/frontend/src/locales/zh_CN/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "暂无渠道", "channels-empty-hint": "将你的通知转发到 Discord、ntfy、电子邮件或任意 Webhook。", "channels-load-failed": "无法加载你的渠道", - "channels-section": "通知渠道", "dismiss-all": "全部忽略", "dismiss-all-body": "所有通知都将被移除。", "dismiss-all-title": "忽略所有通知?", diff --git a/frontend/src/locales/zh_TW/notifications.json b/frontend/src/locales/zh_TW/notifications.json index 450459ab4..eccb7d7e4 100644 --- a/frontend/src/locales/zh_TW/notifications.json +++ b/frontend/src/locales/zh_TW/notifications.json @@ -51,7 +51,6 @@ "channels-empty": "尚無管道", "channels-empty-hint": "將你的通知轉發到 Discord、ntfy、電子郵件或任何 Webhook。", "channels-load-failed": "無法載入你的管道", - "channels-section": "通知管道", "dismiss-all": "全部關閉", "dismiss-all-body": "所有通知都將被移除。", "dismiss-all-title": "關閉所有通知?", diff --git a/frontend/src/v2/components/Notifications/NotificationChannelsSection.vue b/frontend/src/v2/components/Notifications/NotificationChannelsSection.vue index 976388c0d..4079dc75d 100644 --- a/frontend/src/v2/components/Notifications/NotificationChannelsSection.vue +++ b/frontend/src/v2/components/Notifications/NotificationChannelsSection.vue @@ -16,7 +16,6 @@ import type { NotificationChannelSchema } from "@/__generated__"; import notificationChannelApi from "@/services/api/notificationChannel"; import { formatRelativeDate } from "@/utils"; import NotificationChannelDialog from "@/v2/components/Notifications/NotificationChannelDialog.vue"; -import SettingsSection from "@/v2/components/Settings/SettingsSection.vue"; import { useConfirm } from "@/v2/composables/useConfirm"; import { useGridNav } from "@/v2/composables/useGridNav"; import { useSnackbar } from "@/v2/composables/useSnackbar"; @@ -191,150 +190,144 @@ async function remove(channel: NotificationChannelSchema) {