Commit Graph

2186 Commits

Author SHA1 Message Date
keyan 7f77c59bd9 fix worker env load from relative path 2024-05-08 10:33:20 -05:00
ekzyis 8bc719b3a5
Don't repeat upvote fill color (#1156) 2024-05-07 14:20:22 -05:00
ekzyis 902875bd55
Fix images from media domain not loaded if imgproxyOnly enabled (#1153) 2024-05-06 16:39:20 -05:00
ekzyis f0403a2bbe
Add script to use NWC with stacker lnd (#1151) 2024-05-06 15:05:06 -05:00
ekzyis 3f86981339
Fix wallet detach unavailable (#1150) 2024-05-06 15:04:05 -05:00
keyan 051cb69f5e fix sharing imgproxy link directly 2024-05-06 12:53:31 -05:00
keyan ce9e146a06 fix missing embellishment in rewards leaderboard 2024-05-06 11:41:02 -05:00
keyan 111053006a fix 'startsWith' call on non-string 2024-05-06 11:26:19 -05:00
keyan bc2155c7aa update awards.csv 2024-05-06 11:01:31 -05:00
keyan 1f2aa46319 give lnurlp invoices longer expirations for tor channels 2024-05-06 10:08:28 -05:00
keyan 1b5e513f5e update awards.csv 2024-05-06 09:07:13 -05:00
keyan 1e3042e536 update awards.csv 2024-05-04 19:17:04 -05:00
keyan 2e65bf9126 update awards.csv 2024-05-04 18:53:09 -05:00
keyan 30550e48be reorder mobile bottom nav to be more intuitive 2024-05-04 18:07:09 -05:00
SatsAllDay 15f9950477
Store hashed and salted email addresses (#1111)
* first pass of hashing user emails

* use salt

* add a salt to .env.development (prod salt needs to be kept a secret)
* move `hashEmail` util to a new util module

* trigger a one-time job to migrate existing emails via the worker

so we can use the salt from an env var

* move newsletter signup

move newsletter signup to prisma adapter create user with email code path
so we can still auto-enroll email accounts without having to persist the email address
in plaintext

* remove `email` from api key session lookup query

* drop user email index before dropping column

* restore email column, just null values instead

* fix function name

* fix salt and hash raw sql statement

* update auth methods email type in typedefs from str to bool

* remove todo comment

* lowercase email before hashing during migration

* check for emailHash and email to accommodate migration window

update our lookups to check for a matching emailHash, and then a matching
email, in that order, to accommodate the case that a user tries to login
via email while the migration is running, and their account has not yet been migrated

also update sndev to have a command `./sndev email` to launch the mailhog inbox in your browser

also update `./sndev login` to hash the generated email address and insert it into the db record

* update sndev help

* update awards.csv

* update the hack in next-auth to re-use the email supplied on input to `getUserByEmail`

* consolidate console.error logs

* create generic open command

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-05-04 18:06:15 -05:00
ekzyis 6220eb06ee
Use proxy agents for CLNRest over Tor (#1136) 2024-05-03 17:00:28 -05:00
itsrealfake ed9fc5d3de
Add Footer to User Page (#1135)
* Add Footer to User Page

this closes #1016

* Hide Footer when no user.bio

* apply review-bot suggestion

* refine profile footer

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-05-03 16:55:07 -05:00
ekzyis 5c593ce280
Fix unintended sharing of wallets and logs (#1127)
* Suffix localStorage key for attached wallets with me.id

* Suffix IndexedDB database name with me.id

* Fix TypeError: Cannot destructure property of 'config' as it is null

* Detach wallet on logout

* Migrate to new storage keys

* Use Promise.catch for togglePushSubscription on logout

It's more concise

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-05-03 16:42:00 -05:00
Felipe Bueno 72c27e339c
UserPopover (#1094)
* WIP UserPopover

* Add show delay on UserPopover

* UserDetails -> StackingSince on UserPopover

* Make UserPopover hoverable

* Add felipe to contributors.txt

* Remove export from SocialLink

* Remove @ outside of UserPopover

* userQuery -> useLazyQuery + Handling user not found

* Move styles to user-popover.module.css

* Update components/user-popover.module.css

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Remove poll + SSR check from useLazyQuery

* USER_FULL -> USER (we are only using stacking since, for now)

* refine user popover

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-05-03 16:39:21 -05:00
keyan cdeaa35ff4 fix new logger.error undefined 2024-05-03 14:49:31 -05:00
itsrealfake a34c8dc7e9
add TypePolicy to Fact (#1138)
closes #995

enables apollo cache to work for 'stacked' 'spent' in /statistics page.
2024-05-03 14:35:16 -05:00
Ben Allen 64de3c3b94
Add explicit word break for items (#1137)
* add word break for notification items when they are too long

* don't use global css
2024-05-03 14:18:50 -05:00
ekzyis 98a27caaa9
Allow http: and ws: in dev CSP (#1126)
* Allow HTTP in dev build

* Also allow ws://
2024-05-03 14:17:10 -05:00
ekzyis 4961cc045b
Allow deletion of wallet logs (#1101)
* Allow deletion of wallet logs

* Refactor wallet logs client<>server glue code

* Use variant='link' and className='text-muted fw-bold nav-link' for clear & cancel

There is a bug though: 'clear' stays highlighted after modal is closed

* Include wallet in toast

* Delete logs on logout

* Fix ugly wallet name in confirm dialog

* Fix clear still highlighted after modal closed

* Only delete client wallet logs

* Fix ugly wallet name in toast

* Fix bad search and replace

* Use Wallet object as constant

* Also delete LNC logs on logout

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-05-03 14:14:33 -05:00
itsrealfake e5f8c4e8e8
closes #1096 (#1130) 2024-05-03 14:09:27 -05:00
keyan 6aa5991520 litcli passthrough 2024-05-02 19:46:27 -05:00
keyan 990128da86 fix daily rewards 2024-05-02 00:18:45 -05:00
Keyan fd2008e5d1
reintroduce daily rewards (#1134)
* reintroduce daily rewards

* update reward sponsor

* daily rewards countdown

* update rewards job schedule
2024-05-01 09:30:36 -05:00
keyan 54bbb0cc52 fix #1132 broken satistics links 2024-04-30 17:52:34 -05:00
keyan be20500c06 account for fixed 1m for msm april 2024-04-30 14:51:48 -05:00
ekzyis f2f3f71dd5
Fix migration name (#1131) 2024-04-30 14:14:10 -05:00
ekzyis df631878e0
Fix duplicate autowithdrawal logs (#1121)
* Fix duplicate autowithdrawal success log

* Fix duplicate autowithdrawal error log
2024-04-29 20:39:31 -05:00
Keyan e9a33ae12e
Update awards.csv 2024-04-29 20:05:55 -05:00
ekzyis 84b4d98c5c
Fix missing logger.error and setStatus (#1122) 2024-04-29 11:57:35 -05:00
ekzyis bd37ec17cc
Use njump.me for nostr links (#1120)
njump is what is powering the preview in nostr.com so it seems more fitting to directly go to njump.me

See https://github.com/fiatjaf/njump
2024-04-28 17:25:25 -05:00
Keyan ccc9cefb68
Update awards.csv 2024-04-28 17:21:07 -05:00
Abhi Shandilya bddc2b1508
fix: hide related posts in deleted item (#1119) 2024-04-28 17:17:19 -05:00
keyan 4a6e3ed735 update awards.csv 2024-04-28 17:11:09 -05:00
keyan 71f3dba891 benalleng awards catchup 2024-04-28 16:27:55 -05:00
Ben Allen 8a735791ce
Add dashboard to satistics page (#1099)
* updated graphs ad queries

* fixed query

* fixed graph data pull

* converted msats to sats

* linter fix

* Fixed labels for graphs

* linter

* linter

* feat: style header

* lint

* fix: mobile navbar link and graph titles

* style charts

* change key names

* refine satistics graphs

---------

Co-authored-by: Dillon <dilloncortez@gmail.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-04-28 16:05:23 -05:00
ekzyis 4be54b74df
Use !configured to disable LNC default checkbox (#1117) 2024-04-28 13:03:37 -05:00
ekzyis 1039cd7586
Make checklist questions bold (#1118) 2024-04-28 13:03:00 -05:00
ekzyis 21d61b9c8a
Update PR template (#1114)
Co-authored-by: ekzyis <ekzyis@ekzy.is>
2024-04-28 11:04:16 -05:00
ekzyis 0f95eb6c36
Only provide WebLN if enabled (#1115)
Co-authored-by: ekzyis <ekzyis@ekzy.is>
2024-04-28 11:03:07 -05:00
keyan b8e153a4be deal with webln unlock in sendPayment 2024-04-27 20:00:54 -05:00
keyan 4a14e0342b don't allow lnc edits because they won't work 2024-04-27 19:02:16 -05:00
keyan 2da3762d40 unattach -> detach 2024-04-27 18:37:57 -05:00
keyan da71103e42 clear lnc state on detach 2024-04-27 18:37:57 -05:00
keyan b9d30b4076 count pending withdrawals toward balance 2024-04-27 18:37:57 -05:00
ekzyis 10e58d41c7
Remove .env.local from env_file (#1113)
Arrays for env_file are only supported in Docker Compose >=v2.24 which is too new (from January 2024). Most distros distribute older packages.

Since --env-file as defined in the sndev script acts as an override for env_file anyway, we can safely remove it here.

Co-authored-by: ekzyis <ekzyis@ekzy.is>
2024-04-27 18:25:37 -05:00