154 Commits

Author SHA1 Message Date
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
aaab11b1d0 Add DM message replying-to indicators/previews and render embedded tweets 2023-11-25 14:21:09 -08:00
c30a674522 Remove outdated test 2023-11-19 21:13:04 -08:00
c471ae3c65 Fix lint error 2023-11-19 20:52:54 -08:00
b73ee1f5d2 Add support for group DMs; also make UI highlight which chat is currently active 2023-11-19 20:37:22 -08:00
6e9a370073 Various improvements to Messages UI
- Chat list previews look a bit nicer, and display the time of last message
- Chat messages show sent_at time
- Messages with line breaks will actually display as paragraphs now
- Misc spacing improvements
- BUGFIX: fix preview DB query crashing if there's no messages in a chat
2023-11-19 15:31:59 -08:00
c6d0bbce65 Add polling for DM updates while webserver is running 2023-11-19 13:51:16 -08:00
0fe65f99d5 Add test for previous commit 2023-11-14 11:32:27 -08:00
f67fc443f6 Add Messages page 2023-11-14 11:12:23 -08:00
99f6de9d45 Add UI queries for DMs 2023-11-12 13:04:02 -08:00
186cea5f1c REFACTOR: a bunch of miscellaneous spacing and formatting improvements 2023-11-12 12:53:56 -08:00
93059f8a61 Make user feed buttons less ugly 2023-11-07 12:48:59 -04:00
cefe8fc939 Add background scraping of logged-in user's Likes 2023-11-07 12:28:56 -04:00
6f66f68a15 Add test for users search page 2023-11-07 12:26:01 -04:00
ae749a19d2 Add users search page 2023-11-07 12:21:53 -04:00
723b7e4fa1 Add Lists page 2023-11-06 14:47:46 -04:00
33c8ef30ec Fix lint error 2023-11-05 18:38:38 -04: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
2b5db51fc1 Fix UI bug with extremely long words with no spaces screwing up the layout because they won't wrap 2023-11-02 17:52:30 +00:00
2e0e307b93 Change '.focused-tweet' to '#focused-tweet'; tidy up 'tests.sh' 2023-10-14 20:08:58 -03:00
535f28c278 Enable search sort-orders 2023-10-14 15:06:50 -03:00
72df452401 Add "with replies", "without replies", "media" and "likes" tab to User Feed
- Also add UI option to scrape a user's Likes from their user profile
2023-10-13 17:47:13 -03: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
9bb751afa5 BUGFIX: Fix retweeted-by button trying to open 2 pages simultaneously (user feed and the retweeted tweet) 2023-10-12 10:08:22 -07:00
f4ccc075f6 Show threads in the UI 2023-10-12 09:47:02 -07:00
cf41786843 Fix previous commit 2023-10-09 20:00:34 -07:00