Commit Graph

1836 Commits

Author SHA1 Message Date
keyan 4b2596f86b remove script logging 2024-03-10 18:36:00 -05:00
keyan 5572791c91 add sndev psql command 2024-03-10 18:22:54 -05:00
keyan a31d04a095 sndev passthrough to docker and containers 2024-03-10 17:30:11 -05:00
keyan 8cddbe74ff add sndev status 2024-03-10 17:10:38 -05:00
keyan 4ce413af6f ascii art 2024-03-10 16:59:15 -05:00
keyan 0500cbd2ca add sndev withdraw 2024-03-10 16:42:16 -05:00
keyan 714aecc477 add sndev payinvoice 2024-03-10 16:29:10 -05:00
keyan e824261143 improve channel opens 2024-03-10 13:29:21 -05:00
keyan c88ba74268 open channel between ln nodes 2024-03-09 23:47:32 -06:00
keyan c63622b8a4 make bitcoin health check dependent on blockheight 2024-03-09 17:56:07 -06:00
keyan c32782583f add auto-mining 2024-03-09 15:40:00 -06:00
keyan bc85e4b3c5 allow debian useradd with duplicate id 2024-03-09 12:15:36 -06:00
keyan eb7670e5c3 fix perms of shared directories 2024-03-08 20:07:43 -06:00
keyan 0e02aa7d8d copy wallet and macaroon dbs for deterministic wallets/macaroons 2024-03-08 18:40:10 -06:00
keyan 215f330771 reorganize docker and add static certs/macroon to lnd 2024-03-08 13:11:58 -06:00
keyan 7fe959a720 add changes to .env.sample 2024-03-07 21:29:13 -06:00
keyan 85c1303185 begin adding regtest network 2024-03-07 21:24:42 -06:00
keyan 1b275517fd refinements after fresh builds 2024-03-07 16:40:26 -06:00
Keyan 265f92af35
Merge branch 'master' into localdev 2024-03-07 15:24:41 -06:00
keyan af2890075c add db seed to sndev 2024-03-07 15:19:49 -06:00
keyan b3bf3dba28 proper check for postgres health 2024-03-07 13:18:23 -06:00
keyan f2fd2eb1d7 restart: always -> unless-stopped 2024-03-07 10:19:37 -06:00
keyan fab750352f make posix shell 2024-03-07 10:02:59 -06:00
ekzyis 179a539d4d
Parse numeric strings as numbers (#902)
* Parse numeric strings as numbers

* Additionally check for type of field value
2024-03-06 19:45:00 -06:00
keyan 51dba02569 sndev bash script and docker reliability stuff 2024-03-06 19:04:55 -06:00
keyan 0614cfe979 refine docker config 2024-03-06 17:50:01 -06:00
keyan a3428d1edc add hot reloading worker:dev script 2024-03-06 16:50:48 -06:00
keyan b38a5e653c make image aspect ratio a fraction 2024-03-06 15:15:11 -06:00
keyan 575a820a7a fix broken merge 2024-03-06 14:35:45 -06:00
keyan 6a6f4a88aa refine bounty icon margin for wrapping in comments 2024-03-06 14:20:03 -06:00
JP Melanson ecf859ee4c
Change poll icon color when active (#680) (#898) 2024-03-06 14:02:48 -06:00
Keyan 2fc1ef44dd
Fix image rerender jitter and layout shift (#896)
* fix image jitter and layout shift

* prevent unecessary context rerenders
2024-03-06 13:53:46 -06:00
Keyan 48aef15a07
use keyset pagination for notifications (#899) 2024-03-06 13:53:13 -06:00
ekzyis 8d49c034c6
Fix alignment of info icon (#895) 2024-03-05 16:27:29 -06:00
ekzyis b379e7467f
Territory transfers (#878)
* Allow founders to transfer territories

* Log territory transfers in new AuditLog table

* Add territory transfer notifications

* Use polymorphic AuditEvent table

* Add setting for territory transfer notifications

* Add push notification

* Rename label from user to stacker

* More space between cancel and confirm button

* Remove AuditEvent table

The audit table is not necessary for territory transfers and only adds complexity and unrelated discussion to this PR.

Thinking about a future-proof schema for territory transfers and how/what to audit at the same time made my head spin.

Some thoughts I had:

1. Maybe using polymorphism for an audit log / audit events is not a good idea

Using polymorphism as is currently used in the code base (user wallets) means that every generic event must map to exactly one specialized event.

Is this a good requirement/assumption? It already didn't work well for naive auditing of territory transfers since we want events to be indexable by user (no array column) so every event needs to point to a single user but a territory transfer involves multiple users.

This made me wonder: Do we even need a table? Maybe the audit log for a user can be implemented using a view? This would also mean no data denormalization.

2. What to audit and how and why?

Most actions are already tracked in some way by necessity: zaps, items, mutes, payments, ...

In that case: what is the benefit of tracking these things individually in a separate table?

Denormalize simply for convenience or performance? Why no view (see previous point)? Use case needs to be more clearly defined before speccing out a schema.

* Fix territory transfer notification id conflict

* Use include instead of two separate queries

* Drop territory transfer setting

* Remove trigger usage

* Prevent transfers to yourself
2024-03-05 13:56:02 -06:00
keyan 6573ce666b update register stacker number 2024-03-04 21:00:43 -06:00
keyan 2d20d1a8aa new email welcome gif 2024-03-04 21:00:28 -06:00
keyan b5de515f5e render outlawed images and links as text 2024-03-04 19:29:50 -06:00
keyan b16234630b better link rel attr handling 2024-03-04 19:20:14 -06:00
keyan 0a0bfbbb37 replace welcome banner with msm banner 2024-03-04 16:51:36 -06:00
keyan fd7e3b04f9 make tabindex camel cased 2024-03-04 15:38:56 -06:00
keyan f305013aaf fix back button to rewards again 2024-03-02 11:48:11 -06:00
JP Melanson fb1281dfd2
Trigger image upload from keyboard (#891) (#893)
* Adding tabindex to ImageUpload div wrapper in order to make it selectable
* Adding keyboard event handler to listen to Enter key stroke and trigger file upload selection

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-03-01 18:42:47 -06:00
keyan aa7c233177 fix bolt color hover on mobile 2024-03-01 18:32:40 -06:00
keyan 71619dfa2c fix back button to rewards page 2024-03-01 18:21:52 -06:00
Keyan 0b0e36e3cb
Monthly rewards (#890)
* show placeholder for hidden stackers in top

* top rewardability views

* make territory revenue idependent job

* monthly rewards and leaderboard on rewards pages

* fix earn reschedule

* add query for rewards leaderboard

* reduce likelihood of rewards racing with views

* fix earn and refine values views
2024-03-01 10:28:55 -06:00
ekzyis 508008f586
Fix Sub.meSubscription not resolved on page load (#888) 2024-02-28 09:31:31 -06:00
ekzyis 1c488b13df
Drop noteTerritoryPosts column (#887) 2024-02-28 09:16:20 -06:00
ekzyis 89de8a9907
Fix out of order undos for turbo zaps (#883)
Turbo zaps had different toast bodies so they weren't merged together. This gave stackers the option to undo these zaps out of order.

When zaps are undone out of order, the client cache can get in a bad state. Using the item id as a tag fixes that such that zaps for the same item will always get merged together.

This can be seen as a workaround for hacky zap undo code but I think it's also better UX so maybe we should do this anyway.
2024-02-26 18:10:43 -06:00
ekzyis bbdd969394
Fix missing progress bar for custom zaps (#882) 2024-02-26 18:09:29 -06:00