Commit Graph

2137 Commits

Author SHA1 Message Date
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
Keyan c3d709b025
add lnc attached wallet (#1104)
* add litd to docker env

* lnc payments

* handle locked wallet configuration

* create new lnc connection for every action

* ensure creds are decrypted before reconnecting

* perform permissions check
2024-04-26 21:22:30 -05:00
keyan 2340df3d8f update footer 2024-04-26 11:26:01 -05:00
keyan 2180afaed0 lower wallet limit to 100k 2024-04-25 19:37:22 -05:00
ekzyis 95b03c4bbf
Show preimage of confirmed withdrawals (#1106)
* Show preimage of confirmed withdrawals

* Assign preimage in one-liner
2024-04-25 19:33:24 -05:00
keyan 13eda4c120 add geninvites script 2024-04-24 13:30:08 -05:00
ekzyis cc7d9d734c
Support LNURL-verify (#1103) 2024-04-23 20:28:25 -05:00
Ben Allen 255f97a2b3
flip the icons for consistent UX (#1100) 2024-04-23 09:46:27 -05:00
Keyan d41b2e14f1
Update awards.csv 2024-04-22 10:08:33 -05:00
Keyan 15c6843d80
Update awards.csv 2024-04-21 17:44:45 -05:00
Ben Allen ecedbd1527
Add PasswordInput component (#1090)
* feat: add PasswordHider

* feat: add PasswordInput

* fix typo and require requirement

* merge state

* use ...props and lnbits password required

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-04-21 17:28:57 -05:00
SatsAllDay fbd3f8efed
introduce `persistOnNavigate` option for toasts (#1095)
ensure that post auto-delete success toasts are preserved
when navigating back to the prior page
2024-04-21 17:25:48 -05:00
keyan fa5adac297 improve newsletter top stories format 2024-04-21 14:12:29 -05:00
SatsAllDay 01de4e7ba7
fix sndev to make .env.local optional in docker compose files (#1098) 2024-04-20 16:50:43 -05:00
SatsAllDay d7ecbbae3a
Search bookmarks (#1075)
* Support `is:bookmarked` search option to search my bookmarked items

* Update the worker search module to include `bookmarkedBy: Array<Number>` which
contains the list of user ids which have bookmarked a given item

* Add a trigger on the `Bookmark` DB table to re-index the corresponding item when
a bookmark is added/removed

* Update the Search resolver to check for a `is:bookmarked` query option. If provided,
include it as an option in the search request. This updates search to look for items
which are bookmarked by the current user. By default, this preserves stacker privacy
so you can only search your own bookmarks

* Update the search page UI to show how to invoke searching your own bookmarks

* undo `is:bookmarked` support, add `bookmarks` item in search select

* short circuit return empty payload for anon requesting bookmarks

* remove console.log for debugging

* fix indexing a new item that has yet to be bookmarked

* update db migration to re-index all existing bookmarked items one time

* fix the case where deleting a bookmark doesn't trigger a new index of items

explictly specify a `updatedAt` value when deleting a bookmark, to ensure that
deleting a bookmark results in a new indexed version of the bookmarked item

* update search indexer to use the latest of all three choices for the latest version

* give bookmark index jobs longer expiration

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-04-19 13:24:48 -05:00
ekzyis 0552736dc7
More concise PR template (#1092)
The big HTML comments were getting in the way.
2024-04-19 10:56:08 -05:00
Ben Allen 9e6675b8d2
Add 200ms delay to scroll in capture worker (#1088)
* fix: add 200ms delay to scroll in capture worker

* use: new Promise to wait for timeout
2024-04-18 10:49:42 -05:00
keyan a77f778f27 fix hidden wallet balance layout shift 2024-04-17 17:22:17 -05:00
ekzyis 59b3d1c375
Round sats in FORWARDEDTIP push notification (#1086) 2024-04-17 14:24:07 -05:00
keyan f9a99a7deb give 1 sat fee button overlay but not button text 2024-04-17 14:22:31 -05:00
ekzyis dd6e921e2e
Fix local env in docker-compose.yaml (#1085)
* Allow docker env override via .env.local

* Make .env.local optional

* Fix env var expansion ignoring .env.local

* Rename .env.development to .env.docker

* Use YAML anchors

* Revert rename of .env.development
2024-04-17 13:46:18 -05:00
keyan 0ea261428c give edit and countdown space again 2024-04-17 13:19:10 -05:00
ekzyis 40463d526c
Fix TypeError: Failed to construct 'URL': Invalid URL (#1083) 2024-04-17 12:15:36 -05:00
Keyan 7d587c7cf8
Update awards.csv 2024-04-16 19:27:58 -05:00
Ben Allen 6a13c22ad2
Add comment scrolling in capture (#1079)
* feat: add comment scrolling in capture

* lint

* feat use .waitForSelectore method

* revert timeout
2024-04-16 19:25:56 -05:00
Keyan bc85a63091
better env (#1082) 2024-04-16 19:23:36 -05:00
keyan 058f88da49 add halving to price carousel 2024-04-16 17:58:26 -05:00
keyan a0f3e338a8 fix shift when loading paid invoice 2024-04-16 16:28:22 -05:00
keyan 052e36f6ed adjust qr skeleton for bolt11info 2024-04-16 16:20:13 -05:00
keyan 8eee1c2a71 update withdrawal skeleton 2024-04-16 16:13:06 -05:00
keyan 02fe4d5d92 update qr skeleton 2024-04-16 16:05:59 -05:00
keyan 1a25179a98 modal spacing fixes 2024-04-16 15:33:00 -05:00
ekzyis e30dfbae57
Fix autowithdrawal logs (#1073)
* Also log autowithdrawal routing errors

* Only log autowithdrawal success in worker

* Use WalletType for WalletLog.wallet

* Fix autowithdrawal success message

* Infer walletName from walletType in upsertWallet
2024-04-16 13:59:46 -05:00
Keyan c19c9124ec
Update awards.csv 2024-04-16 13:43:02 -05:00
ekzyis 927eaa8c5b
Exclude bios from spam detection (#1080) 2024-04-16 13:39:42 -05:00
Michael Bumann dec4452d62
Use password field to NWC connection (#1076)
This should prevent the browser from saving and auto-completing the NWC connection string
2024-04-16 10:53:33 -05:00
ekzyis 796bd4dc4b
Add autowithdrawal badge in notifications (#1078) 2024-04-16 10:53:05 -05:00
keyan 00ca35465c replace node-fetch usage with existing cross-fetch 2024-04-15 19:26:40 -05:00
keyan 5689378b07 turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
ekzyis 1faf309c00
Fix TypeError if autowithdrawal creation failed (#1072) 2024-04-15 09:17:37 -05:00
ekzyis 448f028ec1
Update node-fetch to v2.6.7 (#1070)
dependabot reported vuln with CVSS score of 8.8
2024-04-15 09:17:00 -05:00
ekzyis 2ec0a1a559
Use crypto.randomBytes for unique CLN invoice label (#1074) 2024-04-15 09:16:32 -05:00
Keyan 40131da8bd
Update awards.csv 2024-04-14 18:22:08 -05:00
keyan 72fb8a490c refine readme a bit 2024-04-14 18:02:13 -05:00
keyan 75771bfb7e remove deprecated version from readme override example 2024-04-14 17:44:19 -05:00
keyan 40e07be6d8 update sndev docs and auto-start for capture service 2024-04-14 17:43:55 -05:00
keyan b05c1b6734 update README with up to date sndev help output 2024-04-14 17:42:39 -05:00
keyan 51f1c08a7e get rid of docker compose version number deprecation warning 2024-04-14 17:40:52 -05:00
keyan d3f18c7cff get rid of docker nagware 2024-04-14 17:40:24 -05:00
ekzyis 9f4d5e13aa
CLN autowithdrawal (#1042)
* Add CLN node to docker-compose.yml

* Attach CLN wallet via CLNRest

* Remove leading space

* Implement autowithdrawal to CLN in worker

* Fix UnhandledSchemeError during build

See https://github.com/vercel/next.js/discussions/33982

* Refactor CLN invoice code into @/lib/cln

* Fix missing env vars

* Fix validation error if rune invalid

* Update header

* Add rune placeholder

* Fix missing expiry for test invoice

* Remove nonsensical comment

* Remove unnecessary async

* Show level SUCCESS as OK in logs

* Add stacker_cln commands to sndev

* fix sndev posix compliance, add cln_withdraw

* give stacker_cln larger channels

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-04-14 17:34:21 -05:00