2727 Commits

Author SHA1 Message Date
Keyan
2597d431c2
Merge pull request #967 from stackernews/remove-unnecessary-sndev-fn
Remove unused functions in sndev
2024-03-25 09:26:01 -05:00
Keyan
f6729125e7
Merge pull request #964 from stackernews/tsx-platform-fix
reinstall tsx without node_modules present
2024-03-25 09:24:45 -05:00
ekzyis
176b3ec468 Remove unused functions in sndev 2024-03-25 14:50:51 +01:00
Felipe Bueno
e919efc144 MailHog healthcheck with wget instead of curl 2024-03-25 09:26:45 -03:00
ekzyis
00447d5662 Remove unused api/webPush/index.js 2024-03-25 13:14:21 +01:00
Felipe Bueno
06005e3e40 Fix mailhog web UI url on README 2024-03-25 09:09:35 -03:00
keyan
2387c8c307 reinstall tsx without node_modules present 2024-03-24 17:36:24 -05:00
Keyan
a289c9a1f4
Merge pull request #963 from stackernews/lastzapat
Add a denormalized lastZapAt field to items for notifications performance
2024-03-24 14:31:03 -05:00
keyan
edb3dd365c denormalize last zap on item for notification querying 2024-03-24 14:16:29 -05:00
keyan
2502c176f1 improve sndev db healthcheck 2024-03-24 13:59:23 -05:00
Keyan
8aee4f41df
Update awards.csv for #960 2024-03-24 13:52:46 -05:00
SatsAllDay
9bc95d4bb1
gracefully handle errors when fetching lnurlp wellknown info (#960)
if `fetch` or `req.json` fails, catch those errors and return a default error to the user

if the res payload indicates error but doesn't return a `reason`, also return the same
default error message to the user
2024-03-24 13:25:14 -05:00
Keyan
a7b0272200
denormalize replies (#958) 2024-03-23 23:15:00 -05:00
keyan
e565e74e2d award for #956 2024-03-23 20:43:39 -05:00
Keyan
5dafe510eb
sndev start docker compose overrides (#957) 2024-03-23 20:34:13 -05:00
SatsAllDay
90c9e21ac4
validate nym arg presence on ./sndev login command (#956)
check to ensure that a nym is provided to the login command before
proceeding. if omitted, echo an error message, display the help
for the login command, then exit with a non-zero exit code
2024-03-23 20:09:45 -05:00
keyan
101926a8bc award for #926 2024-03-23 17:00:30 -05:00
SatsAllDay
7087647cc0
Add top stackers, spender, and cowboys to newsletter (#954)
* Add top cowboys, stackers, and spenders to newsletter

* Rearrange to match the issue title

* fix top spenders `by` variable

* Update user resolver for top users `spending` `by` value

* wrap in try catch to not have errors break the script execution

return the array as defined whenever an error occurs
2024-03-23 12:23:31 -05:00
Felipe Bueno
eef9b3de4d Add email to COMPOSE_PROFILES on sndev + Cleanup README instructions 2024-03-21 15:02:58 -03:00
Felipe Bueno
561e62481d Add 'profiles: email' to the MailHog container 2024-03-21 09:16:29 -03:00
keyan
4b4a5361ef fix #951 also retroactively 2024-03-20 20:56:40 -05:00
ekzyis
01d779723f
Check userId set in sendUserNotification (#949) 2024-03-20 19:59:48 -05:00
ekzyis
889d494eaf
Disable billing autorenew on transfer (#950) 2024-03-20 19:59:06 -05:00
ekzyis
a1a82b9680
Delete unused lib/push-notifications.js (#947) 2024-03-20 19:58:42 -05:00
ekzyis
a22db1a6a3
Fix timing between billedLastAt and billPaidUntil (#952) 2024-03-20 19:52:38 -05:00
Felipe Bueno
4d02bae826 Fix mailhog link on README.md 2024-03-20 20:40:13 -03:00
ekzyis
b35302ccdc
Fix territory transfer sent to everyone (#946) 2024-03-20 16:45:30 -05:00
Felipe Bueno
82dc9b076d Add MailHog container to provide login with email without extra config 2024-03-20 18:41:25 -03:00
keyan
e8f9a186c6 fix image url construction 2024-03-20 14:18:11 -05:00
keyan
ecd075f483 fix path alias preventing builds 2024-03-20 13:41:32 -05:00
keyan
39652ee275 make dev s3 endpoints clearer 2024-03-20 13:23:59 -05:00
keyan
1e0cd468cc award for #942 2024-03-20 11:26:38 -05:00
SatsAllDay
051ec50e87
Remove leading dash to opt-in to being treated as vendor code (#942) 2024-03-20 11:13:22 -05:00
keyan
27f522a2cf add missing jsconfig for worker 2024-03-19 20:06:33 -05:00
ekzyis
d237861ff5
Use module path aliases (#938)
* Use module path aliases

* fix broken refactor

* path mapping for svgs, style, and remaining places (bonus: lose babel dep)

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-03-19 19:37:31 -05:00
ekzyis
22ff832efb
Don't export sendUserNotification (#937)
* Rename file to webPush.js

* Move webPush code into lib/webPush

* Don't export sendUserNotification

* Fix null in deposit push notification

* restore deposit notification change

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-03-19 17:43:04 -05:00
ekzyis
687d71f246
Purchase archived territories (#897)
* Handle archived territories in territory form

* Use dedicated mutation

* Add sanity check for eternal territories

* Fix fields and cost ignored

* Remove no longer needed manual validation in upsertSub

* Remove founder check

* Always check if sub is archived

Using { abortEarly: false } now since previously, if no description was not given, we wouldn't detect if the sub was archived since validation would abort on empty descriptions.

Only on submission all fields would get validated but since we ignore archived errors during submission, the user would never see that the sub is archived before submission
+ the wrong mutation would run if archived is not already true before submission.

Hence, we need to validate all fields always.

There is currently still a bug where the validation does not immediately run but maybe this can be fixed by simply using validateImmediately on the Formik component.

* Fix archived warning not shown after first render

* Only create transfers if owner actually changes

* Reuse helper functions in lib/territory.js

* Rename var to editing

* Use onChange instead of validation override

* Run same validation on server for unarchiving

* Fix 'territory archived' shown during edits

* Use && instead of ternary operator for conditional query

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-03-19 17:23:59 -05:00
ekzyis
b03295ce59
Put all Web Push code into lib/webPush.js (#936)
* Rename file to webPush.js

* Move webPush code into lib/webPush
2024-03-19 15:48:13 -05:00
ekzyis
2f9a3cc12c
Fix container with empty name not found (#935) 2024-03-19 15:44:44 -05:00
ekzyis
f4513b6710
Fix duplicate deposit push messages sent (#940) 2024-03-19 15:43:29 -05:00
keyan
39991575d6 increase boost minimum to 50k 2024-03-18 16:15:37 -05:00
keyan
a3defdea94 add missed row to awards.csv 2024-03-18 12:46:23 -05:00
keyan
d73ccb0dc0 update contribution awards for #933 2024-03-18 12:45:28 -05:00
Keyan
9a1de666fd
Merge pull request #933 from stackernews/sndev-profiles
sndev profiles
2024-03-18 12:39:13 -05:00
keyan
b94a159854 update readme to use sh code blocks 2024-03-18 12:38:00 -05:00
Keyan
501ca3c0a2
Merge branch 'master' into sndev-profiles 2024-03-18 09:28:12 -05:00
keyan
a61c1f241e just use an env var for this 2024-03-18 09:27:26 -05:00
keyan
08f1db3f68 sndev profiles 2024-03-17 20:43:34 -05:00
Keyan
18d126c610
Merge pull request #929 from stackernews/referral-link-privacy-setting
Add setting for no referral links on copy
2024-03-17 12:55:33 -05:00
Keyan
60cf7760d7
Merge pull request #930 from stackernews/921-pinned-posts-in-hot
Don't filter by pins in home
2024-03-17 12:51:45 -05:00