Commit Graph

1895 Commits

Author SHA1 Message Date
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
keyan 9ebe413a57 inform github linguist to ignore seed.sql 2024-03-15 14:39:44 -05:00
Keyan bf4286600f
fix lncli typo in README.md 2024-03-15 14:31:46 -05:00
Keyan efaa2193e0
new readme with contribution awards (#922)
* new readme

* Update README.md

* Update README.md

* move more docs to README

* add proper mapping for opensearch item index

* add sndev lint

* fix index creation
2024-03-15 14:29:42 -05:00
ekzyis 687012d1a0
API Keys (#915)
* Generate API key in settings

* Check x-api-key for GraphQL API requests

* Don't fallback to cookie if x-api-key header was provided

* Select all session fields

* Fix error if API key not found

* Fix style in settings via form-label className

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-03-14 15:32:34 -05:00
keyan 05702456e9 upgrade apollo/client for memory improvements 2024-03-14 14:22:30 -05:00
ekzyis 501885cfa0
Ignore if sub belongs to user during existence check (#904)
* Ignore if sub belongs to user during existence check

* Remove code no longer needed

* Fix territory edit

Territory edits were broken because validation failed for existing territories and if you edit an territory, it obviously already exists.

This commit fixes this by ignoring the territory that we're currently editing.

* Fix existence check using stale cache

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-03-14 11:17:53 -05:00
keyan 5065b32bde sndev login: fix identifier on conflict 2024-03-13 20:05:29 -05:00
ekzyis c8e65d5a23
Don't hide self in top even if hidden (#905)
* Don't hide self in top even if hidden

* Also don't hide self in top cowboys

* only use anon icon for anon stuff

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-03-13 19:26:59 -05:00
keyan 0b8d952e78 add sndev login 2024-03-13 18:52:58 -05:00
ekzyis 96d3034c66
Fix image fees undefined and not enforced if logged in (#909)
* Fix image fees not enforced

* Fix image fees undefined

* Add comment about return value
2024-03-13 16:08:55 -05:00
ekzyis 9b5e63cb9c
Add security.txt (#912) 2024-03-13 16:04:28 -05:00
keyan 06bde475e7 add sndev pr command 2024-03-13 15:00:58 -05:00
ekzyis f94de0f3ac
Fix zap shadow on hover (#906) 2024-03-13 11:48:16 -05:00
keyan 25cc986ba7 Merge branch 'localdev' 2024-03-13 11:25:50 -05:00
keyan 0f68ed379f prompt in help if docker isn't installed 2024-03-13 11:21:51 -05:00
Keyan 23ee62fb21
add sndev shell script and enhance docker compose local dev
* add hot reloading worker:dev script

* refine docker config

* sndev bash script and docker reliability stuff

* make posix shell

* restart: always -> unless-stopped

* proper check for postgres health

* add db seed to sndev

* refinements after fresh builds

* begin adding regtest network

* add changes to .env.sample

* reorganize docker and add static certs/macroon to lnd

* copy wallet and macaroon dbs for deterministic wallets/macaroons

* fix perms of shared directories

* allow debian useradd with duplicate id

* add auto-mining

* make bitcoin health check dependent on blockheight

* open channel between ln nodes

* improve channel opens

* add sndev payinvoice

* add sndev withdraw

* ascii art

* add sndev status

* sndev passthrough to docker and containers

* add sndev psql command

* remove script logging

* small script cleanup

* smaller db seed

* pin opensearch version

Co-authored-by: ekzyis <ek@stacker.news>

* pin opensearch dashboard

Co-authored-by: ekzyis <ek@stacker.news>

* add sndev prisma

* add help for all commands

* set -e

* s3 and image proxy with broken name resolution

* finally fully working image uploads

* use a better diff algo

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-03-13 09:04:09 -05:00
keyan 46effa6992 use a better diff algo 2024-03-12 20:04:12 -05:00