From c465414b4717c7ddde3085231ace452ea457ea6b Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Sat, 31 Oct 2026 14:09:09 +0100 Subject: [PATCH] feat: floating chat panel - ChatFloatingPanel: corner button with the DM and mention badge, the DM list and the open DM, a link to the full chat (chatPath) - starts the chat store itself and renders nothing for a non-member --- app/components/Chat/FloatingPanel.vue | 87 +++++++++++++++++++++++++++ i18n/locales/en.json | 7 +++ i18n/locales/pl.json | 7 +++ 3 files changed, 101 insertions(+) create mode 100644 app/components/Chat/FloatingPanel.vue diff --git a/app/components/Chat/FloatingPanel.vue b/app/components/Chat/FloatingPanel.vue new file mode 100644 index 0000000..ad5f0f1 --- /dev/null +++ b/app/components/Chat/FloatingPanel.vue @@ -0,0 +1,87 @@ + + + diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 12e98ae..152064b 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -163,6 +163,13 @@ }, "embed": { "opens": "(opens in a new tab)" + }, + "floating": { + "title": "Messages", + "full": "Open the chat", + "open": "Open messages", + "close": "Close messages", + "waiting": "{n} new for you" } } } diff --git a/i18n/locales/pl.json b/i18n/locales/pl.json index bc09999..11da8cf 100644 --- a/i18n/locales/pl.json +++ b/i18n/locales/pl.json @@ -163,6 +163,13 @@ }, "embed": { "opens": "(otwiera się w nowej karcie)" + }, + "floating": { + "title": "Wiadomości", + "full": "Otwórz czat", + "open": "Otwórz wiadomości", + "close": "Zamknij wiadomości", + "waiting": "nowe dla Ciebie: {n}" } } }