1449 Commits

Author SHA1 Message Date
ekzyis
3a27057781
Remove service worker logger (#2265)
* Remove service worker logger

* Use async/await for togglePushSubscription

* Remove commented out logger calls in service worker

* Remove message channel between service worker and app

The listener for messages from the service worker was removed in a previous commit.

* Remove unused OS detection for service worker
2025-07-07 14:15:26 -05:00
ekzyis
1eea0a3ae0
Fix fireworks not checking localStorage flag (#2260) 2025-07-05 10:41:16 -05:00
Keyan
96fd271573
add fireworks (#2258)
* add fireworks

* fix weird search background color due to canvas overlay

* prevent going off small screens
2025-07-04 01:14:45 -05:00
ekzyis
089fe4d57b
Remove unused injected amount param (#2241) 2025-06-19 11:54:55 -05:00
Bryan Mutai
6d50f7c9fc
fix embed list bullet to render at top of embed (#2221)
* fix embed list bullet to render at top of embed

* make it work for images/video

* fix tweet skeleton and list horizontal scroll

---------

Co-authored-by: k00b <k00b@stacker.news>
2025-06-17 18:33:42 -05:00
Axel Vyrn
16da50733c
Lnurl UI update (#2220)
* Update index.js

added info tooltip for LNURL-auth button

* Update index.js

* Update index.js

* Update index.js

* Update index.js

* Update index.js

* Update index.js

* use existing lightning explainer

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-06-13 23:10:32 -05:00
Edward Kung
524b1b97f3
user and territory autocomplete in search bar (#2217)
* autocomplete in the search bar

* update some naming conventions

* create dual autocomplete

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-06-13 21:42:28 -05:00
Bryan Mutai
dc01ebdb26
Add Territory Sub management tab in Subscriptions (#2191)
* Add Territory Sub management tab in Subscriptions

* don't use queryRawUnsafe

* auto width on select

* separate into pages for browser nav

* fix multiple separators

* simplify queries

---------

Co-authored-by: k00b <k00b@stacker.news>
2025-06-13 15:01:25 -05:00
ekzyis
874694eb10
Add zines to socials in footer (#2223) 2025-06-13 13:03:50 -05:00
m0wer
0edf68cab9
feat: Territory autocomplete (#2124)
* feat: Territory autocomplete

Closes #992.

* refactor: refactor UserSuggest and TerritorySuggest components

* style: lint

* refactor: unify user and territory autocomplete logic

* simplify a bit and fix unrelated onSelect re-query

* fix skipping empty string on forward draft population

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-05-12 17:59:47 -05:00
Bryan Mutai
586cb86ec2
Add check to prevent Markdown Heading links from rendering in notifcations (#2152)
* Prevent Markdown Heading links in notifications from being clickable

* make it more explicit and work on other pages

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-05-12 15:46:34 -05:00
ekzyis
a1bc6dc217
Remove 'originally posted at' (#2148) 2025-05-05 09:56:41 -05:00
ekzyis
9fc819ec37
Also unsubscribe from any children (#2120) 2025-04-22 08:02:36 -05:00
Abhi Shandilya
5965b3d090
set boost max (#2109)
* set boost max

* reduce max and apply to boost act

* make boost position aware paid action state

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-04-21 19:31:18 -05:00
Bryan Mutai
984790ed5c
feat(Poll): add option to randomize poll choices (#2082)
* feat(Poll): add option to randomize poll choices

* improve

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-04-15 17:19:14 -05:00
soxa
b6f6cc821c
Crop avatars with Imgproxy (#2074)
* cropPhoto mutation, crop avatars with Imgproxy

* cropjob logging, conditional uploads url

* comment typo

* use public Imgproxy URL to re-upload cropped pic

* fix avatar in dev

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-04-15 15:41:33 -05:00
soxa
22e4f8acf5
show sats on full view pinned comments (#2071)
* show sats on full view pinned comments; simplify conditions; pass topLevel as full status for comments

* comment view: show Pin instead of Boost also for own items

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-04-15 14:57:01 -05:00
ekzyis
719cb2d507
Prompt to attach receive wallet on post (#2059)
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-04-14 19:40:43 -05:00
ekzyis
d3b81e4346
Change wallet badges order (#2102) 2025-04-14 15:33:00 -05:00
ekzyis
7be94dcfed Move wallet components into wallets/ 2025-04-13 00:50:29 +02:00
ekzyis
66d7eef617
Fix wallet indicator blink via wallet loading state (#2091)
* Fix wallet indicator blink via wallet loading state

* Fix 'attach wallet' button not showing up on page refresh
2025-04-12 14:26:30 -05:00
soxa
bc0be4f92a
enhance: helpful error message on login (#2094)
* enhance: helpful error message on login

* better message, don't edit original message

* fix comment placement
2025-04-12 14:23:08 -05:00
ekzyis
a7245930c2
Use wallets instead of wallets.length as useZap dependency (#2088)
* Potential fix for stale useZap wallet dependency

* Memoize context value for wallets
2025-04-09 15:53:31 -05:00
ekzyis
52365c32ed
Wallet badges (#2040)
* Remove gun+horse streak

* Add wallet badges

* Fix empty recv wallet detected as enabled

* Resolve badges via columns and triggers

* Fix backwards compatibility by not dropping GQL fields

* Gun+horse notifications as streaks via triggers

* Fix error while computing streaks

* Push notifications for horse+gun

* Move logic to JS via pgboss job

* Fix argument to notifyNewStreak

* Update checkWallet comment

* Refactor notification id hack

* Formatting

* Fix missing update of possibleTypes

This didn't cause any bugs because the added types have no field resolvers.

* Add user migration

* Fix missing cast to date

* Run checkWallet queries inside transaction
2025-04-09 15:29:44 -05:00
nl
af096a08a0
Gradually replace default tips with user-defined ones on long press (up to 7) (#2069)
* commented the lines to make sure dupes are also checked on subdomains

* chore: fix lint issues

* add more than 3 custom tips, up to 7 total

* fix merge issue

* shorten logic

* don't check length for slice without need

---------

Co-authored-by: 김현희 <pygmal@gimhyeonhuiui-MacBookAir.local>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-04-07 18:21:51 -05:00
ekzyis
644899469f
System logger for users (#2035)
* System logger

* remove outdated credits preference check on RECEIVE

* fix developer focused error message

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-04-02 17:18:41 -05:00
ekzyis
d7a7273ca4
Wallet indicators (#2002)
* Add wallet indicator

* Reveal wallets page via button
2025-04-02 15:02:13 -05:00
k00b
2d51a5def9 fix #2055 2025-04-01 17:19:22 -05:00
ekzyis
73e0b5055e
Add territory link in post form info (#2044) 2025-03-31 12:02:46 -05:00
ekzyis
ec7b05830a
Refactor indicators (#2032) 2025-03-26 14:32:42 -05:00
ekzyis
e29c6b4842
Refactor reminder push notifications (#2026)
* Refactor reminder push notifications

items should always exist and if not, we can just immediately fail imo

* Use same text for reminders in /notifications
2025-03-26 10:59:27 -05:00
k00b
bb76c6a138 prevent resubmission of bounty payments 2025-03-26 10:23:17 -05:00
ekzyis
895efd0181
Refactor multi auth with useCookie (#2019) 2025-03-25 15:57:53 -05:00
ekzyis
d7e01d0186
Remove multi auth error checking (#2018)
* Simplify state of selected account

* Remove multi auth error checking
2025-03-25 12:24:15 -05:00
ekzyis
3ff03960eb
Remove unused addAccount, removeAccount (#2009) 2025-03-23 11:53:04 -05:00
ekzyis
9b08988402
Refactor login cookie with cookieOptions function (#2003) 2025-03-22 19:36:04 -05:00
ekzyis
b54268a88f
normalized wallet logs (#1826)
* Add invoiceId, withdrawalId to wallet logs

* Truncate wallet logs

* Fix extra db dips per log line

* Fix leak of invoice for sender
2025-03-22 17:31:10 -05:00
ekzyis
e7eece744f
Use __Secure- cookie prefix (#1998) 2025-03-22 16:59:57 -05:00
ekzyis
5e2185c18f
Use cookieOptions for pointer cookie (#2005) 2025-03-21 19:53:49 -05:00
k00b
bce4053b72 update boost explainer 2025-03-21 19:49:53 -05:00
ekzyis
f96b3bf19a
Fix useQuery lifecycle anti-pattern (#2001) 2025-03-20 17:46:19 -05:00
ekzyis
271563efbd
Fix space before question mark in delete prompt (#1995) 2025-03-20 10:48:17 -05:00
ekzyis
ada230597d
Fix anon dropdown button width (#1997) 2025-03-20 10:46:07 -05:00
Edward Kung
08501583df
reset nym editting state on page change (#1993) 2025-03-19 18:55:22 -05:00
ekzyis
74d99e9b74
Reset multi_auth cookies on error (#1957)
* multi_auth cookies check + reset

* multi_auth cookies refresh

* Expire cookies after 30 days

This is the actual default for next-auth.session-token.

* Collapse issues by default

* Only refresh session cookie manually as anon

* fix mangled merge

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-03-19 18:54:43 -05:00
soxa
71caa6d0fe
Prevent new account creation on login (#1976)
* Prevent account creation if we're not signin up

* remove cookie once logged in, 24 hours expiry, comment

* adjust error messages

* check signin instead of signup

* appendHeader to avoid overwrites, fix typo, use NodeNextRequest to handle cookies

* expire cookie if signup
2025-03-19 16:55:38 -05:00
Edward Kung
9905e6eafe
Top cowboys territory selector fix (#1972)
* fix territory selector when in top/cowboys

* redirect /~sub/top/cowboys to /top/cowboys

* check if pathname ends with /top/cowboys

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

* fix territory selector in top/stackers and top/territories

* better routing logic

---------

Co-authored-by: ekzyis <ek@stacker.news>
2025-03-19 08:19:19 -05:00
soxa
63704a5f0f
Hide pull-to-refresh when not pulling (#1986) 2025-03-18 18:16:36 -05:00
ekzyis
964cdc1d61
Fix warning about missing key for children (#1987) 2025-03-18 17:48:13 -05:00
Edward Kung
b71398a06c
Search improvements: Add relevance search and make recent searches less strict (#1962)
* reconfigured search pipeline

* remove console debug messages

* log1p for comments

* improve relevance of non-relevance sorted queries

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-03-17 19:25:20 -05:00