stacker.news/components
SatsAllDay d7ecbbae3a
Search bookmarks (#1075)
* Support `is:bookmarked` search option to search my bookmarked items

* Update the worker search module to include `bookmarkedBy: Array<Number>` which
contains the list of user ids which have bookmarked a given item

* Add a trigger on the `Bookmark` DB table to re-index the corresponding item when
a bookmark is added/removed

* Update the Search resolver to check for a `is:bookmarked` query option. If provided,
include it as an option in the search request. This updates search to look for items
which are bookmarked by the current user. By default, this preserves stacker privacy
so you can only search your own bookmarks

* Update the search page UI to show how to invoke searching your own bookmarks

* undo `is:bookmarked` support, add `bookmarks` item in search select

* short circuit return empty payload for anon requesting bookmarks

* remove console.log for debugging

* fix indexing a new item that has yet to be bookmarked

* update db migration to re-index all existing bookmarked items one time

* fix the case where deleting a bookmark doesn't trigger a new index of items

explictly specify a `updatedAt` value when deleting a bookmark, to ensure that
deleting a bookmark results in a new indexed version of the bookmarked item

* update search indexer to use the latest of all three choices for the latest version

* give bookmark index jobs longer expiration

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2024-04-19 13:24:48 -05:00
..
nav Bottom nav uses fixed position to fix firefox bug (#1011) 2024-04-04 18:50:52 -05:00
webln Use same onclose listener in sendPayment (#1020) 2024-04-04 12:28:52 -05:00
accordian-item.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
action-dropdown.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
action-tooltip.js give 1 sat fee button overlay but not button text 2024-04-17 14:22:31 -05:00
adv-post-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
adv-post-form.module.css fix height of foward percent on validation err 2023-09-12 17:04:49 -05:00
autowithdraw-shared.js less confusing expression for the hint of when the autowithdraw will be initiated (#1015) 2024-04-04 09:18:41 -05:00
avatar.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
banners.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
banners.module.css Add new visitor welcome banner (#418) 2023-09-11 16:29:45 -05:00
block-height.js add halving to price carousel 2024-04-16 17:58:26 -05:00
bolt11-info.js autowithdraw to lightning address 2024-01-11 13:10:07 -06:00
bookmark.js Toast (#431) 2023-08-25 18:21:51 -05:00
bounty-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
cancel-button.js make fee button less of a hack 2023-11-10 18:18:10 -06:00
chain-fee.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
charts-skeletons.js remove duplicative styles 2024-03-25 15:35:32 -04:00
charts.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
comment-edit.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
comment.js turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
comment.module.css refine bounty icon margin for wrapping in comments 2024-03-06 14:20:03 -06:00
comments.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
countdown.js add halving to price carousel 2024-04-16 17:58:26 -05:00
dark-mode.js dark-mode needs to block block 2023-08-04 20:45:12 -05:00
delete.js Provide option to clear withdrawal invoices (#591) 2023-11-09 11:50:43 -06:00
discussion-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
dont-link-this.js Add threshold for zap undos 2024-03-25 20:34:28 +01:00
error-boundary.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
fee-button.js give 1 sat fee button overlay but not button text 2024-04-17 14:22:31 -05:00
fee-button.module.css small receipt styling 2023-11-10 09:22:14 -06:00
footer-rewards.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
footer.js more spacing consistency 2024-03-27 14:04:04 -05:00
footer.module.css Bottom nav uses fixed position to fix firefox bug (#1011) 2024-04-04 18:50:52 -05:00
form.js Allow pasting image from clipboard (#1043) 2024-04-08 16:31:02 -05:00
form.module.css Custom date selector for more pages (#567) 2023-11-08 18:15:36 -06:00
hat.js enhance navigation 2024-03-26 18:36:31 -05:00
header.module.css refine hiding bottom navbar when virtual keyboard opens 2024-03-28 18:18:44 -05:00
hidden-wallet-summary.js fix hidden wallet balance layout shift 2024-04-17 17:22:17 -05:00
image.js fix image url construction 2024-03-20 14:18:11 -05:00
info.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
invite.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
invoice-status.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
invoice.js fix shift when loading paid invoice 2024-04-16 16:28:22 -05:00
invoice.module.css ready for invoices 2021-05-06 16:15:22 -05:00
item-act.js modal spacing fixes 2024-04-16 15:33:00 -05:00
item-full.js fullItemContainer div -> article to make it compatible with browser's reader view 2024-03-26 14:10:18 -03:00
item-info.js give edit and countdown space again 2024-04-17 13:19:10 -05:00
item-job.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
item.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
item.module.css enhance navigation 2024-03-26 18:36:31 -05:00
items.js turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
items.module.css working search 2022-01-27 13:18:48 -06:00
job-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
layout.js navigation -> nav 2024-03-26 19:49:10 -05:00
layout.module.css more spacing consistency 2024-03-27 14:04:04 -05:00
lightning-auth.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
lightning-auth.module.css Notifications with nostr info (#368) 2023-08-08 13:19:31 -05:00
lightning.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
link-form.js Fix title from draft being dismissed (#718) (#991) 2024-04-03 16:13:20 -05:00
link-to-context.js turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
link-to-context.module.css turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
log-message.js CLN autowithdrawal (#1042) 2024-04-14 17:34:21 -05:00
log-message.module.css Wallet Logs (#994) 2024-04-03 17:27:21 -05:00
logger.js Fix autowithdrawal logs (#1073) 2024-04-16 13:59:46 -05:00
login-button.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
login.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
login.module.css more invite work 2021-10-15 13:05:34 -05:00
long-pressable.js Fix first zap when modal closed (#771) (#1055) 2024-04-12 18:37:04 -05:00
me.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
modal.js prevent contexts causing rerenders 2024-04-04 17:52:59 -05:00
more-footer.js search/related posts refinements 2024-01-17 17:39:48 -06:00
mute.js Mute Management Settings Page (#1034) 2024-04-08 09:13:56 -05:00
nostr-auth.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
notifications.js Add autowithdrawal badge in notifications (#1078) 2024-04-16 10:53:05 -05:00
notifications.module.css Add autowithdrawal badge in notifications (#1078) 2024-04-16 10:53:05 -05:00
page-loading.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
past-bounties.js upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
pay-bounty.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
pay-bounty.module.css upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
payer-data.js LUD-18 Service Support (#518) 2023-10-03 14:35:53 -05:00
poll-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
poll.js give 1 sat fee button overlay but not button text 2024-04-17 14:22:31 -05:00
poll.module.css increase poll choice length to 40 chars 2023-09-28 16:52:11 -05:00
post.js enhance navigation 2024-03-26 18:36:31 -05:00
price.js add halving to price carousel 2024-04-16 17:58:26 -05:00
qr.js adjust qr skeleton for bolt11info 2024-04-16 16:20:13 -05:00
recent-header.js more spacing consistency 2024-03-27 14:04:04 -05:00
related.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
reply.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
reply.module.css add spacing to comment reply button 2023-10-26 12:17:43 -05:00
root.js improve comment performance 2023-05-06 16:51:17 -05:00
search.js Search bookmarks (#1075) 2024-04-19 13:24:48 -05:00
search.module.css search all territories by default + more intuitive search filters 2024-03-26 18:37:40 -05:00
seo.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
serviceworker.js Wallet Logs (#994) 2024-04-03 17:27:21 -05:00
share.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
snl.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
snow.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
sub-select.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
sub-select.module.css enhance navigation 2024-03-26 18:36:31 -05:00
subscribe.js Toast (#431) 2023-08-25 18:21:51 -05:00
subscribeUser.js Subscription management page (#1000) 2024-04-03 19:38:47 -05:00
table-of-contents.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
territory-form.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
territory-header.js Add missing space in front of founding date (#1027) 2024-04-05 11:52:11 -05:00
territory-list.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
territory-payment-due.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
territory-transfer.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
text.js Fix TypeError: Failed to construct 'URL': Invalid URL (#1083) 2024-04-17 12:15:36 -05:00
text.module.css Fix image rerender jitter and layout shift (#896) 2024-03-06 13:53:46 -06:00
toast.js prevent contexts causing rerenders 2024-04-04 17:52:59 -05:00
toast.module.css Use progress bar for pending payments (#873) 2024-02-24 14:33:08 -06:00
top-header.js make recent/top have consistent spacing 2024-03-27 13:44:36 -05:00
upvote.js Fix first zap when modal closed (#771) (#1055) 2024-04-12 18:37:04 -05:00
upvote.module.css fix dark mode 2023-08-04 19:21:51 -05:00
usage-header.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
use-crossposter.js Add context field to crossposted link if present 2024-03-25 17:16:45 -05:00
use-data.js remove list jitter by initially preferring ssr 2023-08-06 13:04:25 -05:00
use-debounce-callback.js remove unused debounce callback deps 2023-10-06 16:34:16 -05:00
use-has-new-notes.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
use-no-initial-effect.js reuse debounce hook more places 2023-10-06 15:01:51 -05:00
use-quote-reply.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
user-header.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
user-header.module.css Don't hide self in top even if hidden (#905) 2024-03-13 19:26:59 -05:00
user-list.js Subscription management page (#1000) 2024-04-03 19:38:47 -05:00
wallet-card.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
wallet-logs.js Wallet Logs (#994) 2024-04-03 17:27:21 -05:00