Merge pull request #6953 from Ocelot-Social-Community/6678-add-chat-item-to-avatar-navigation-menu

feat(webapp): add chat item to avatar navigation menu and change title of notification by removing `All …`
This commit is contained in:
Wolfgang Huß 2024-01-26 11:14:50 +01:00 committed by GitHub
commit ca26f21246
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 176 additions and 42 deletions

View File

@ -113,9 +113,9 @@ describe('AvatarMenu.vue', () => {
expect(settingsLink.exists()).toBe(true) expect(settingsLink.exists()).toBe(true)
}) })
it('displays a total of 4 links', () => { it('displays a total of 6 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(4) expect(allLinks).toHaveLength(6)
}) })
}) })
@ -139,9 +139,9 @@ describe('AvatarMenu.vue', () => {
expect(moderationLink.exists()).toBe(true) expect(moderationLink.exists()).toBe(true)
}) })
it('displays a total of 5 links', () => { it('displays a total of 7 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(5) expect(allLinks).toHaveLength(7)
}) })
}) })
@ -165,9 +165,9 @@ describe('AvatarMenu.vue', () => {
expect(adminLink.exists()).toBe(true) expect(adminLink.exists()).toBe(true)
}) })
it('displays a total of 6 links', () => { it('displays a total of 8 links', () => {
const allLinks = wrapper.findAll('.ds-menu-item') const allLinks = wrapper.findAll('.ds-menu-item')
expect(allLinks).toHaveLength(6) expect(allLinks).toHaveLength(8)
}) })
}) })
}) })

View File

@ -93,7 +93,17 @@ export default {
icon: 'users', icon: 'users',
}, },
{ {
name: this.$t('notifications.pageLink'), name: this.$t('header.avatarMenu.map'),
path: `/map`,
icon: 'globe',
},
{
name: this.$t('header.avatarMenu.chats'),
path: `/chat`,
icon: 'chat-bubble',
},
{
name: this.$t('header.avatarMenu.notifications'),
path: '/notifications', path: '/notifications',
icon: 'bell', icon: 'bell',
}, },

View File

@ -4,7 +4,7 @@
ghost ghost
circle circle
v-tooltip="{ v-tooltip="{
content: $t('header.chat.tooltip'), content: $t('header.chats.tooltip'),
placement: 'bottom-start', placement: 'bottom-start',
}" }"
> >

View File

@ -6,7 +6,7 @@
circle circle
ghost ghost
v-tooltip="{ v-tooltip="{
content: $t('group.button.tooltip'), content: $t('header.groups.tooltip'),
placement: 'bottom-start', placement: 'bottom-start',
}" }"
/> />

View File

@ -6,7 +6,7 @@
circle circle
ghost ghost
v-tooltip="{ v-tooltip="{
content: $t('map.button.tooltip'), content: $t('header.map.tooltip'),
placement: 'bottom-start', placement: 'bottom-start',
}" }"
> >

View File

@ -9,7 +9,7 @@
ghost ghost
circle circle
v-tooltip="{ v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'), content: $t('header.notifications.tooltip'),
placement: 'bottom-start', placement: 'bottom-start',
}" }"
/> />
@ -20,7 +20,7 @@
ghost ghost
circle circle
v-tooltip="{ v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'), content: $t('header.notifications.tooltip'),
placement: 'bottom-start', placement: 'bottom-start',
}" }"
@click="toggleMenu" @click="toggleMenu"

View File

@ -481,9 +481,6 @@
"addUserNoOptions": "Keine Nutzer gefunden!", "addUserNoOptions": "Keine Nutzer gefunden!",
"addUserPlaceholder": "Nutzername", "addUserPlaceholder": "Nutzername",
"allGroups": "Alle Gruppen", "allGroups": "Alle Gruppen",
"button": {
"tooltip": "Gruppen anzeigen"
},
"categories": "Thema ::: Themen", "categories": "Thema ::: Themen",
"categoriesTitle": "Themen der Gruppe", "categoriesTitle": "Themen der Gruppe",
"changeMemberRole": "Die Rolle wurde auf „{role}“ geändert!", "changeMemberRole": "Die Rolle wurde auf „{role}“ geändert!",
@ -575,11 +572,23 @@
"button": { "button": {
"tooltip": "Mein Profil" "tooltip": "Mein Profil"
}, },
"chats": "Chats",
"groups": "Gruppen", "groups": "Gruppen",
"myProfile": "Mein Profil" "map": "Landkarte",
"myProfile": "Mein Profil",
"notifications": "Benachrichtigungen"
}, },
"chat": { "chats": {
"tooltip": "Meine Chats" "tooltip": "Chats"
},
"groups": {
"tooltip": "Gruppen"
},
"map": {
"tooltip": "Landkarte"
},
"notifications": {
"tooltip": "Banachrichtigungen"
} }
}, },
"index": { "index": {
@ -620,9 +629,6 @@
}, },
"map": { "map": {
"alertMessage": "Es kann nicht auf die Karte zugegriffen werden: Der Mapbox-Token ist auf dem Server nicht gesetzt!", "alertMessage": "Es kann nicht auf die Karte zugegriffen werden: Der Mapbox-Token ist auf dem Server nicht gesetzt!",
"button": {
"tooltip": "Landkarte anzeigen"
},
"legend": { "legend": {
"event": "Veranstaltung", "event": "Veranstaltung",
"group": "Gruppe", "group": "Gruppe",
@ -726,9 +732,6 @@
"unread": "Ungelesen" "unread": "Ungelesen"
}, },
"group": "Beschreibung", "group": "Beschreibung",
"headerMenuButton": {
"tooltip": "Meine Banachrichtigungen"
},
"markAllAsRead": "Markiere alle als gelesen", "markAllAsRead": "Markiere alle als gelesen",
"pageLink": "Alle Benachrichtigungen", "pageLink": "Alle Benachrichtigungen",
"post": "Beitrag oder Gruppe", "post": "Beitrag oder Gruppe",

View File

@ -481,9 +481,6 @@
"addUserNoOptions": "No users found!", "addUserNoOptions": "No users found!",
"addUserPlaceholder": "User name", "addUserPlaceholder": "User name",
"allGroups": "All Groups", "allGroups": "All Groups",
"button": {
"tooltip": "Show groups"
},
"categories": "Topic ::: Topics", "categories": "Topic ::: Topics",
"categoriesTitle": "Topics of the group", "categoriesTitle": "Topics of the group",
"changeMemberRole": "The role has been changed to “{role}”!", "changeMemberRole": "The role has been changed to “{role}”!",
@ -575,11 +572,23 @@
"button": { "button": {
"tooltip": "My profile" "tooltip": "My profile"
}, },
"chats": "Chats",
"groups": "Groups", "groups": "Groups",
"myProfile": "My profile" "map": "Map",
"myProfile": "My profile",
"notifications": "Notifications"
}, },
"chat": { "chats": {
"tooltip": "My chats" "tooltip": "Chats"
},
"groups": {
"tooltip": "Groups"
},
"map": {
"tooltip": "Map"
},
"notifications": {
"tooltip": "Notifications"
} }
}, },
"index": { "index": {
@ -620,9 +629,6 @@
}, },
"map": { "map": {
"alertMessage": "The map cannot be accessed: The Mapbox token is not set on the server!", "alertMessage": "The map cannot be accessed: The Mapbox token is not set on the server!",
"button": {
"tooltip": "Show map"
},
"legend": { "legend": {
"event": "Event", "event": "Event",
"group": "Group", "group": "Group",
@ -726,9 +732,6 @@
"unread": "Unread" "unread": "Unread"
}, },
"group": "Description", "group": "Description",
"headerMenuButton": {
"tooltip": "My notifications"
},
"markAllAsRead": "Mark all as read", "markAllAsRead": "Mark all as read",
"pageLink": "All notifications", "pageLink": "All notifications",
"post": "Post or Group", "post": "Post or Group",

View File

@ -316,6 +316,26 @@
"hashtag-search": "Buscando a #{hashtag}", "hashtag-search": "Buscando a #{hashtag}",
"title": "Su burbuja de filtro" "title": "Su burbuja de filtro"
}, },
"header": {
"avatarMenu": {
"chats": "Chats",
"groups": "Grupos",
"map": "Mapa",
"notifications": "Notificaciones"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Grupos"
},
"map": {
"tooltip": "Mapa"
},
"notifications": {
"tooltip": "Notificaciones"
}
},
"index": { "index": {
"change-filter-settings": "Cambie la configuración de sus filtros para obtener más resultados.", "change-filter-settings": "Cambie la configuración de sus filtros para obtener más resultados.",
"no-results": "No se han encontrado contribuciones." "no-results": "No se han encontrado contribuciones."

View File

@ -306,6 +306,26 @@
"hashtag-search": "Recherche de #{hashtag}", "hashtag-search": "Recherche de #{hashtag}",
"title": "Votre bulle de filtre" "title": "Votre bulle de filtre"
}, },
"header": {
"avatarMenu": {
"chats": "Chats",
"groups": "Groupes",
"map": "Carte",
"notifications": "Notifications"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Groupes"
},
"map": {
"tooltip": "Carte"
},
"notifications": {
"tooltip": "Notifications"
}
},
"index": { "index": {
"change-filter-settings": "Modifiez les paramètres de filtrage pour obtenir plus de résultats.", "change-filter-settings": "Modifiez les paramètres de filtrage pour obtenir plus de résultats.",
"no-results": "Pas de contribution trouvée." "no-results": "Pas de contribution trouvée."
@ -407,9 +427,6 @@
"unread": "Non lu" "unread": "Non lu"
}, },
"group": "Description", "group": "Description",
"headerMenuButton": {
"tooltip": "Mes notifications"
},
"markAllAsRead": "Tout marquer comme lu", "markAllAsRead": "Tout marquer comme lu",
"pageLink": "Toutes les notifications", "pageLink": "Toutes les notifications",
"post": "Post", "post": "Post",

View File

@ -310,6 +310,22 @@
"hashtag-search": null, "hashtag-search": null,
"title": null "title": null
}, },
"header": {
"avatarMenu": {
"chats": "Chat",
"groups": "Gruppi",
"notifications": "Notifiche"
},
"chats": {
"tooltip": "Chat"
},
"groups": {
"tooltip": "Gruppi"
},
"notifications": {
"tooltip": "Notifiche"
}
},
"index": { "index": {
"change-filter-settings": null, "change-filter-settings": null,
"no-results": null "no-results": null
@ -356,7 +372,7 @@
"unread": null "unread": null
}, },
"markAllAsRead": "Segna tutti come letti", "markAllAsRead": "Segna tutti come letti",
"pageLink": null, "pageLink": "Tutte le notifiche",
"post": null, "post": null,
"reason": { "reason": {
"commented_on_post": null, "commented_on_post": null,

View File

@ -93,6 +93,22 @@
"membersCount": null, "membersCount": null,
"membersListTitle": null "membersListTitle": null
}, },
"header": {
"avatarMenu": {
"chats": "Chats",
"groups": "Groepen",
"notifications": "Notificaties"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Groepen"
},
"notifications": {
"tooltip": "Notificaties"
}
},
"login": { "login": {
"email": "Uw E-mail", "email": "Uw E-mail",
"hello": "Hallo", "hello": "Hallo",
@ -111,7 +127,7 @@
"unread": null "unread": null
}, },
"markAllAsRead": "Markeer alles als gelezen", "markAllAsRead": "Markeer alles als gelezen",
"pageLink": null, "pageLink": "Alle notificaties",
"post": null, "post": null,
"reason": { "reason": {
"commented_on_post": null, "commented_on_post": null,

View File

@ -180,6 +180,22 @@
"hashtags-filter": { "hashtags-filter": {
"title": "Twoja bańka filtrująca" "title": "Twoja bańka filtrująca"
}, },
"header": {
"avatarMenu": {
"chats": "Czaty",
"groups": "Grupy",
"notifications": "Powiadomienia"
},
"chats": {
"tooltip": "Czaty"
},
"groups": {
"tooltip": "Grupy"
},
"notifications": {
"tooltip": "Powiadomienia"
}
},
"login": { "login": {
"email": "Twój adres e-mail", "email": "Twój adres e-mail",
"forgotPassword": "Zapomniałeś hasła?", "forgotPassword": "Zapomniałeś hasła?",
@ -203,7 +219,8 @@
"markAllAsRead": "Oznacz wszystkie jako przeczytane", "markAllAsRead": "Oznacz wszystkie jako przeczytane",
"menu": { "menu": {
"mentioned": "wspomiał o Tobie we wpisie" "mentioned": "wspomiał o Tobie we wpisie"
} },
"pageLink": "Wszystkie powiadomienia"
}, },
"post": { "post": {
"comment": { "comment": {

View File

@ -348,6 +348,22 @@
"hashtag-search": "Procurando por #{hashtag}", "hashtag-search": "Procurando por #{hashtag}",
"title": "Sua bolha de filtro" "title": "Sua bolha de filtro"
}, },
"header": {
"avatarMenu": {
"chats": "Chats",
"groups": "Grupos",
"notifications": "Notificações"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Grupos"
},
"notifications": {
"tooltip": "Notificações"
}
},
"index": { "index": {
"change-filter-settings": "Altere suas configurações de filtro para obter mais resultados.", "change-filter-settings": "Altere suas configurações de filtro para obter mais resultados.",
"no-results": "Nenhuma contribuição encontrada." "no-results": "Nenhuma contribuição encontrada."

View File

@ -327,6 +327,22 @@
"hashtag-search": "Поиск по #{hashtag}", "hashtag-search": "Поиск по #{hashtag}",
"title": "Ваш фильтр пузыря" "title": "Ваш фильтр пузыря"
}, },
"header": {
"avatarMenu": {
"chats": "Чаты",
"groups": "Группы",
"notifications": "Уведомления"
},
"chats": {
"tooltip": "Чаты"
},
"groups": {
"tooltip": "Группы"
},
"notifications": {
"tooltip": "Уведомления"
}
},
"index": { "index": {
"change-filter-settings": "Измените настройки фильтра, чтобы получить больше результатов.", "change-filter-settings": "Измените настройки фильтра, чтобы получить больше результатов.",
"no-results": "Посты не найдены." "no-results": "Посты не найдены."