129 Commits

Author SHA1 Message Date
9fa0cbf6d6 Add on-click image carousel 2024-03-09 13:44:14 -08:00
3718b152b6 Fix lint error 2024-03-08 14:11:06 -08:00
42ab53fb73 Remove 'go-playground/form' dependency; just use JSON and 'hx-ext="json-enc"' in all forms 2024-03-08 14:07:25 -08:00
c6ec9be562 Update CHANGELOG.txt for v0.6.4 2024-03-03 15:31:58 -08:00
8255c4f65e Improve login flow
- on successful login, kick off scraping of logged-in user, their followees, and only-followed home timeline
- `--auto-open` flag now opens `/login` instead of home page
- add HTMX spinner for login page
- provide toast error notification if login is challenged (e.g., 2FA)
2024-03-03 15:04:19 -08:00
c19d36d053 Split Timeline (Home page) into 2 feeds: offline feed and logged-in user follows feed 2024-03-02 23:42:07 -08:00
113858c9e4 Add template file for second-previous commit 2024-03-02 15:43:58 -08:00
12d10d4355 Make 'show more' button look nicer 2024-03-02 13:39:25 -08:00
a65937d6e4 Add a button to Search page to scrape search results 2024-03-01 17:25:00 -08:00
38495e8591 Add button and query to delete a List 2024-02-25 21:58:56 -08:00
66b32e4c6f Fix lint errors 2024-02-25 21:32:33 -08:00
26a18592fa Add button to create a new List 2024-02-25 21:31:49 -08:00
e2952d0fda UI: visually indicate the hovered Tweet with a background color change 2024-02-25 20:42:31 -08:00
7330dfe05f Add button to remove user from List 2024-02-25 20:39:46 -08:00
677eb0c8a4 Add template files for List pages 2024-02-25 17:30:30 -08:00
333e4bb553 List Detail 404s if list ID doesn't exist 2024-02-25 17:28:48 -08:00
3f66daef68 Add Lists pages
- List index page
- List detail pages: Feed and Users
- Improve styling for page headings (e.g., Search, Follows, list title, etc)
2024-02-25 17:14:09 -08:00
8d61aec316 REFACTOR: split Follows into its own template instead of piggybacking on Lists 2024-02-25 16:48:54 -08:00
900e0e417e Fix some tests 2024-02-23 18:56:39 -08:00
b146cd9bb5 Make scrolling a lot better in DMs 2024-02-23 18:08:55 -08:00
6bfc7f78e1 Fix user feed HTMX spinner being underneath the searchbar (looks weird) 2024-02-19 23:09:59 -08:00
69543e872e Add HTMX spinner to user feeds 2024-02-19 18:04:57 -08:00
1317d44b52 BUGFIX: fix focused tweets being clickable 2024-02-18 15:23:16 -08:00
90b9df15e5 Several visual improvements
- make spacing around a tweet's reply-mentions container grow and shrink more appropriately
- fix double HTMX-spinner when a tweet has a quoted tweet
- add favicon
2024-02-18 15:07:56 -08:00
018df0d6a4 Rename 'for you' timeline to 'following only' to match Twitter's upstream changes
- Also add 'get_user_likes_all' cmd subcommand to get all users likes
2024-02-18 14:47:12 -08:00
84ff6c12b7 Change all timestamps to use milliseconds instead of seconds 2024-01-07 15:15:43 -06:00
e300a882e4 Make end-of-feed indicator look better 2024-01-03 21:18:00 -06:00
f636883396 Fix lint error 2023-12-31 22:28:07 -06:00
ea7492d96b Add spinner for fetching a tweet; show error messages on server errors (i.e., panics) 2023-12-31 22:27:35 -06:00
60ac688dbc Add refreshing for user followers/followees 2023-12-31 18:12:38 -06:00
45f3fd199f Preserve search bar text during search 2023-12-31 16:37:26 -06:00
17c9ab77ea Make Followers/Followees pages show the user header at the top
- also make the followees/followers count indicators in a user header link to their respective pages
2023-12-31 16:32:43 -06:00
0fdba20c58 REFACTOR: move a bunch of renderer helpers around (bunch of whitespace diffs)
- rename 'files.go' to 'tpl_globbing_utils.go' which is a bit more descriptive
- move tpl file globbing utils to this file
2023-12-31 16:27:18 -06: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
474b30cdc1 Add htmx 'json-enc' extension as a vendored JS file 2023-12-31 15:44:13 -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
4b6686cde6 Fix lint errors 2023-12-26 14:09:03 -06:00
795b7250ed Add flag to auto-open page in web browser 2023-12-26 12:20:58 -06:00
482238abe0 Poll for DM updates every 3s instead of 7s; fix scrolling on new DMs sent and received; clear composer box after sending message 2023-12-24 21:53:03 -06:00
db692e747a Fix lint error, add test for empty polling result 2023-12-24 19:43:00 -06:00
bd90b1c528 Add polling for new messages in a chat room while on the page 2023-12-24 19:28:15 -06:00
d80a2bd5b1 REFACTOR: fix some SQL queries that were indented with spaces, clean up some stuff 2023-12-24 19:22:44 -06:00
e1bc6bba98 Enable sending DM messages 2023-12-24 14:21:57 -06:00
3ba8e3ef70 Restrict access to routes when not logged in (i.e., no active session) 2023-12-24 14:09:46 -06:00
a039b4b320 Get rid of dropdown menu on tweets, just put the two buttons next to each other 2023-12-20 11:55:50 -08:00
fee47205ec Move content downloading to the background when scraping 2023-11-26 22:13:47 -08:00
08783d2bf4 Add icon file for replying-to DM indicator 2023-11-26 21:26:00 -08:00
903483e305 Add function to send DMs 2023-11-26 21:25:04 -08:00
e5597ceac0 BUGFIX: user is missing when loading their user profile, try to scrape them first 2023-11-26 20:43:38 -08:00