-
-
Notifications
You must be signed in to change notification settings - Fork 386
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
feat: UI for telegram user notifications #1649
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 |
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.
Thanks for your contribution. It looks good.
Please run to re-generate translation dictionaries
pnpm translation:extract
pnpm translation:generate
frontend/apps/remark42/app/components/root/_theme/_dark/root_theme_dark.css
Outdated
Show resolved
Hide resolved
frontend/apps/remark42/app/components/telegram/telegram-link.tsx
Outdated
Show resolved
Hide resolved
@Mavrin thank you for your comments, everything is fixed |
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.
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_USERS
var containsuser
. In this caseconfig.telegram_notifications
should 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
TelegramLink
component is created not to repeat UI of Telegram link + QRcomponents/button
component is used insideTelegramLink
instead of one used before from thecomponents/auth/components/button
folderBefore
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.