ekzyis
bb2212d51e
Add invoice HMAC
...
This prevents entities which know the invoice hash (like all LN nodes on the payment path) from using the invoice hash on SN.
Only the user which created the invoice knows the HMAC and thus can use the invoice hash.
2023-08-10 07:10:07 +02:00
keyan
e913ab71ad
more even rewards
2023-08-09 22:27:03 -05:00
ekzyis
4fe1d416de
Fix onConfirmation called at every render
2023-08-10 04:13:09 +02:00
ekzyis
9bc5138461
Fix unexpected token 'export'
2023-08-10 03:34:38 +02:00
ekzyis
318088179a
Rename to useInvoiceable
2023-08-10 03:34:38 +02:00
ekzyis
38dbbd5a4f
Fix comment copy-paste error
2023-08-10 03:34:38 +02:00
ekzyis
bd59e392b7
Remove unused id param
2023-08-10 03:34:38 +02:00
ekzyis
118f591d04
Merge branch 'master' into 266-zaps-without-account
2023-08-10 03:34:38 +02:00
SatsAllDay
d5f7855adf
Debounce API requests on edit nym by 500ms ( #387 )
...
Support an optional debounce prop on Input component
If provided, the debounce is applied to the validation of the containing form,
imperatively invoking form validation after debounce is finalized
Also required introducing the `validateOnChange` prop on `Form` which gets passed to `Formik`, and defaults to true, just as it does in `Formik`.
Imperatively invoking form validation seemed to be the only way to debounce the validation call through formik.
2023-08-09 17:06:22 -05:00
ekzyis
7094f5b552
Fix eslint
2023-08-09 23:49:50 +02:00
keyan
0fb1bf7095
fix git dubious ownership error in dev docker setup
2023-08-09 10:25:34 -05:00
keyan
b92f63ca88
fix remaining misuses of plural units
2023-08-08 17:15:30 -05:00
keyan
da78d244ef
handle when navigator controller isn't present
2023-08-08 16:55:53 -05:00
keyan
3cfeede46a
handle all singular units appropriately
2023-08-08 16:47:27 -05:00
SatsAllDay
9941bc6519
render "reply" or "replies", "comment" or "comments" depending on the count (singular or plural) ( #382 )
...
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-08-08 16:07:00 -05:00
SatsAllDay
6e05cd38f9
Singular/Plural "Sats" labels ( #380 )
...
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-08 16:04:06 -05:00
ekzyis
67a0de3ea5
Notifications with nostr info ( #368 )
...
* Show zap message and pubkey in notifications
+ show zap request event in invoice view
* enhance ui
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-08 13:19:31 -05:00
Keyan
76b4156ccb
Merge branch 'master' into 266-zaps-without-account
2023-08-08 09:42:21 -05:00
ekzyis
4094adfa4f
Remove markdown from body in push notifications ( #374 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2023-08-07 20:03:50 -05:00
ekzyis
e3c60d1ef8
Sync push subscriptions on every page load ( #370 )
...
Most browsers don't support the pushsubscriptionchange event.
We workaround this by saving the current push subscription in IndexedDB so we can check during every page load if the push subscription changed.
If that is the case, we manually sync the push subscription with the server.
However, this solution is not perfect as mentioned in https://medium.com/@madridserginho/how-to-handle-webpush-api-pushsubscriptionchange-event-in-modern-browsers-6e47840d756f which was used for reference:
> This solution is not perfect, the user could lose some push notifications if he doesn’t open the webapp for a long time.
Co-authored-by: ekzyis <ek@stacker.news>
2023-08-07 20:03:34 -05:00
ekzyis
49867f5dd5
Make web push & imgproxy setup optional for local dev ( #373 )
...
* Make web push setup optional for local dev
* Make imgproxy setup optional for local dev
---------
Co-authored-by: ekzyis <ek@stacker.news>
2023-08-07 19:53:21 -05:00
ekzyis
7369bd819d
Add nostr login ( #367 )
...
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-07 19:50:01 -05:00
kevkevin
4586fd7f70
Eslint setup and github action ( #360 )
2023-08-07 18:43:15 -05:00
keyan
a0974e4d6c
Merge branch 'master' into 266-zaps-without-account
2023-08-07 16:48:52 -05:00
keyan
7967891e99
validate service worker on every request
2023-08-07 16:36:02 -05:00
keyan
a3b668587d
fix top cowboys
2023-08-07 16:26:15 -05:00
Keyan
3d0bb4b32c
Merge branch 'master' into 266-zaps-without-account
2023-08-07 15:10:20 -05:00
keyan
1b1463d2d9
add twitter oauth v1 migrations
2023-08-07 15:07:45 -05:00
keyan
ffb856ae88
fix oauth signup
2023-08-07 15:05:55 -05:00
keyan
138deafffc
use node v18 in docker
2023-08-07 13:19:11 -05:00
keyan
3333cc86a2
inline dark mode script
2023-08-07 12:06:58 -05:00
keyan
0867f3ff1c
only outline eldest new comment ... unset on touch
2023-08-07 09:29:47 -05:00
keyan
d661c70f16
more noticable new comment indicator
2023-08-06 14:31:24 -05:00
keyan
c606510930
update pwa blacks
2023-08-06 14:26:08 -05:00
keyan
1efc17fcc2
subtle highlight of new comments
2023-08-06 14:18:40 -05:00
keyan
ea1e31c6ee
prevent horizontal layout shift on new comments
2023-08-06 13:21:38 -05:00
keyan
ebfff4677f
fix top header/stat order on back/forward nav
2023-08-06 13:13:32 -05:00
keyan
90f4d41fc8
remove list jitter by initially preferring ssr
2023-08-06 13:04:25 -05:00
keyan
eeaf6e10e5
reduce rerenders in notifications
2023-08-06 10:47:58 -05:00
keyan
e4aaaac20f
don't use cache for SSR
2023-08-05 14:46:29 -05:00
keyan
b9fdbde520
fix back button render jitter
2023-08-05 12:56:03 -05:00
keyan
d9dd4bc05b
prevent scroll to comment on rerender
2023-08-05 12:13:15 -05:00
keyan
aea8948c45
dark-mode needs to block block
2023-08-04 20:45:12 -05:00
keyan
8d8e2859dd
fix dark mode
2023-08-04 19:21:51 -05:00
keyan
23257d8c63
fix notifications glitchiness
2023-08-04 12:08:16 -05:00
keyan
42234eae9b
highlight notification on back button
2023-08-03 19:14:04 -05:00
keyan
4e41f67e87
fix notification url replacement
2023-08-03 18:04:43 -05:00
keyan
8a5cd32be6
don't use next's script tag
2023-08-03 17:49:56 -05:00
keyan
94e975033c
fix fee button receipt background color
2023-08-03 15:13:07 -05:00
keyan
0ab9119739
improve notifications UX: highlight reply and distinguish new notifications
2023-08-03 14:56:59 -05:00