Commit Graph

1912 Commits

Author SHA1 Message Date
ekzyis 176b3ec468 Remove unused functions in sndev 2024-03-25 14:50:51 +01: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
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
ekzyis b35302ccdc
Fix territory transfer sent to everyone (#946) 2024-03-20 16:45:30 -05: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
Keyan 1b2bb6d0fb
Merge pull request #931 from stackernews/fix-toc-slugs
Fix ToC due to repeated slug calls
2024-03-17 12:49:12 -05:00
ekzyis 5b15fd88a9 Fix ToC due to repeated slug calls 2024-03-17 18:24:39 +01:00
ekzyis 3e56bbe9c0 Don't filter by pins in home 2024-03-17 16:47:13 +01:00
ekzyis 2ba4063645 Add setting for no referral links on copy 2024-03-17 16:23:03 +01:00
Keyan 18df381497
add link to awards.csv in readme 2024-03-16 17:56:08 -05:00
Keyan 51358f5b79
Update awards.csv 2024-03-16 16:52:45 -05:00
keyan ec2dcdfd92 add awards.csv for tracking contributor awards 2024-03-16 16:52:00 -05:00
Keyan 44d1101943
Merge pull request #925 from SatsAllDay/readme-minor-typo
Super minor typo in the readme
2024-03-16 16:50:55 -05:00
Satoshi Nakamoto 21e17c2147 super minor typo in the readme
I found this while reading the new readme and felt compelled to fix it :D
2024-03-16 16:41:43 -04:00
ekzyis 3ae3971fbe
Update README (#924)
* Make 'before requesting review' bold and mention usage of drafts

* Update responsible disclosure rules

* Add link to PGP key
2024-03-16 12:39:45 -05:00
Keyan 2b99284a5a
Update README.md image 2024-03-16 11:38:22 -05:00
keyan b451ecaf8c catch imgproxy pro unvailable errors 2024-03-15 21:59:58 -05:00
keyan 56c2682c9e fix service worker env imports 2024-03-15 21:54:29 -05:00
keyan 806f42ed40 don't use imgproxy pro, set opensearch user/pass 2024-03-15 21:16:26 -05:00
Keyan f436290460
readme typo 2024-03-15 15:29:31 -05:00