50 Commits

Author SHA1 Message Date
ekzyis
6df654b208
Hide wallet balance (#481)
* Hide wallet balance on long press

* Use setting to hide wallet balance

* Fix layout shift on hover

* Fix SSR warning about useLayoutEffect

See https://reactjs.org/link/uselayouteffect-ssr

* Also hide balance in wallet

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-09-12 12:19:26 -05:00
SatsAllDay
94fbabcdf9
Notifications for when you are forwarded sats from a post (#467)
* Notifications for when you are forwarded sats from a post

Support notifications when a post for which you are forwarded gets zapped

This is controlled by a new boolean flag in user settings

* Send push notifications to forwarded users when they get forwarded sats

* Add `Promise.allSettled` per PR feedback

* Remove `FEE` act type when building forwarded zaps notifications

Don't include `FEE` actions, only `TIP` actions to avoid "0 sats forwarded" notifications

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2023-09-12 10:31:46 -05:00
keyan
7bbcc86270 redirect to login on pages that require auth (#269) 2023-08-28 12:52:15 -05:00
SatsAllDay
0ee056b2a1
Toast (#431)
* Prototype of toast system

* More toast adoption

* share
* flag
* bookmark
* subscribe
* delete

* More toast usage:

* forms
* settings save

* Log error during flag failure

* Incorporate PR feedback:

1. return `toaster` from `useToast` hook, with simplified `success` and `danger` methods

2. remove toast header, move close button to body

3. change how toast ids are generated to use a global incrementing int

4. update toast messages

* PR feedback:

* reduce width of toast on narrow screens
* dynamic delete success toast message based on deleted type
* add toasts to auth methods deletion operations

* Dismiss all toasts upon page navigation

* refine style and use delay prop

* more styling

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-25 18:21:51 -05:00
SatsAllDay
ee3f892053
Add new user setting to hide bookmarks from other users (and anon) (#424)
* Add new setting to hide bookmarks from other users (and anon)

* Optional chaining in case user doesnt exist, and avoid duplicate sql query in some cases
2023-08-23 15:29:55 -05:00
keyan
df6575d701 remove slashtags completely 2023-08-17 13:40:21 -05:00
ekzyis
670c567bff
Configure imgproxy timeouts + add click to load on imgproxy errors (#404)
* Configure imgproxy timeouts

* Use click to load on imgproxy errors

* Add setting for click to load

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-08-15 12:55:16 -05:00
keyan
03f0329984 fix image uploading/edit 2023-08-13 14:12:18 -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
keyan
8d8e2859dd fix dark mode 2023-08-04 19:21:51 -05:00
keyan
d2216e80da conform to linter 2023-07-31 08:39:10 -05:00
keyan
42bdd40f91 show errors on settings during auth linking 2023-07-30 15:39:18 -05:00
keyan
63a4a7acad fix settings hydration error 2023-07-30 14:38:50 -05:00
keyan
5232b59625 upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
keyan
6407455def upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
keyan
59f7b6ff26 Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades""
This reverts commit 18910fa2ed470fe12ffbfb83df18e206101f0a05.
2023-07-23 10:08:43 -05:00
keyan
18910fa2ed Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"
This reverts commit d0314ab73c42ebf85fe2f418dddd681af45dbc55.
2023-07-23 09:16:12 -05:00
keyan
d0314ab73c shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades 2023-07-21 17:33:11 -05:00
keyan
e8aa0a4dae users? => stackers? 2023-07-09 12:53:50 -05:00
keyan
3e4161ae8c tip -> zap 2023-06-19 13:21:55 -05:00
keyan
ed938527fd simply respect notification alert message 2023-06-12 15:37:12 -05:00
ekzyis
069417d130
Enable push notifications in settings (#301)
* Enable push notifications in settings

* Fix checkbox still checked after user denied permission

The error was related to me thinking that the value prop does anything. It didn't.
The value of the checkbox is handled by formik.
So the solution was to hook into formik and use the handler which actually changes the value.

* Add double opt-in to /notifications

* Better styling of alert in /notifications

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-06-12 13:03:44 -05:00
keyan
4be5286122 hide cowboy hat setting 2023-05-01 16:52:02 -05:00
ekzyis
98daae478f
Fix broken link to top users in settings (#241) 2023-02-24 09:49:57 -06:00
keyan
4cae1ae230 reuse validation on server 2023-02-08 13:39:53 -06:00
keyan
072e60c954 streaks 2023-02-01 17:40:49 -06:00
keyan
a6ce93c2bb support NIP-19 in NIP-05 2023-02-01 09:54:08 -06:00
keyan
9644a9f867 slashtags auth 2023-01-18 12:49:20 -06:00
keyan
eada9d92ad fix empty nostr relay settings 2023-01-06 19:18:03 -06:00
keyan
2d012ba7fe allow nip05 for users 2023-01-06 18:53:29 -06:00
keyan
41226245c5 referrals 2022-12-19 16:27:52 -06:00
keyan
7b7ed0047c turbo tipping 2022-12-09 13:25:38 -06:00
keyan
a2db3e18b4 better user analytics mostly 2022-12-01 15:31:04 -06:00
keyan
729bcead69 select instead of dropdown for currency 2022-10-04 16:21:42 -05:00
ekzyis
2dd4b1ce98
Merge branch 'master' into 103-add-other-currencies 2022-10-04 01:01:43 +02:00
keyan
d9d426e5c3 add freebies 2022-09-27 16:19:15 -05:00
keyan
7faae425b3 wild west mode 2022-09-21 14:57:36 -05:00
ekzyis
c184faf017 Use dropdown for fiat selection in settings 2022-09-18 03:45:21 +02:00
ekzyis
455ca25efa Validate currency input 2022-09-13 02:03:45 +02:00
ekzyis
5d4abecf3c Add input for fiat currency in settings 2022-09-13 02:02:55 +02:00
keyan
7efc86427d maintage pagination and other state on back button 2022-09-06 08:32:00 -05:00
keyan
58eb840adb prevent default on privacy invoice info click 2022-09-02 11:58:16 -05:00
keyan
172d6c3c2f optionally hide invoice descriptions 2022-08-30 16:50:47 -05:00
keyan
388c7d0240 full powered editing 2022-08-18 13:15:24 -05:00
keyan
1df49e03d9 account linking 2022-06-08 16:26:44 -05:00
keyan
e2409efbaf indicate to user when there are new jobs 2022-05-09 13:01:23 -05:00
keyan
771978d562 sub to newsletter on sign up 2022-05-04 13:29:30 -05:00
keyan
2608cbc326 fix notification setting label typo 2022-04-23 18:55:38 -05:00
keyan
188230c37c add notification settings 2022-04-21 17:50:02 -05:00
keyan
2eaf407f17 add settings page 2021-10-30 11:20:11 -05:00