Skip to content

Commit

Permalink
feat(motd): Message of the day on landing page (#339)
Browse files Browse the repository at this point in the history
* feat(user): Message of the day (incl top up warning)

* fix(motd): Update text in motd
  • Loading branch information
SuperVK authored Sep 12, 2024
1 parent c78ed72 commit b622ed5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/dashboard/src/locales/en/modules/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"modules": {
"user": {
"landing": {
"title": "Overview"
"title": "Overview",
"motd": "We have had reports of top ups not being processed. Usually your top up will be refunded within 48 hours. You can prevent unnecessary fines and help us by filling in {link}. Sadly we cannot detect these things as this happens between our payment processor and iDeal."
},
"profile": {
"title": "Profile",
Expand Down
3 changes: 2 additions & 1 deletion apps/dashboard/src/locales/nl/modules/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"modules": {
"user": {
"landing": {
"title": "Overzicht"
"title": "Overzicht",
"motd": "We hebben meldingen gekregen van opwaarderingen die niet correct behandeld worden. Meestal wordt dit bedrag teruggestort binnen 48 uur. Je kunt boetes voorkomen en ons heel erg helpen door {link} in te vullen als je dit probleem zelf mee maakt. Helaas krijgen we hier geen meldingen van omdat dit een probleem is tussen onze payment provider en iDeal."
},
"profile": {
"title": "Profiel",
Expand Down
2 changes: 2 additions & 0 deletions apps/dashboard/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Button from "primevue/button";
import "./styles/themes/sudosos-light/theme.scss";
import InputText from "primevue/inputtext";
import Menubar from "primevue/menubar";
import Message from "primevue/message";
import Panel from "primevue/panel";
import DataTable from "primevue/datatable";
import Calendar from 'primevue/calendar';
Expand Down Expand Up @@ -59,6 +60,7 @@ app.component('Button', Button);
app.component('InputText', InputText);
app.component('InputSwitch', InputSwitch);
app.component('Menubar', Menubar);
app.component('Message', Message)
app.component('Panel', Panel);
app.component('DataTable', DataTable);
app.component('DataView', DataView);
Expand Down
8 changes: 8 additions & 0 deletions apps/dashboard/src/modules/user/views/UserLandingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
<div class="page-container flex flex-column">
<div class="page-title">{{ t('modules.user.landing.title') }}</div>
<div class="content-wrapper gap-5 flex md:flex-column flex-column">
<Message v-if="true" severity="warn" class="w-full">
<i18n-t keypath="modules.user.landing.motd" tag="label">
<template v-slot:link>
<!-- eslint-disable-next-line @intlify/vue-i18n/no-raw-text -->
<a href="https://gew.is/failedtopup" target="_blank" rel="noopener noreferrer">gew.is/failedtopup</a>
</template>
</i18n-t>
</Message>
<UserInfo :user="gewisUser || authStore.user as GewisUserResponse" class="md:hidden"/>
<BalanceWithTopupComponent />
<MutationsBalanceCard
Expand Down

0 comments on commit b622ed5

Please sign in to comment.