95 Commits

Author SHA1 Message Date
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
c4b96b998f only request notification permissions on the notifications page 2023-06-01 14:41:20 -05:00
keyan
f4b81b0ff0 fix notification clicking after refactor 2023-06-01 13:22:39 -05:00
ekzyis
40b7fde621
refactor: create component per notification type (#298)
Co-authored-by: ekzyis <ek@stacker.news>
2023-05-31 19:51:30 -05:00
ekzyis
e97509eea7
Use PWA with display: standalone (#292)
* Use next-pwa

* Use standalone + back button

* Use Notification API

* Use custom service worker

* Use url_handlers

* Add offline page

* Use smaller icon in notification

* Only prompt for notifications if logged in

* small enhancements to standalone pwa

* remove unused back arrow

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-05-31 17:28:33 -05:00
keyan
347a6a54d2 improve comment performance 2023-05-06 16:51:17 -05:00
keyan
072e60c954 streaks 2023-02-01 17:40:49 -06:00
keyan
10ff3fa1c3 delete 2023-01-13 11:52:18 -06:00
kerooke
335125f57b
Merge branch 'stackernews:master' into master 2022-12-29 11:38:53 -05:00
keyan
41226245c5 referrals 2022-12-19 16:27:52 -06:00
kerooke
24263120f3
Update notifications.js 2022-12-11 13:31:44 -05:00
keyan
46ea2f661c make jobs great again 2022-09-29 15:42:33 -05:00
keyan
08893d020c improved earning: more detail, longer top tail 2022-09-14 17:01:30 -05:00
keyan
cb313429d5 job board enhancements 2022-07-21 17:55:05 -05:00
keyan
cef8a33267 limit displayed comment depth 2022-05-17 17:09:15 -05:00
keyan
b68fadc63d allow daily discussion to appear in recent 2022-04-25 12:03:21 -05:00
keyan
cef122141f only one earn notification at a time 2022-04-24 11:16:51 -05:00
keyan
ef43319cbc add time ago to deposit notifications 2022-04-19 13:35:21 -05:00
keyan
d978ff5ea5 forward tips from posts 2022-04-19 13:32:39 -05:00
keyan
9823aedd75 add time of earning 2022-03-31 11:49:35 -05:00
keyan
46a2ac37eb better earn notification 2022-03-23 19:19:20 -05:00
keyan
987a5ed3a3 notify user when invoice is paid 2022-03-23 13:54:39 -05:00
keyan
69155139e6 improve styling of earn notification 2022-03-22 15:35:00 -05:00
keyan
5ff856d061 earning 2022-03-17 15:13:19 -05:00
keyan
022c72b95b remove extra migrations, refine jobs 2022-02-28 14:09:21 -06:00
keyan
e97951dd18 notify on any descendant replies 2022-01-30 09:35:57 -06:00
keyan
4c72a69b6c refine clickToContext handling for notifications/flat comments 2022-01-20 13:03:48 -06:00
keyan
6b19b10bb2 invite notifications 2022-01-19 15:02:38 -06:00
keyan
1a3fdda382 new bolt 2021-12-05 11:37:55 -06:00
keyan
996d0a9352 click to comment goes to root thread 2021-11-27 12:01:02 -06:00
keyan
dd97710d71 many small design enhancements 2021-11-12 16:39:52 -06:00
keyan
2d97314d33 dark mode without ability to switch 2021-11-04 14:22:03 -04:00
keyan
07b9da353b smarter use of SSR and caching 2021-10-26 15:49:37 -05:00
keyan
ca1a95094c ssr everything 2021-09-30 10:46:58 -05:00
keyan
91a2061342 cache magic - use cache and network except when a result of popstate 2021-09-06 17:36:08 -05:00
keyan
09b358397a highlight new notifications 2021-08-19 19:13:32 -05:00
keyan
d97608a710 don't double notify when mentioned in reply to your own content 2021-08-18 18:14:18 -05:00
keyan
4b64912333 mention notifications are functional 2021-08-18 18:00:54 -05:00
keyan
534e772849 fix notification padding and evict notification item from cache on visit 2021-08-18 14:15:52 -05:00
keyan
6dff4c6815 fix spacing in notifications 2021-08-18 13:59:30 -05:00
keyan
0afe46c030 continued notification work 2021-08-17 18:59:22 -05:00
keyan
c8df41bfa5 fix clickToContext issue for comments, fix non-inner joins, make notification query work 2021-08-17 18:07:52 -05:00
keyan
96a18e6c9d query is working 2021-08-17 13:15:24 -05:00