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

feat: add browser notification #528

Merged
merged 18 commits into from
May 23, 2024
Merged

feat: add browser notification #528

merged 18 commits into from
May 23, 2024

Conversation

dni
Copy link
Member

@dni dni commented Mar 22, 2024

used when a swap is claimed or refunded.

screenshot-1711525563

screenshot-1714982106

now it is opt in only via settings

Copy link

vercel bot commented Mar 22, 2024

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

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview May 23, 2024 3:19pm
webapp-mainnet ✅ Ready (Inspect) Visit Preview May 23, 2024 3:19pm

@dni dni requested review from michael1011 and kilrau March 27, 2024 07:47
@dni dni marked this pull request as ready for review March 27, 2024 07:48
dni added a commit that referenced this pull request Mar 27, 2024
PoC :D still a random sound. but it could be played when wo do the notifications aswell. like here: #528

closes #338
dni added a commit that referenced this pull request Mar 27, 2024
PoC :D still a random sound. but it could be played when wo do the notifications aswell. like here: #528

closes #338
Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

I open the landing page and it immediately asks for notification permissions - NO
image

Then again on "Create Swap"...

Please read the issue again! We only want notification permissions if user toggles 0-conf off: #346 so that should be the trigger.

@kilrau kilrau unassigned dni Apr 30, 2024
dni added a commit that referenced this pull request May 6, 2024
PoC :D still a random sound. but it could be played when wo do the notifications aswell. like here: #528

closes #338
@dni dni changed the base branch from main to sound May 6, 2024 07:49
@dni dni requested a review from kilrau May 6, 2024 07:50
dni added a commit that referenced this pull request May 8, 2024
PoC :D still a random sound. but it could be played when wo do the notifications aswell. like here: #528

closes #338

add to settings

css opsi

play sound on enabling

remove i18n
dni and others added 16 commits May 23, 2024 15:09
used when a swap is claimed or refunded.
initially tries to enable notfication but wont popup because it needs
user permission.
added one ask a create swap click and one on refund. could be added to
amount input or
address input aswell but needs a userevent to popup
Co-authored-by: michael1011 <[email protected]>
@kilrau
Copy link
Member

kilrau commented May 23, 2024

2. Notifications for all failed swaps, right now it seems there are no notifications for failed swap states:

Did you add notifications for failed swaps? I didn't test this earlier and now it looks like I broke my regtest again and can't test rn

@kilrau
Copy link
Member

kilrau commented May 23, 2024

2. Notifications for all failed swaps, right now it seems there are no notifications for failed swap states:

Moved into separate issue #601, from my side ok to merge this without

src/i18n/i18n.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants