feat: UI for telegram user notifications#1649
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1649 +/- ##
==========================================
+ Coverage 58.71% 61.55% +2.83%
==========================================
Files 128 133 +5
Lines 2885 3004 +119
Branches 697 759 +62
==========================================
+ Hits 1694 1849 +155
+ Misses 1187 1038 -149
- Partials 4 117 +113
☔ View full report in Codecov by Sentry. |
Fixed. @Mavrin @akellbl4 FYI I've used a new custom
Thanks for the bug. I did test the use-case where user refreshes the page, but did not test when user tries to unsubscribe immediately. A new integration test is created to cover this use-case and bug is fixed. @paskal Another weird stuff: when I was testing yesterday I was receiving Today I receive 409 status code with empty response from the same endpoint for the same use-case. Which is weird, because I test it on my remote deployment of |
|
@Mavrin @akellbl4 And what about i18n? I see that if I run Shall I do it in this PR or it is a separate process? Can't find it in the project readme. Also, do I need to extract common sentences to some common namespace? Like |
Mavrin
left a comment
There was a problem hiding this comment.
Thanks for your contribution. It looks good.
Please run to re-generate translation dictionaries
pnpm translation:extract
pnpm translation:generate|
@Mavrin thank you for your comments, everything is fixed |
Mavrin
left a comment
There was a problem hiding this comment.
Could you please check size-limit check?
|
@Mavrin It has happened because of size check using |
|
@goooseman could you pls rebase the PR to make a reasonable number of logically-consistent commits pls? Squashing it on my side will make a single one and I'm not sure if this is a good idea |
5ab7894 to
4ba26ee
Compare
4ba26ee to
9f93506
Compare
|
@umputun done, but need re-apporval of CI files to run pipeline |


Telegram user notifications
Resolves #830
This PR adds telegram subscription in case:
NOTIFY_USERSvar containsuser. In this caseconfig.telegram_notificationsshould be true which was implemented by @paskal at Switch from telegram_bot_username to telegram_notifications in /config endpoint #1648.UI for a user which did not subscribe yet:

If user is already subscribed, he will see "Subscribed" UI from the very beginning:

Other changes
TelegramLinkcomponent is created not to repeat UI of Telegram link + QRcomponents/buttoncomponent is used insideTelegramLinkinstead of one used before from thecomponents/auth/components/buttonfolderBefore

After

i18n
I do not see how the translation process is organized in the repo. Tell me if I need to update any of the .json files with the new.