-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Added option to show user's data usage on status page #735 #738
base: master
Are you sure you want to change the base?
Conversation
706fdb3
to
568b9d1
Compare
78443c1
to
210f5bc
Compare
f199c26
to
cb517a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, will do more testing in the coming days.
client/components/status/status.js
Outdated
{bytes(session.input_octets, { | ||
decimalPlaces: 0, | ||
unitSeparator: " ", | ||
unit: "MB", | ||
})} | ||
{bytes(session.output_octets, { | ||
decimalPlaces: 0, | ||
unitSeparator: " ", | ||
unit: "MB", | ||
})} | ||
</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ee39d09
to
70ae38b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try the following:
- log in
- exhaust traffic
- log out and click on yes on the remember me question
- reset the session traffic in the backend to obtain again zero traffic
- click on log in again
Expected result: no exhausted message is visible.
Actual result: exhausted message is visibile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The QA checks are failing, please check, rebase on the latest master and integrate my suggestions for italian translations.
i18n/it.po
Outdated
@@ -520,6 +524,26 @@ msgstr "Log out effettuato con successo" | |||
msgid "PASSWORD_EXPIRED" | |||
msgstr "La tua password è scaduta, aggiornala." | |||
|
|||
#: client/components/status/status.js:384 | |||
msgid "SUCCESS_UPGRADE_PLAN" | |||
msgstr "Piano di aggiornamento in corso" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "Piano di aggiornamento in corso" | |
msgstr "Ricarica in corso" |
i18n/it.po
Outdated
|
||
#: client/components/status/status.js:964 | ||
msgid "PLAN_UPGRADE_BTN_TXT" | ||
msgstr "Aggiornamento" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "Aggiornamento" | |
msgstr "Ricarica" |
i18n/it.po
Outdated
|
||
#: client/components/status/status.js:1000 | ||
msgid "USAGE_LIMIT_EXHAUSTED_TXT" | ||
msgstr "Hai esaurito il traffico disponibile. Esegui l'upgrade per continuare a utilizzare il servizio." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "Hai esaurito il traffico disponibile. Esegui l'upgrade per continuare a utilizzare il servizio." | |
msgstr "Hai esaurito il traffico disponibile. Effettua una ricarica per continuare a utilizzare il servizio." |
i18n/it.po
Outdated
|
||
#: client/components/status/status.js:964 | ||
msgid "PLAN_EXHAUSTED_TOAST" | ||
msgstr "Hai esaurito il traffico disponibile sul tuo pacchetto." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "Hai esaurito il traffico disponibile sul tuo pacchetto." | |
msgstr "Hai esaurito il traffico disponibile nel tuo abbonamento." |
When subscriptions module is used, show user's current plan. If user's current plan is free, then show option to upgrade the plan. Closes #735
- Changed getUserRadiusUsage refresh interval to 2 minutes - Don't show "Wifi Session Logged in" message if the user has exhausted there plan - Only show plan exhausted message if the subscription module is in use
dfc0444
to
465a946
Compare
When subscriptions module is used, show user's current plan. If user's current plan is free, then show option to upgrade the plan.
Closes #735
Closes #736
TODOS