diff --git a/app/javascript/dashboard/api/captain/notificationTemplates.js b/app/javascript/dashboard/api/captain/notificationTemplates.js deleted file mode 100644 index b98bd0173..000000000 --- a/app/javascript/dashboard/api/captain/notificationTemplates.js +++ /dev/null @@ -1,29 +0,0 @@ -import ApiClient from '../ApiClient'; - -class NotificationTemplatesAPI extends ApiClient { - constructor() { - super('inboxes', { accountScoped: true }); - } - - getAll(inboxId) { - return this.get(`${inboxId}/notification_templates`); - } - - create(inboxId, data) { - return this.post(`${inboxId}/notification_templates`, { - notification_template: data, - }); - } - - update(inboxId, id, data) { - return this.patch(`${inboxId}/notification_templates/${id}`, { - notification_template: data, - }); - } - - delete(inboxId, id) { - return this.delete(`${inboxId}/notification_templates/${id}`); - } -} - -export default new NotificationTemplatesAPI(); diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index efd55fb7a..138c93c9f 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -436,12 +436,6 @@ const menuItems = computed(() => { activeOn: ['captain_settings_reports'], to: accountScopedRoute('captain_settings_reports'), }, - { - name: 'Notifications', - label: t('SIDEBAR.CAPTAIN_NOTIFICATIONS'), - activeOn: ['captain_settings_notifications'], - to: accountScopedRoute('captain_settings_notifications'), - }, ], }, { diff --git a/app/javascript/dashboard/i18n/locale/en/captain.json b/app/javascript/dashboard/i18n/locale/en/captain.json index ccb25ce3c..f80e866b0 100644 --- a/app/javascript/dashboard/i18n/locale/en/captain.json +++ b/app/javascript/dashboard/i18n/locale/en/captain.json @@ -433,46 +433,6 @@ "LABEL": "Available for agent sending" } } - }, - "NOTIFICATIONS": { - "TITLE": "Automatic Notifications", - "DESCRIPTION": "Configure messages sent automatically before or after the guest's arrival.", - "LOADING": "Loading notifications...", - "ADD": "Add notification", - "ACTIVE": "Active", - "INACTIVE": "Inactive", - "DIRECTION": { - "BEFORE": "before", - "AFTER": "after", - "OF_ARRIVAL": "arrival" - }, - "FORM": { - "LABEL_PLACEHOLDER": "Template name (e.g. Arrival Instructions)", - "CONTENT_PLACEHOLDER": "Message to send... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", - "SEND": "Send", - "MINUTES": "min", - "CANCEL": "Cancel", - "SAVE": "Save" - }, - "CREATE": { - "SUCCESS": "Notification created successfully!", - "ERROR": "Error creating notification. Please try again." - }, - "UPDATE": { - "SUCCESS": "Notification updated!", - "ERROR": "Error updating notification." - }, - "DELETE": { - "SUCCESS": "Notification removed.", - "ERROR": "Error removing notification." - }, - "INBOX_LABEL": "Select inbox", - "NO_CAPTAIN_INBOXES": "No inboxes with Captain configured.", - "SELECT_INBOX_HINT": "Click an inbox above to view and configure its templates.", - "EMPTY": { - "TITLE": "No templates configured", - "DESC": "Create automatic message templates for this inbox." - } } }, "CAPTAIN": { diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index 2d1d53aa2..7fe22491f 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -347,7 +347,6 @@ "CAPTAIN_FUNNEL": "Conversion Funnel", "CAPTAIN_LIFECYCLE": "Customer Journey", "CAPTAIN_REPORTS": "AI Reports", - "CAPTAIN_NOTIFICATIONS": "Automatic Notifications", "HOME": "Home", "AGENTS": "Agents", "AGENT_BOTS": "Bots", diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json index c7f291426..183529ed2 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json @@ -434,47 +434,6 @@ "LABEL": "Disponível para envio pelos agentes" } } - }, - "NOTIFICATIONS": { - "TITLE": "Notificações Automáticas", - "DESCRIPTION": "Configure mensagens automáticas enviadas antes ou depois da chegada do hóspede.", - "LOADING": "Carregando notificações...", - "ADD": "Adicionar notificação", - "ACTIVE": "Ativo", - "INACTIVE": "Inativo", - "DIRECTION": { - "BEFORE": "antes", - "AFTER": "depois", - "OF_ARRIVAL": "da chegada" - }, - "TIMING_LABEL": "da chegada", - "FORM": { - "LABEL_PLACEHOLDER": "Nome do template (ex: Orientações de Chegada)", - "CONTENT_PLACEHOLDER": "Mensagem a enviar... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", - "SEND": "Enviar", - "MINUTES": "min", - "CANCEL": "Cancelar", - "SAVE": "Salvar" - }, - "CREATE": { - "SUCCESS": "Notificação criada com sucesso!", - "ERROR": "Erro ao criar notificação. Tente novamente." - }, - "UPDATE": { - "SUCCESS": "Notificação atualizada!", - "ERROR": "Erro ao atualizar notificação." - }, - "DELETE": { - "SUCCESS": "Notificação removida.", - "ERROR": "Erro ao remover notificação." - }, - "INBOX_LABEL": "Selecione a caixa de entrada", - "NO_CAPTAIN_INBOXES": "Nenhuma caixa de entrada com Captain configurado.", - "SELECT_INBOX_HINT": "Clique em uma caixa de entrada acima para ver e configurar os templates.", - "EMPTY": { - "TITLE": "Nenhum template configurado", - "DESC": "Configure as permissões das informações que o sistema utiliza. Por ex.: Quais imagens enviar durante as aproximações." - } } }, "CAPTAIN": { diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/settings.json b/app/javascript/dashboard/i18n/locale/pt_BR/settings.json index b893d9ac1..294a1f9a0 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/settings.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/settings.json @@ -346,7 +346,6 @@ "CAPTAIN_FUNNEL": "Funil de Conversão", "CAPTAIN_LIFECYCLE": "Jornada do Cliente", "CAPTAIN_REPORTS": "Relatórios IA", - "CAPTAIN_NOTIFICATIONS": "Notificações Automáticas", "HOME": "Principal", "AGENTS": "Agentes", "AGENT_BOTS": "Robôs", diff --git a/app/javascript/dashboard/routes/dashboard/settings/captain/captain.routes.js b/app/javascript/dashboard/routes/dashboard/settings/captain/captain.routes.js index 91f75deb3..c99b08b3c 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/captain/captain.routes.js +++ b/app/javascript/dashboard/routes/dashboard/settings/captain/captain.routes.js @@ -8,7 +8,6 @@ import UnitEdit from './units/Edit.vue'; import GalleryIndex from './gallery/Index.vue'; import GalleryEdit from './gallery/Edit.vue'; const ReportsIndex = () => import('./reports/Index.vue'); -const NotificationsIndex = () => import('./notifications/Index.vue'); export default { routes: [ @@ -78,14 +77,6 @@ export default { permissions: ['administrator'], }, }, - { - path: 'notifications', - name: 'captain_settings_notifications', - component: NotificationsIndex, - meta: { - permissions: ['administrator'], - }, - }, ], }, ], diff --git a/app/javascript/dashboard/routes/dashboard/settings/captain/notifications/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/captain/notifications/Index.vue deleted file mode 100644 index 1f7778b25..000000000 --- a/app/javascript/dashboard/routes/dashboard/settings/captain/notifications/Index.vue +++ /dev/null @@ -1,443 +0,0 @@ - - -