17 Commits

Author SHA1 Message Date
Alessio
2d35c37e17 Simply ErrNotInDatabase implementation 2024-09-15 17:47:51 -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
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
a1faacaf6b Don't throw away all previous results if you get rate-limited, just save them 2024-06-10 19:59:08 -07:00
1317d44b52 BUGFIX: fix focused tweets being clickable 2024-02-18 15:23:16 -08:00
24364a26b0 REFACTOR: rework the rendering helpers
- rendering helpers moved to their own file (separate from response helpers)
- create a unified render helper instead of "buffered_render_basic_X" and "buffered_render_tweet_X"
	- this helper takes 2 data objects: one with global data (tweet trove, logged in user, etc) and one page-specific
	- this lets us remove the disgusting interface type
- modify the User List template to use UserIDs indexing into a global data object instead of a list of Users
2023-12-31 15:56:12 -06:00
52172e4e81 Fix lint errors 2023-12-26 23:18:34 -06:00
3117a1364c Add /user/followers and /user/followees pages 2023-12-26 23:16:51 -06:00
fee47205ec Move content downloading to the background when scraping 2023-11-26 22:13:47 -08:00
694a8e0bc5 Change "scrape" from a URL param to a query param
- create generic "refresh" button for User Feed that refreshes whichever tab you're on
- refactor TweetDetail view into multiple pieces for easier maintenance
- on "Already liked this tweet" error, save the Like instead of discarding it
2023-11-05 15:27:40 -04:00
d1edcbf363 Add tweet detail "/like" and "/unlike" URLs
- refactor TweetDetail to determine a bit more systematically whether scraping is required
2023-10-13 00:18:31 -03:00
14b9143f76 Compound db queries now fetch whether the tweet is liked by the current logged-in user 2023-09-04 13:11:58 -03:00
8349ca4ae3 Add background scraping of the logged-in user's home timeline 2023-08-27 21:05:09 -03:00
7f0056f2a0 Add buttons to trigger re-scrape a tweet and to open on twitter.com
- also fix link preview image sizing a bit
2023-08-22 13:52:58 -03:00
addcf0ea52 Break the HTTP handlers into separate files for maintainability 2023-08-19 22:54:44 -03:00