Skip to content

Commit

Permalink
Merge pull request #6953 from Ocelot-Social-Community/6678-add-chat-i…
Browse files Browse the repository at this point in the history
…tem-to-avatar-navigation-menu

feat(webapp): add chat item to avatar navigation menu and change title of notification by removing `All …`
  • Loading branch information
Tirokk authored Jan 26, 2024
2 parents 701bc21 + fcfc7e9 commit ca26f21
Show file tree
Hide file tree
Showing 15 changed files with 176 additions and 42 deletions.
12 changes: 6 additions & 6 deletions webapp/components/AvatarMenu/AvatarMenu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ describe('AvatarMenu.vue', () => {
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')
expect(allLinks).toHaveLength(4)
expect(allLinks).toHaveLength(6)
})
})

Expand All @@ -139,9 +139,9 @@ describe('AvatarMenu.vue', () => {
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')
expect(allLinks).toHaveLength(5)
expect(allLinks).toHaveLength(7)
})
})

Expand All @@ -165,9 +165,9 @@ describe('AvatarMenu.vue', () => {
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')
expect(allLinks).toHaveLength(6)
expect(allLinks).toHaveLength(8)
})
})
})
Expand Down
12 changes: 11 additions & 1 deletion webapp/components/AvatarMenu/AvatarMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,17 @@ export default {
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',
icon: 'bell',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ghost
circle
v-tooltip="{
content: $t('header.chat.tooltip'),
content: $t('header.chats.tooltip'),
placement: 'bottom-start',
}"
>
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/Group/GroupButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
circle
ghost
v-tooltip="{
content: $t('group.button.tooltip'),
content: $t('header.groups.tooltip'),
placement: 'bottom-start',
}"
/>
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/Map/MapButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
circle
ghost
v-tooltip="{
content: $t('map.button.tooltip'),
content: $t('header.map.tooltip'),
placement: 'bottom-start',
}"
>
Expand Down
4 changes: 2 additions & 2 deletions webapp/components/NotificationMenu/NotificationMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ghost
circle
v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'),
content: $t('header.notifications.tooltip'),
placement: 'bottom-start',
}"
/>
Expand All @@ -20,7 +20,7 @@
ghost
circle
v-tooltip="{
content: $t('notifications.headerMenuButton.tooltip'),
content: $t('header.notifications.tooltip'),
placement: 'bottom-start',
}"
@click="toggleMenu"
Expand Down
27 changes: 15 additions & 12 deletions webapp/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@
"addUserNoOptions": "Keine Nutzer gefunden!",
"addUserPlaceholder": "Nutzername",
"allGroups": "Alle Gruppen",
"button": {
"tooltip": "Gruppen anzeigen"
},
"categories": "Thema ::: Themen",
"categoriesTitle": "Themen der Gruppe",
"changeMemberRole": "Die Rolle wurde auf „{role}“ geändert!",
Expand Down Expand Up @@ -575,11 +572,23 @@
"button": {
"tooltip": "Mein Profil"
},
"chats": "Chats",
"groups": "Gruppen",
"myProfile": "Mein Profil"
"map": "Landkarte",
"myProfile": "Mein Profil",
"notifications": "Benachrichtigungen"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Gruppen"
},
"map": {
"tooltip": "Landkarte"
},
"chat": {
"tooltip": "Meine Chats"
"notifications": {
"tooltip": "Banachrichtigungen"
}
},
"index": {
Expand Down Expand Up @@ -620,9 +629,6 @@
},
"map": {
"alertMessage": "Es kann nicht auf die Karte zugegriffen werden: Der Mapbox-Token ist auf dem Server nicht gesetzt!",
"button": {
"tooltip": "Landkarte anzeigen"
},
"legend": {
"event": "Veranstaltung",
"group": "Gruppe",
Expand Down Expand Up @@ -726,9 +732,6 @@
"unread": "Ungelesen"
},
"group": "Beschreibung",
"headerMenuButton": {
"tooltip": "Meine Banachrichtigungen"
},
"markAllAsRead": "Markiere alle als gelesen",
"pageLink": "Alle Benachrichtigungen",
"post": "Beitrag oder Gruppe",
Expand Down
27 changes: 15 additions & 12 deletions webapp/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@
"addUserNoOptions": "No users found!",
"addUserPlaceholder": "User name",
"allGroups": "All Groups",
"button": {
"tooltip": "Show groups"
},
"categories": "Topic ::: Topics",
"categoriesTitle": "Topics of the group",
"changeMemberRole": "The role has been changed to “{role}”!",
Expand Down Expand Up @@ -575,11 +572,23 @@
"button": {
"tooltip": "My profile"
},
"chats": "Chats",
"groups": "Groups",
"myProfile": "My profile"
"map": "Map",
"myProfile": "My profile",
"notifications": "Notifications"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Groups"
},
"map": {
"tooltip": "Map"
},
"chat": {
"tooltip": "My chats"
"notifications": {
"tooltip": "Notifications"
}
},
"index": {
Expand Down Expand Up @@ -620,9 +629,6 @@
},
"map": {
"alertMessage": "The map cannot be accessed: The Mapbox token is not set on the server!",
"button": {
"tooltip": "Show map"
},
"legend": {
"event": "Event",
"group": "Group",
Expand Down Expand Up @@ -726,9 +732,6 @@
"unread": "Unread"
},
"group": "Description",
"headerMenuButton": {
"tooltip": "My notifications"
},
"markAllAsRead": "Mark all as read",
"pageLink": "All notifications",
"post": "Post or Group",
Expand Down
20 changes: 20 additions & 0 deletions webapp/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,26 @@
"hashtag-search": "Buscando a #{hashtag}",
"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": {
"change-filter-settings": "Cambie la configuración de sus filtros para obtener más resultados.",
"no-results": "No se han encontrado contribuciones."
Expand Down
23 changes: 20 additions & 3 deletions webapp/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,26 @@
"hashtag-search": "Recherche de #{hashtag}",
"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": {
"change-filter-settings": "Modifiez les paramètres de filtrage pour obtenir plus de résultats.",
"no-results": "Pas de contribution trouvée."
Expand Down Expand Up @@ -407,9 +427,6 @@
"unread": "Non lu"
},
"group": "Description",
"headerMenuButton": {
"tooltip": "Mes notifications"
},
"markAllAsRead": "Tout marquer comme lu",
"pageLink": "Toutes les notifications",
"post": "Post",
Expand Down
18 changes: 17 additions & 1 deletion webapp/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,22 @@
"hashtag-search": null,
"title": null
},
"header": {
"avatarMenu": {
"chats": "Chat",
"groups": "Gruppi",
"notifications": "Notifiche"
},
"chats": {
"tooltip": "Chat"
},
"groups": {
"tooltip": "Gruppi"
},
"notifications": {
"tooltip": "Notifiche"
}
},
"index": {
"change-filter-settings": null,
"no-results": null
Expand Down Expand Up @@ -356,7 +372,7 @@
"unread": null
},
"markAllAsRead": "Segna tutti come letti",
"pageLink": null,
"pageLink": "Tutte le notifiche",
"post": null,
"reason": {
"commented_on_post": null,
Expand Down
18 changes: 17 additions & 1 deletion webapp/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@
"membersCount": null,
"membersListTitle": null
},
"header": {
"avatarMenu": {
"chats": "Chats",
"groups": "Groepen",
"notifications": "Notificaties"
},
"chats": {
"tooltip": "Chats"
},
"groups": {
"tooltip": "Groepen"
},
"notifications": {
"tooltip": "Notificaties"
}
},
"login": {
"email": "Uw E-mail",
"hello": "Hallo",
Expand All @@ -111,7 +127,7 @@
"unread": null
},
"markAllAsRead": "Markeer alles als gelezen",
"pageLink": null,
"pageLink": "Alle notificaties",
"post": null,
"reason": {
"commented_on_post": null,
Expand Down
19 changes: 18 additions & 1 deletion webapp/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,22 @@
"hashtags-filter": {
"title": "Twoja bańka filtrująca"
},
"header": {
"avatarMenu": {
"chats": "Czaty",
"groups": "Grupy",
"notifications": "Powiadomienia"
},
"chats": {
"tooltip": "Czaty"
},
"groups": {
"tooltip": "Grupy"
},
"notifications": {
"tooltip": "Powiadomienia"
}
},
"login": {
"email": "Twój adres e-mail",
"forgotPassword": "Zapomniałeś hasła?",
Expand All @@ -203,7 +219,8 @@
"markAllAsRead": "Oznacz wszystkie jako przeczytane",
"menu": {
"mentioned": "wspomiał o Tobie we wpisie"
}
},
"pageLink": "Wszystkie powiadomienia"
},
"post": {
"comment": {
Expand Down
16 changes: 16 additions & 0 deletions webapp/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,22 @@
"hashtag-search": "Procurando por #{hashtag}",
"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": {
"change-filter-settings": "Altere suas configurações de filtro para obter mais resultados.",
"no-results": "Nenhuma contribuição encontrada."
Expand Down
Loading

0 comments on commit ca26f21

Please sign in to comment.