195 Commits

Author SHA1 Message Date
Alessio
14ea626014 Show unread notifications count bubble in web UI; add background scraping of notifications every 10s 2024-09-02 17:00:30 -07:00
Alessio
665e6a31dd Add notifications page 2024-08-31 23:23:22 -07:00
Alessio
f554846355 Add sample notification data, and compound query to retrieve notifications and associated data 2024-08-31 23:04:13 -07:00
Alessio
c16ed03f22 Manual enable browser cache (1 hour expiry) for static assets 2024-08-23 12:50:02 -07:00
Alessio
9c8c7cdf65 'webserver' subcommand now respects the '--session' flag 2024-08-19 17:49:36 -07:00
Alessio
e2ca9a975a Remove scraper singleton pattern entirely 2024-08-19 17:27:54 -07:00
Alessio
08e5a726a8 Remove most uses of the singleton pattern in 'scraper' package 2024-08-19 16:45:32 -07:00
Alessio
adbab97ca1 Reset the CI pipeline step conditions (don't force everything to run every time anymore) 2024-08-19 16:39:22 -07:00
Alessio
5d0fd63591 When returning HTTP errors, send toasts if request is HTMX 2024-08-19 14:43:28 -07:00
Alessio
ee2b287fd9 Enable adding toasts in full page reloads (and HTMX where it's hx-boost or target = body)
- use toasts to display non-fatal scraping errors for Tweets
2024-08-18 16:36:32 -07:00
Alessio
24129c4852 REFACTOR: reduce technical debt, particularly that caused by singleton pattern in pkg/scraper
- ensure all scraper functions have a `api.XYZ` version and a package-level convenience function
	- isolate `the_api` to top-level convenience functions, in preparation for removal
- move a bunch of scraper functions around to be nearby their related functions
- new ErrLoginRequired
- remove obsolete APIv1 stuff (Feed, TweetDetail)
- rename scraper function GetUserFeedGraphqlFor => GetUserFeed
- fix go.mod Go version incorrectly claiming it's compatible with Go 1.16 (should be Go 1.17)
2024-08-09 19:48:50 -07:00
Alessio
6a464827c7 Add close icon for DM replying 2024-07-28 18:06:37 -07:00
Alessio
c1c781af61 Implement replying in DMs 2024-07-28 17:18:30 -07:00
Alessio
b4384f9cc4 Enable sending emoji reactions in DMs 2024-07-28 14:09:41 -07:00
Alessio
7244bf51e9 Make Bookmarks scrapable from web UI 2024-07-28 14:00:21 -07:00
Alessio
98015ddf0c REFACTOR: remove DMTrove type, merge it into TweetTrove 2024-07-28 08:01:58 -07:00
Alessio
821d36b116 Add emoji picker for DMs 2024-07-27 15:40:55 -07:00
Alessio
b4a4084b48 Make image carousel close if user clicks outside it 2024-07-14 13:23:07 -07:00
Alessio
ef15e8a306 Handle guest token / session initialization when not connected to internet 2024-07-14 13:20:44 -07:00
Alessio
a1faacaf6b Don't throw away all previous results if you get rate-limited, just save them 2024-06-10 19:59:08 -07:00
Alessio
2a86e8df15 Change sidebar refresh interval to 3s instead of 10s 2024-05-29 23:54:43 -07:00
Alessio
d45edcf08c Add template file for previous commit 2024-05-29 22:17:25 -07:00
Alessio
21ab098e42 Fix lint error 2024-05-29 22:16:15 -07:00
Alessio
63360518ef Enable page for bookmarks 2024-05-29 22:15:22 -07:00
Alessio
8c9fb06e52 Fix DM composer textbox getting weird if you paste a long link in it 2024-05-27 14:47:57 -07:00
Alessio
61404cf5b0 Enable manual re-scraping of chat rooms 2024-05-12 17:37:08 -07:00
Alessio
827c15431c Make messages list update every 3s 2024-05-12 17:01:14 -07:00
Alessio
455639dffd Change the 'mark as read' button to use an eye icon 2024-05-11 11:12:19 -07:00
Alessio
f927507089 Enable marking DMs as read 2024-05-10 22:09:48 -07:00
Alessio
39c2250719 REFACTOR: add 'toast' helper response handler to produce toasts 2024-05-10 22:02:20 -07:00
Alessio
e12f347650 Fix lint error 2024-05-09 13:13:37 -07:00
Alessio
2a7a4e700e Remove 'dm-composer' OOB template and replace it with a simple 'hx-on:htmx:after-request' attribute 2024-05-09 13:11:05 -07:00
Alessio
73c89f70fb REFACTOR: move /messages/<id>/send handler into its own function 2024-05-08 21:59:27 -07:00
Alessio
a0a32d0fb8 Fix another lint error 2024-05-05 11:25:00 -07:00
Alessio
5d727487ba Fix lint error 2024-05-05 11:23:06 -07:00
Alessio
71230e3886 Fix 3 bugs in DMs
- escape HTML entities in messages so "<" doesn't scrape as "&lt;"
- escape quotes in sent messages, so they no longer fail to send
- fix the web UI receiving the last 50 messages after every sent message instead of just the new ones
2024-05-05 10:58:39 -07:00
Alessio
341ddaa5c2 Add Participants view to group chats 2024-05-04 21:41:15 -07:00
Alessio
73e608069c Add open-in-external button to DM headers 2024-05-04 17:59:06 -07:00
Alessio
ca4d11cb05 Improve scrolling behavior in DMs when paging back through a conversation 2024-05-04 17:50:38 -07:00
Alessio
9b5f1d33cf Make clicking on a replying-to button in DMs scroll that message into view 2024-05-04 17:21:56 -07:00
Alessio
d907a6c500 Make DM message 'show more' button use same styling as timeline one 2024-05-04 15:51:36 -07:00
Alessio
af3e496468 Add pagination to DM conversation and scrolling back using 'show more' button 2024-05-04 15:44:17 -07:00
Alessio
4d6407492a REFACTOR: split Messages handler into functions; add 'is_htmx' helper function 2024-05-04 15:14:51 -07:00
Alessio
6982b28cb2 Fix lint error 2024-05-03 16:18:09 -07:00
Alessio
1c874d8e0a Fix entities preceded by punctuation marks rendering weird 2024-05-03 16:14:58 -07:00
Alessio
47dbd4fe42 Add template file for previous commit 2024-05-03 15:26:30 -07:00
Alessio
62500d69dd Add header section to DM chat views 2024-05-03 15:10:14 -07:00
Alessio
b919f4e976 Add copy link button to tweets and 'Go Online' button to nav sidebar 2024-05-03 13:51:02 -07:00
Alessio
99a3f9d4b0 Add icons for the previous GIF related commit 2024-05-01 14:39:48 -07:00
Alessio
b0a0c36141 Make sidebar poll for notifications every 10s 2024-04-28 15:41:47 -07:00