225 Commits

Author SHA1 Message Date
Alessio
7a056c7494 Fix whitespace issue (kick pipeline) 2025-01-17 15:02:14 -08:00
Alessio
5f1e917819 Try re-downloading chat images 5x with 0.5s delay before giving up 2025-01-17 14:48:31 -08:00
Alessio
938a725f39 Fix bug introduced by BackgroundTask refactor 2024-12-22 08:38:54 -08:00
Alessio
29666bd51b Fix lint error 2024-12-22 08:08:47 -08:00
Alessio
8d29e25823 Don't bother sending a RemoteUrl for DM images if they're not downloaded yet, since they can't be loaded without an authentication token anyway 2024-12-22 08:07:26 -08:00
Alessio
ff638bd543 REFACTOR: create a BackgroundTask abstraction 2024-12-22 08:03:12 -08:00
Alessio
20338e1784 UI: tweak emoji styling again 2024-12-09 14:06:00 -08:00
Alessio
c451d72d99 UI: Decrease the padding on emoji reaccs slightly 2024-12-09 13:53:09 -08:00
Alessio
9d95fcbe57 Add htmx spinner to refresh-chat-room button 2024-12-09 13:44:11 -08:00
Alessio
5dcca9464b Add more non-happy-path HTTP tests (round #2) 2024-12-09 12:37:17 -08:00
Alessio
2a05512a9c Don't send empty search queries from search bar 2024-12-02 20:31:41 -08:00
Alessio
6e271bccc0 Add more non-happy-path HTTP tests 2024-12-02 20:30:56 -08:00
Alessio
9ce4f84a82 Fix lint errors 2024-12-02 18:54:40 -08:00
Alessio
2edead5913 BUGFIX: fix a bunch of issues with HTMX error-response toasts
- Add tests for a bunch of error cases and non-happy paths
2024-12-02 18:50:54 -08:00
Alessio
222f3d7ab5 REFACTOR: make helper function for webserver tests with active user 2024-12-02 15:08:58 -08:00
Alessio
854cfb6d7a REFACTOR: split webserver/server_test.go into a bunch of different files, by handler 2024-12-02 14:51:22 -08:00
Alessio
5b8d110474 UI: add a little circle and background around the active user's reaccs 2024-11-09 18:16:01 -08:00
Alessio
97888e2b23 BUGFIX: fix reaccs panicking if the reacc'd message isn't the latest one in the chat 2024-11-09 18:13:05 -08:00
Alessio
faac7e9b16 Add marking notifications as read 2024-11-06 21:54:21 -08:00
Alessio
212c1b4e50 Add replied-to username to reply previews in DMs 2024-11-06 19:44:08 -08:00
Alessio
2b7a636720 Remove the unauthenticated GetUser requests as they no longer work 2024-11-06 18:36:06 -08:00
Alessio
4d81b8d879 Make banner images open in carousel on click as well 2024-11-06 17:12:20 -08:00
Alessio
d59ef45569 Profile images in user feed headers are now clickable to open the image full-sized (are no longer links to the page you're already on) 2024-11-06 17:06:30 -08:00
Alessio
726d738844 Fix emoji picker's skin tone data not being compatible with Twitter's emojis 2024-11-02 13:26:28 -07:00
Alessio
b0cf2076e2 Make notifications paginated 2024-11-01 23:23:03 -07:00
Alessio
3539d9418d SaveTweetTrove now re-fetches users with conflicting handles as well 2024-09-23 00:23:07 -07:00
Alessio
4ea15f10af Add scraper function to get user by ID 2024-09-15 22:56:59 -07:00
Alessio
9c0f9504f6 "ConvertToAPIUser() now returns an error indicating a "not-found" response, which propagates through "GetUser" API calls 2024-09-15 17:59:25 -07:00
Alessio
2d35c37e17 Simply ErrNotInDatabase implementation 2024-09-15 17:47:51 -07:00
Alessio
667b54503d Fix lint error 2024-09-02 17:06:36 -07:00
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