3429 Commits

Author SHA1 Message Date
ekzyis
f58b853e8b
Fix input type of url for NWC receive (#2389) 2025-08-03 07:42:52 +02:00
ekzyis
6d244a5de6
Handle uploads in territory descriptions (#2379)
* Remove unused parameter

* Mark uploads as paid on territory create and update

* Refactor upload expiry check

* Check upload expiry on territory create

* Include upload fees in territory create/update cost

* Also check for expired uploads on edits

* Find deleted uploads with one query
2025-08-01 19:40:15 -05:00
k00b
45acbaa4fa pay pory 2025-08-01 18:34:49 -05:00
ekzyis
bc569be34a
Fix spacing if no badges (#2376) 2025-07-31 18:04:12 -05:00
ekzyis
416b675a2f
Format GraphQL wallet stuff + string interpolation (#2375)
* Format GraphQL wallet stuff

* Use string interpolation for GraphQL wallet stuff
2025-07-31 15:01:54 -05:00
k00b
7247083b72 pay pending awards 2025-07-31 13:02:14 -05:00
github-actions[bot]
d392bbe3b5
Extending awards.csv (#2374)
Co-authored-by: huumn <34140557+huumn@users.noreply.github.com>
2025-07-31 13:00:11 -05:00
Edward Kung
0299bbe4bc
fix hashtag links opening in new tabs (#2373) 2025-07-31 12:58:58 -05:00
github-actions[bot]
c77d10dad2
Extending awards.csv (#2372)
Co-authored-by: huumn <34140557+huumn@users.noreply.github.com>
2025-07-31 10:37:39 -05:00
Bryan Mutai
da9287f715
Refactor issue extraction logic in findIssuesInPR function (#2332) 2025-07-31 10:00:51 -05:00
ekzyis
7857601c36
wallet logs: less visual clutter, refactor (#2369)
* Remove unnecessary initial state for template logs

* Rename skip to noFetch

* Remove outdated TODO

* Cleaner wallet template logs + refactor
2025-07-31 09:58:34 -05:00
soxa
1aeb206842
fix: prevent GET_NEW_COMMENTS query from running in-between renders (#2345) 2025-07-30 12:35:38 -05:00
ekzyis
d175d0e64d
Fix missing validation for NWC receive (#2365) 2025-07-30 11:37:25 -05:00
ekzyis
6aeffa7aff
Add Blitz wallet (#2353) 2025-07-29 10:59:42 -05:00
ekzyis
5f7d0ead1d
Update instructions to add new wallet (#2352) 2025-07-29 10:59:02 -05:00
ekzyis
2fa2f0baea
Add flake.lock (#2351) 2025-07-29 16:55:52 +02:00
ekzyis
1dc4018a3c
Use touch-action: pan-y to fix DnD vs scroll (#2350)
* Fix handleTouchMove not handling leaving elements

* Fix DnD vs scroll on mobile
2025-07-28 17:11:21 -05:00
ekzyis
0968c77bdf
Fix missing reuse of nav.module.css (#2349)
* Fix autoprefixer warning

* Fix missing reuse of nav.module.css
2025-07-28 17:10:30 -05:00
ekzyis
454cb55f7f
Fix autoprefixer warning (#2348) 2025-07-28 17:09:42 -05:00
soxa
9c8071339f
Declarative Web Push support (#2300)
* Declarative Web Push support, standardized JSON format

TODOs:
- sane app badge count

* URL backwards compatibility, add icon to the JSON payload, fix malformed payload recognition on classic push notifications

* typo: wrong app_badge placement in JSON payload

* adapt declarative JSON payload for legacy Push API using spec-conformant transformations
2025-07-28 17:09:13 -05:00
ekzyis
20147cae15
Fix undefined in resolved WalletTemplate id (#2344) 2025-07-27 22:04:22 -05:00
ekzyis
cf5ac8272d
Handle error property in NWC response (#2343) 2025-07-27 14:12:49 -05:00
ekzyis
a827dc6fde
Use x-overflow for tab navigation (#2337)
* Use x-overflow for tab navigation

* Define all CSS for tabs in nav.module.css
2025-07-27 12:37:25 -05:00
soxa
a4a0fdb060
Fix live comments behavior on paginated comments and threads (#2334)
* livecomments: patches for paginated comments; broader ViewMoreReplies component

live comments:
- don't show the thread button for thread comments that are shown as full items (top level)
- don't try to count/inject on paginated comments, just show the live comments dot
- dedupe new comments being fetched with already existing comments, useful for just showing the dot, but not the button

comments:
- live comments dot now appears on both paginated and bottomed out comments
-- merge ViewAllReplies with ReplyToAnotherPage

* fix thread comment recognition, now based on depth
2025-07-26 18:06:22 -05:00
ekzyis
ef1c586231
Replace text-wrap with white-space because of better support (#2338) 2025-07-26 17:24:11 -05:00
ekzyis
ec5ea1bc5f
Extending awards.csv (#2335)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-07-26 12:48:03 -05:00
ekzyis
be1b497dfd
Add review guideline for cursor bot (#2336)
see https://docs.cursor.com/bugbot#rules
2025-07-26 12:46:35 -05:00
ekzyis
f14c0ed0e4
Extending awards.csv (#2328) 2025-07-25 10:14:18 -05:00
pory
09f8f12314
reduce anon itemCreate cost from 100 to 10 (#2316)
* reduce anon itemCreate cost from 100 to 10

* chore: format code with StandardJS

---------

Co-authored-by: porygone-z <porygone-z@kali>
Co-authored-by: ekzyis <ek@stacker.news>
2025-07-25 09:56:52 -05:00
ekzyis
0155946d74
Fix carousel dropdown (#2326)
Co-authored-by: brymut <mutaiwork@gmail.com>
2025-07-24 14:18:19 -05:00
soxa
9e2c35c641
Fix non-thread live comments recursion logic (#2324)
* fix: recurse through existing comments only if we're in the newComments subtree or if it's the start of a thread

* cleanup: better comment

* cleanup: re-order parameters, comment touchup
2025-07-24 12:28:26 -05:00
ekzyis
160b04ceaa
Carousel cleanup (#2325)
* Remove unused carousel args

* Remove unused export

* Remove unnecessary ref in dependencies
2025-07-24 18:07:22 +02:00
soxa
ecac519efb
Fix clear new comments on route change (#2319) 2025-07-23 23:47:53 -05:00
ekzyis
7c10ded8a6
Fix footer visible through dropdown (#2323) 2025-07-23 23:47:16 -05:00
ekzyis
84ed0be86d
Fix missing type check in maxStreak resolver (#2320) 2025-07-23 17:41:35 -05:00
Keyan
6a3155fa93
short cirtuit out of live comment query if possible (#2318) 2025-07-23 14:34:49 -05:00
ekzyis
6cc87ceac4
Update welcome script (#2317) 2025-07-23 20:34:59 +02:00
soxa
9092d90797
Enhancements to live comments (#2269)
* check new comments every 10 seconds

* enhance: clear newComments on child comments when we show a topLevel new comment; cleanup: resolvers, logs

* handle comments of comments, new structure to clear newComments on childs

* use original recursive comments data structure

* correct comment structure after deduplication

* faster newComments query deduplication, don't need to know how many comments are there

* cleanup: comments on newComments fetches and dedupes

* cleanup, use correct function declarations

* stop polling after 30 minutes, pause polling if user is not on the page

* ActionTooltip indicating that the user is in a live comment section

* handleVisibilityChange to control polling by visibility

* paused polling styling, check activity on 1 minute intervals and visibility change, light cleanup

* user can resume polling without refreshing the page

* better naming, straightforward dedupeComment on newComment arrival

* cleanup: better naming, get latest comment creation, correct order of comment injection

* cleanup: refactor live comments related functions to use-live-comments.js

* refactor: clearer naming, optimized polling and date retrieval logic, use of constants, general cleanup

* ui: place ShowNewComments in the bottom-right corner of nested comments

* fix: make updateQuery sort-aware to correctly inject the comment in the correct Item query

* cleanup: better naming; fix: usecallback on live comments component; fix leak on useEffect because of missing sort
atomic apollo cache manipulations; manage top sort not being present in item query cache
queue nested comments without a parent, retry on the next poll
fix commit messages

* fix: don't show unpaid comments; cleanup: compact cache merge/dedupe, queue comments via state

* fix: read new comments fragments to inject fresh new comments, fixing dropped comments;

ui: show amount of new comments

refactor: correct function positioning;

cleanup: useless logs

* enhance: queuedComments Ref, cache-and-network fetch policy; freshNewComments readFragment fallback to received comment

* cleanup: detailed comments and better ShowNewComment text

* fix: while showing new comments, also update ncomments for UI and pagination

* refactor: ShowNewComments is its own component; cleanup: proven useless dedupe on ShowNewComments, count nested ncomments from fresh new comments

* enhance: direct latest comment createdAt calc with reduce

* cleanup queue on unmount

* feat: live comments indicator for bottomed-out replies, ncomments updates; fix: nested comment structures

- new comments indicator for bottomed-out replies
- ncomments sync for parent and its ancestors
- limited comments fragment for comments that don't have CommentsRecursive
- reduce cache complexity by removing useless roundtrips

ux: live comments indicator on bottomedOut replies

fix: dedupe newComments before displaying ShowNewComments to avoid false positives

enhance: store ids of new comments in the cache, instead of carrying full comments that would get discarded anyway

hotfix: newComments deduplication ID mismatch, filter null comments from freshNewComments

fix: ncomments not updating for all comment levels; refactor: share Reply update ancestors' ncomments function with ShowNewComments

cleanup: better naming to indicate the total number of comments including nested comments

fix: increment parent comment ncomments

cleanup: Items that will have comments will always have a structure where item.comments is true

cleanup: reduce code complexity checking the nested comment update result instead of preventively reading the fragment

cleanup: avoid double-updating ncomments on parent

fix: don't use CommentsRecursive for bottomed-out comments

cleanup: better fragment naming; add TODO for absolute bottom comments

* enhance: give the possibility to show all new comments of a thread, even nested

* enhance: change favicon on new comments; warn: prop-drilling

* refactor: merge ShowAllNewComments with ShowNewComments, better usage of props

* hotfix: isThread should be recognized when an item has 2 items in its path

* fix regression: topLevel comments not showing

* fix: avoid trying to show new comments even after the depth limit; todo: two recursive counts might be too much

* favicon-new-comment, fix favicon showing also when there aren't new comments

* enhance: highlight new comments when shown; nit-fixes and cleanups

fixes:
- sync local commentsViewedAt on comment injection, to avoid double outline on item re-visit
- avoid double highlighting when client-side visiting an item and injecting a new comment

cleanups:
- move ShowNewComments functions to dedicated lib/comments.js
- bust auto-show enhancement due to bad useEffect usage

todos:
- two recursive counts might be too much

* cleanup: move cache manipulation functions, comments for comments.js

- lib/comments.js explanations for its functions
- itemUpdateQuery, commentUpdateFragment, getLatestCommentCreatedAt on comments.js
- format too many imports from comments.js

todo:
- we're not deduping comments for isThread, which forces us at this state, to dedupe twice

* enhance: highlight new comment with injected field, recursive injection in every case but top level; cleanups

cleanups:
- better separation of concerns for lib/comments.js
- don't show new comment count, avoiding useless complexity
- simpler topLevel/nested logic
- add comments

* backport live comments logic enhancements

use-live-comments:
- remove useless dedupe against already present comments
- check newComments.comments length to tell if there are new comments
- code reordering

show-new-comments:
- show all new comments recursively for nested comments
- get always the newest comments to inject also their own child new comments
- update local storage commentsViewedAt on comment injection
- respect depth on comment injection

comments.js
- apollo cache manipulations now live here

* hotfix: handle undefined item.comments.comments on dedupe

* hotfix: fix lint after merge

* hotfix: limited fragment for recursive comment collection; protect from null fragments; add missing deps to memoization

* merge: missing memo deps, limited fragment for non-recursive comments; fix: don't highlight injected comments with classic outline; cleanup: comments

* docs: clarify ncomments updates

* cleanup: remove unused export

* count and show only the direct new comments and recursively their children

enhance: dedupe against existing comments only in the component
enhance: recursive count/injection share the same logic

* fix regression on top level counting

* hotfix: introduce readNestedCommentsFragment in lib/comments.js

* fix: count also existing comments of a new comment; cleanup: use readCommentFragment also for prepareComments; reduce freshNewComments usage

* add support for comments at the deepest level

fixes:
- client-side navigation re-fetched all new comments because 'after' was cached, now the latest new comment time persists in sessionStorage

enhancements:
- use CommentWithNewMinimal fragment fallback for comments at the deepest level
- tweak ReplyOnAnotherPage to show also how many direct new comments are there

cleanup:
- queue management is not needed anymore, therefore it has been removed

* cleanup: remove logs

* revert counting on ReplyOnAnotherPage, TODO for enhancements PR

* move ShowNewComments to CommentsHeader for top level comments

* fix: update commentsViewedAfterComment to support ncomments

* fix typo, lint

* cleanup: remove old CSS

* enhance: inject topLevel and its children new comments, simplify injection logic

- top-level and nested comment handling share the same recursion logic
- ShowNewComments references the item object for every type of comments
— note: item from item-full.js is passed to comments.js
- depth now starts at 0 to support top level comments
- injection and counting now reach the deepest level, updating also the deepest comment

* cleanup: remove unused topLevel prop

* fix: deepest comments don't have CommentsRecursive structure, don't access it on injection

* move top level ShowNewComments above CommentsHeader; preserve space to avoid vertical layout shifting

* cleanup: remove unused item on CommentsHeader

* enhance: scroll and load new comments via a floating button using IntersectionObserver API; fix merge: restore injected field for outlining

* style: transparent and animated floating button, new comment dot color aligned to new comments accent color

* cleanup: less redundancy between the two types of buttons; enhance: show the floating button only if we're past the element, not only if it's not visible

* enhance: outline newly injected comments using root item's lastCommentAt

* cleanup: remove transparency of floating comments button, remove other traces of the injected field

* adapt and restore showing all new comments of a thread

* fix: respect deepest comments structure on injection, adjust depth limit; cleanup: consistent naming

* fix: avoid double outlines because of all conditions being met

* cleanup: remove favicon, dedicate space for useVisibility, correct comments

* ux: show all new comments of a thread only if its children have them

* mark injected comments in the cache for reliable outlining

* cleanup: clearer structure, more explaining

* optimize: better closure usage, remove duplicate code, immutable payloads

- ncomments count logic shared with injection and counting
- don't re-create and persist closures for every injection, rather temporarily on injection
- access item hierarchy once, avoid creating new arrays
- don't create and mutate payloads, rather know what to return

fixes:
- fix wrong parameters on traverseNewComments recursion

* cleanup: further clarifications

* safer rootLastCommentAt usage for injected comments outlining

* hotfix: ignore nDirectComments server updates when the item being updated has pending newComments, fixes CommentEdit consequences

* simpler show all new comments text for thread comments, regardless of how many

* fix: reference the correct Item for newComments reading, during nDirectComments apollo merge

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2025-07-23 11:57:36 -05:00
ekzyis
3f74279f29
Fix useMemo returns new component on change (#2315)
This fixes setting the input value on scan if the component remounts while the scanner is open.

No need to use useRef to close the scanner on remount.
2025-07-23 11:50:39 -05:00
ekzyis
243b094fcd
Wallet debug logs (#2307)
* Add wallet debug logs

* Add checkbox to toggle diagnostics

* Require authentication for /wallets/debug

* Update debug log messages

* Use me.privates.diagnostics as source of truth
2025-07-23 10:42:14 -05:00
ekzyis
2913e9a9b5
extend-awards job: fix git commit exit code, ignore Soxasora, PR author filter (#2314)
* Don't fail extend-awards job if there are no changes

* Also ignore Soxasora in extends-awards.py

* Don't run extend-awards job if PR author is ignored
2025-07-23 10:21:05 -05:00
ekzyis
e1162b815a
Close passphrase scanner on unmount (#2313) 2025-07-23 09:32:45 -05:00
ekzyis
2a0dfd7af6
Only update status if protocolId is set (#2310) 2025-07-22 18:49:39 -05:00
k00b
452fcb3659 use cache when checking territory existence so that we don't query the server on every character input 2025-07-22 18:44:42 -05:00
k00b
f63d40196d fix variable input icon alignment 2025-07-22 18:26:29 -05:00
k00b
276bb94eb9 rerender textarea on accordian show for autoresizer 2025-07-22 17:04:08 -05:00
ekzyis
8344866fca
Fix wallet logger rerender (#2306) 2025-07-22 12:38:06 -05:00
ekzyis
efefdeb0f0
Use proper grid for wallet debug info (#2305) 2025-07-22 01:15:39 +02:00
ekzyis
eb55e6ac6c
Add 'ago' suffix (#2304) 2025-07-22 00:06:29 +02:00
ekzyis
faa26ec68f
Add wallet debug page (#2301)
* Add wallet debug page

* Show key hash information

* Show last key update

* Show last wallet update

* Show last device key update
2025-07-21 15:39:09 -05:00