Skip to content
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

LLM notifications prompts #507

Merged
merged 32 commits into from
Jul 29, 2022
Merged

Conversation

jules-grenier-ledger
Copy link
Contributor

@jules-grenier-ledger jules-grenier-ledger commented Jun 28, 2022

📝 Description

v0 of the Notifications in LLM

New Modal to ask user to enable Notifications that is triggered only when specific criterias are met (same as for the ratings modal).
New section in the settings to handle notifications options.
Two options added to the feature flags in LLC : languages_whitelisted and languages_blacklisted to enable or disable respectively any feature flagged feature for just some languages in the remote config.

❓ Context

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

Fix for this ticket LIVE-3076

Record_2022-06-23-16-02-27.mp4

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@vercel
Copy link

vercel bot commented Jun 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
live-common-tools ✅ Ready (Inspect) Visit Preview Jul 29, 2022 at 7:24AM (UTC)
native-ui-storybook ✅ Ready (Inspect) Visit Preview Jul 29, 2022 at 7:24AM (UTC)
2 Ignored Deployments
Name Status Preview Updated
ledger-live-github-bot ⬜️ Ignored (Inspect) Jul 29, 2022 at 7:24AM (UTC)
react-ui-storybook ⬜️ Ignored (Inspect) Jul 29, 2022 at 7:24AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jun 28, 2022

🦋 Changeset detected

Latest commit: 671a3fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
live-mobile Minor
@ledgerhq/live-common Minor
@ledgerhq/live-cli Patch
ledger-live-desktop Patch
live-common-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added mobile Has changes in LLM translations Translation files have been touched labels Jun 28, 2022
@jules-grenier-ledger jules-grenier-ledger marked this pull request as draft June 28, 2022 15:46
@jules-grenier-ledger jules-grenier-ledger force-pushed the feat/LIVE-2536-llm-notifications-prompts branch from d684f71 to 287e6c3 Compare June 29, 2022 13:05
@jules-grenier-ledger jules-grenier-ledger force-pushed the feat/LIVE-2536-llm-notifications-prompts branch from 287e6c3 to 1a01d6b Compare June 29, 2022 13:44
@github-actions github-actions bot added the common Has changes in live-common label Jul 19, 2022
@cgrellard-ledger cgrellard-ledger force-pushed the feat/LIVE-2536-llm-notifications-prompts branch from 1767873 to 457fcd0 Compare July 20, 2022 11:12
@cgrellard-ledger cgrellard-ledger force-pushed the feat/LIVE-2536-llm-notifications-prompts branch from a46d789 to 359ad70 Compare July 20, 2022 13:33
@cgrellard-ledger cgrellard-ledger marked this pull request as ready for review July 20, 2022 13:42
@github-actions
Copy link
Contributor

github-actions bot commented Jul 20, 2022

@LFBarreto

Screenshots: ✅

There are no changes in the screenshots for this PR. If this is expected, you are good to go.

@codecov
Copy link

codecov bot commented Jul 20, 2022

Codecov Report

Merging #507 (671a3fd) into release (1a64f6a) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           release     #507      +/-   ##
===========================================
- Coverage    47.50%   47.49%   -0.01%     
===========================================
  Files          623      623              
  Lines        27751    27751              
  Branches      7160     7160              
===========================================
- Hits         13182    13181       -1     
- Misses       13447    13448       +1     
  Partials      1122     1122              
Flag Coverage Δ
test 47.49% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
libs/ledger-live-common/src/range.ts 94.87% <0.00%> (-2.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a64f6a...671a3fd. Read the comment docs.

Copy link
Contributor

@LFBarreto LFBarreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some little tweaks 😉

if (!notificationsToken) {
const token = await messaging().getToken();
setNotificationsToken(token);
messaging().onMessage(async remoteMessage => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see a lot of messaging().xxx does messaging() return an instance of FCM and wouldn't it be better to set a const in the component linking to it to not repeat this? 🤔 (maybe it will stop working idk)

@gre
Copy link
Contributor

gre commented Jul 28, 2022

conflict on the pnpm lock @jules-grenier-ledger

@thomasrogerlux thomasrogerlux changed the base branch from develop to release July 28, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common feature ready mobile Has changes in LLM translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants