ekzyis
18a38d8363
Refactor animations ( #2261 )
...
* Fix fireworks not checking localStorage flag
* Refactor animations
* Don't import unused animations
* Remove unused hook
---------
Co-authored-by: k00b <k00b@stacker.news>
2025-07-07 14:34:37 -05:00
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
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
k00b
3c35e905d4
improve proxy invoice info modal
2025-06-19 13:31:21 -05:00
ekzyis
acf042f06e
Remove directReceive setting ( #2230 )
...
* Remove directReceive setting
* Keep directReceive in typedef for backward compatibility
2025-06-19 12:36:20 -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
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
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
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
ekzyis
3568fc1c62
Formatting ( #2046 )
2025-03-31 09:06:38 -05:00
k00b
26a23ade92
remove leaderboard
2025-03-26 11:40:28 -05:00
k00b
5701bf640a
we can't lnurl-verify non-proxied invoices
2025-03-26 09:16:52 -05:00
ekzyis
895efd0181
Refactor multi auth with useCookie ( #2019 )
2025-03-25 15:57:53 -05:00
ekzyis
e7eece744f
Use __Secure- cookie prefix ( #1998 )
2025-03-22 16:59:57 -05:00
soxa
dbbd9477fd
don't send a verification email during sign in if no match ( #1999 )
...
* don't send verification email on signin if there's no matching user, update email.js message
* conditional magic code message; signup/signin button
* unnecessary useCallback
* switch to cookie parsing lib
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-03-20 15:32:31 -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
ekzyis
60f628e77e
Fix no pw manager autofill for device sync password ( #1953 )
...
* Fix no pw manager autofill for device sync password
* Remove unused rows property
2025-03-18 18:17:23 -05:00
ekzyis
69e62c1e6e
Rename to /api/next-account
2025-03-10 20:24:13 -05:00
ekzyis
7b725746b0
Remove unnecessary wrapping with NodeNext(Request|Response) ( #1956 )
2025-03-09 10:53:14 -05:00
ekzyis
bf54044a96
Also check for user
before setting multi auth cookies ( #1941 )
...
* Move multi auth init
* Store same token as we return in jwt callback
2025-03-04 08:58:48 -06:00
k00b
5a8804de79
disallow buying CCs through lnurl-pay and lightning address
2025-03-03 18:03:34 -06:00
soxa
5e7fd693f1
Redirect to top cowboys page if there's a time descriptor ( #1913 )
...
* redirect to cowboys.js if there's a time descriptor
* add comment for future reference
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-03-01 16:52:37 -06:00
Edward Kung
73170ba8a2
Territory analytics ( #1926 )
...
* add territory to analytics selectors
* implement territory analytics, revert user satistics header
* fix linting errors
* disallow some territory names
* fix linting error
* minor adjustments to header
* escape input
* 404 on non-existant sub
* exclude unused queries depending on sub select
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-02-28 19:15:18 -06:00
soxa
31532ff830
Dynamic loading optimizations ( #1925 )
...
* dynamic: React QR Scanner, React Datepicker; placeholder for syntax highlighting
* Loading placeholders, prevent layout shifting
2025-02-24 15:06:40 -06:00
soxa
7b988b87d9
hotfix: email address should be case insensitive ( #1923 )
2025-02-23 11:03:32 -06:00
k00b
a4cce7afed
only record landing of referree if they don't have referrer
2025-02-12 10:10:25 -06:00
soxa
1afadbdf3b
enhance: referral notifications with source ( #1862 )
...
* wip: referral notification shows source of referral
* simpler approach for source info gathering
* fix territory representation; fix fragment field
* cleanup; fix UI
* better margin approach
* hotfix: null check
* add support for comments
* use Union to represent ReferralSource; clarify with switch statements
* cleanup: compact switch statement on Referral resolver
* wip use refereeLanding
* add comments; cleanup
* hotfix: backwards compatibility for Earnings calculation
* small copy and semantics changes
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-02-11 20:02:04 -06:00
k00b
ee8fe6e72a
add boost badge fix #1860
2025-02-03 19:56:29 -06:00
soxa
be7c702602
Login with magic code ( #1818 )
...
* fix: cannot login with email on PWA
* adjust other email templates
* restore manual url on new user email
* no padding on button section
* cleanup
* generate 6-digit bechh32 token
* token needs to be fed as lower case; validator case insensitive
* delete token if user has failed 3 times
* proposal: context-independent error page
* include expiration time on email page message
* add expiration time to emails
* independent checkPWA function
* restore token deletion if successful auth
* final cleanup: remove unused function
* compact useVerificationToken
* email.js: magic code for non-PWA users
* adjust email templates
* MultiInput component; magic code via MultiInput
* hotfix: revert length testing; larger width for inputs
* manual bech32 token generation; no upperCase
* reverting to string concatenation
* layout tweaks, fix error placement
* pastable inputs
* small nit fixes
* less ambiguous error path
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-02-03 18:41:01 -06:00
Keyan
01b021a337
comment pagination with limit/offset ( #1824 )
...
* basic query with limit/offset
* roughly working increment
* working limiting/pageable queries
* denormalize direct comments + full comments below threshold
* notifications in megathread + working nest view more buttons
* fix empty comment footer
* make comments nested resolver again
* use time in cursor to avoid duplicates
* squash migrations
* do not need item.comments undefined checks
2025-01-29 19:00:05 -06:00
Keyan
4520c91179
cowboy credit modal explainers wherever they are referenced ( #1815 )
2025-01-12 15:15:53 -06:00
Keyan
146b60278c
cowboy credits (aka nov-5 (aka jan-3)) ( #1678 )
...
* wip adding cowboy credits
* invite gift paid action
* remove balance limit
* remove p2p zap withdrawal notifications
* credits typedefs
* squash migrations
* remove wallet limit stuff
* CCs in item detail
* comments with meCredits
* begin including CCs in item stats/notifications
* buy credits ui/mutation
* fix old /settings/wallets paths
* bios don't get sats
* fix settings
* make invites work with credits
* restore migration from master
* inform backend of send wallets on zap
* satistics header
* default receive options to true and squash migrations
* fix paidAction query
* add nav for credits
* fix forever stacked count
* ek suggested fixes
* fix lint
* fix freebies wrt CCs
* add back disable freebies
* trigger cowboy hat job on CC depletion
* fix meMsats+meMcredits
* Update api/paidAction/README.md
Co-authored-by: ekzyis <ek@stacker.news>
* remove expireBoost migration that doesn't work
---------
Co-authored-by: ekzyis <ek@stacker.news>
2025-01-03 10:33:07 -06:00
ekzyis
4623743c8f
fix cookie pointer override during account switching ( #1783 )
2024-12-31 13:05:20 -06:00
ekzyis
ba2cdc2275
Fix NostrAuth link text ( #1782 )
2024-12-31 08:40:30 -06:00
ekzyis
9783df8e3b
Require invite limit ( #1748 )
...
* Fix invite limit required
* Fix redeeming of unlimited invites
* Require invite limit
2024-12-28 09:28:05 -06:00
Riccardo Balbo
6efa782c11
fix typo ( #1764 )
2024-12-26 13:10:15 -06:00
Keyan
6d4dfddae8
improve rewards ( #1731 )
...
* don't bias to early zapping so much
* untested rewards/leaderboard changes
* fix cln dep for payments
* make zap proportion scale using quad root
* fix for missing proportion on hidden users
* improve rewards cutoff criteria
* Update api/resolvers/user.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update api/typeDefs/user.js
Co-authored-by: ekzyis <ek@stacker.news>
* improve switch readability
* small increase in min zap
* refresh materialized views on migration
---------
Co-authored-by: ekzyis <ek@stacker.news>
2024-12-18 10:12:11 -06:00
Riccardo Balbo
080459cd21
Fix lud-18 validation imports ( #1690 )
...
* fix lud18PayerDataSchema import
* fix validateSchema import
2024-12-08 12:37:56 -06:00
Keyan
713227b255
invite paid action ( #1681 )
2024-12-04 12:10:30 -06:00
ekzyis
01d5177006
Fix edit timer stuck at 00:00 ( #1673 )
...
* Fix edit timer stuck at 00:00
* refactor with useCanEdit hook
2024-12-02 08:18:35 -06:00
Riccardo Balbo
7f11792111
Custom invite code and note ( #1649 )
...
* Custom invite code and note
* disable autocomplete and hide invite code under advanced
* show invite description only to the owner
* note->description and move unser advanced
* Update lib/validate.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update lib/webPush.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update api/typeDefs/invite.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update pages/invites/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update pages/invites/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* fix
* apply review suggestions
* change limits
* Update lib/validate.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* don't show invite id in push notification
* remove invoice metadata from push notifications
* fix form reset, jsx/dom attrs, accidental uncontrolled prop warnings
* support underscores as we claim
* increase default gift to fit inflation
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-01 16:31:47 -06:00
Lorenzo
d88971e8e5
Fix: progress bar shown on back navigation through pathname check ( #1633 )
...
* fix: progress bar shown on back navigation through pathname check
* fix progress done race
* use router.pathname instead cause it's already there
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-30 19:05:26 -06:00
Lorenzo
7cb2aed9db
feat: recent unpaid bounties selection ( #1589 )
...
* feat: recent unpaid bounties selection
* chore: added checkbox on recent header
* chore: active bounties selection made through a checkbox
* chore: renamed function for better clarity
* chore: fixed active bounties only checkbox alignment
* chore: active-only option passed as query param
* chores: variablesFunc refactoring
* chore: removed type mapping function from recent header
* chore: router replace instead of push
* chore: router retrieved by hook instead of argument
* chore: checkbox starts checked based on url's query param
* more idiomatic react + push instead of replace
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-28 18:47:01 -06:00
ekzyis
5e76ee1844
Remove unused useWallet from QR code component ( #1660 )
2024-11-27 17:16:44 -06:00
Riccardo Balbo
6630899e79
use flexbox for wallet card header and make logos more consistent ( #1654 )
...
* use flexbox for wallet card header
* make wallet logo consistent
* remove extra div
* Update styles/wallet.module.css
Co-authored-by: ekzyis <ek@stacker.news>
* Update styles/wallet.module.css
Co-authored-by: ekzyis <ek@stacker.news>
* resize wallet banner
* remove unused justify-content
* remove cardMeta
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-27 12:14:00 -06:00
ekzyis
a032da57b9
Wallet filters ( #1627 )
...
* Add wallet filters
* Fix grid layout shift
* Store filter state in query params
* Use auto-fill instead of auto-fit
This doesn't seem to change anything but this is closer to our intention how the grid should work with fixed column width.
* Use same order for filters as icons in card
* Use state update function
* Use user-select: none for wallet filters
* Remove unnecessary '|| false'
* Add media query to keep centered grid layout on small screens
* Decrease wallet filter margin-top to 1rem
* fix wallet support usage
* improve grid
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-27 11:39:30 -06:00
Keyan
0bff478d39
direct receives and send paid action ( #1650 )
...
* direct receives and send paid action
* remove withdrawl->invoiceForward has many relationship
* fix formatMsats implicit type expectations
* ui + dropping direct payment bolt11s
* squash migrations
* fix bolt11 dropping and improve paid action wallet logging
* remove redundant sender id
* fix redirect when funding account over threshold
* better logging
2024-11-27 07:39:05 -06:00