Commit graph

551 commits

Author SHA1 Message Date
Lim Chee Aun
8e341ff7ed Maybe this logic work better 2023-11-04 01:12:28 +08:00
Lim Chee Aun
0bc1b598c3 Breaking: rewrote filters implementation 2023-11-03 21:45:31 +08:00
Lim Chee Aun
1cdc4ebbe8 Apply "public" filters for hashtag timeline 2023-11-03 11:27:16 +08:00
Lim Chee Aun
fa9e0059c0 Hmm, need a flow chart for this srsly 2023-11-02 20:24:52 +08:00
Lim Chee Aun
89f82707d6 Let's try this out
Sometimes the logic gets confusing
2023-11-02 20:13:18 +08:00
Lim Chee Aun
7f327e5980 Fix same key bug 2023-11-02 19:44:53 +08:00
Lim Chee Aun
fd7caca039 text-wrap: pretty attempt again 2023-11-02 13:00:07 +08:00
Lim Chee Aun
48b505b382 Fix old columns mode setting wrongly applied
Deprecate it more now
2023-11-02 12:59:52 +08:00
Lim Chee Aun
030728bc93 Fix .header-account used wrongly
Obviously confused by my own code
2023-11-02 00:14:01 +08:00
Lim Chee Aun
d9dab6b5ee Ok need to check if navigation is undefined 2023-11-01 23:14:13 +08:00
Lim Chee Aun
d35d0cbe18 Fix active filter scrolling to wrong position on larger viewport 2023-11-01 22:56:30 +08:00
Lim Chee Aun
3361ffc366 Further make use of Navigation API
history.length is seriously not reliable
2023-11-01 21:56:37 +08:00
Lim Chee Aun
33f807de73 More reliable back button
Uses new Navigation API
2023-11-01 19:11:54 +08:00
Lim Chee Aun
ecb1be5776 Reduce extraneous fetch calls 2023-11-01 18:02:54 +08:00
Lim Chee Aun
6ec7073151 Fix bypass shortcuts limit 2023-11-01 10:00:05 +08:00
Lim Chee Aun
afb80d3dc6 Hide "new notifications" button early 2023-10-31 15:41:56 +08:00
Lim Chee Aun
1f78bb9c09 Fix check updates don't use media param 2023-10-31 15:41:39 +08:00
Lim Chee Aun
c67192bb81 Show toast when picking month for account statuses 2023-10-31 08:47:19 +08:00
Lim Chee Aun
33b989fffc Loosen the scrollTop check 2023-10-31 00:42:24 +08:00
Lim Chee Aun
d5b257b130 Change the update check logic on Notifications page 2023-10-30 23:53:43 +08:00
Lim Chee Aun
290243df0a Make document titles better 2023-10-30 18:04:17 +08:00
Lim Chee Aun
3760b52860 This autoAnimate is SO GOOD 2023-10-30 09:24:36 +08:00
Lim Chee Aun
3092a8bba1 Show hashtag usage total counts 2023-10-30 09:22:39 +08:00
Lim Chee Aun
b40bbb32c2 Alrighty, this is media-view layout 2023-10-29 21:41:03 +08:00
Lim Chee Aun
173728536a Extract out the fancy selector string 2023-10-28 16:21:32 +08:00
Lim Chee Aun
087e282677 Show/hide the switch-view button based on viewport width 2023-10-27 23:03:07 +08:00
Lim Chee Aun
372e86415b Test fix scroll position when opening media on the side 2023-10-27 14:16:38 +08:00
Lim Chee Aun
6dd6e0e77c Refactor some components/callbacks 2023-10-27 14:15:29 +08:00
Lim Chee Aun
c022e2fd00 Make filter bar expandable 2023-10-27 00:58:42 +08:00
Lim Chee Aun
0678366566 Fix focus style not working for news' images 2023-10-27 00:01:32 +08:00
Lim Chee Aun
35dced8eaf Disable search results pagination if not authenticated 2023-10-26 17:39:10 +08:00
Lim Chee Aun
1c87dd6e41 Check for reload cases too
Prevent status page from going full width when reloading itself

This checks tab's history length, so opening status page on a new tab means
length = 1.

BUT this will fail if someone copies the link and paste to another
**existing** tab with existing pre-populated history.
2023-10-26 11:42:44 +08:00
Lim Chee Aun
81644e67bb Fix 'esc' closes both modal and status page 2023-10-26 02:19:01 +08:00
Lim Chee Aun
5d5ab906ba Further robustify trending news
- Convert back to RGB for max compat
- Better variable names
- Add fallback if there's no blurhash
- Refactor color utils
- Use alpha instead of light/dark colors
2023-10-25 19:18:47 +08:00
Lim Chee Aun
3a32cbf974 Test full width for first load of status page 2023-10-25 17:07:00 +08:00
Lim Chee Aun
b9afe4fb66 s/Favourite/Like
Poll: https://mastodon.social/@cheeaun/111272668719225402
2023-10-25 13:55:12 +08:00
Lim Chee Aun
61756fac1d Fix unneccesary re-renders in Notifications 2023-10-23 16:24:30 +08:00
Lim Chee Aun
f2c2983663 Comment out test code 2023-10-23 11:12:28 +08:00
Lim Chee Aun
2c4dd0cdb7 Add lang & dir to trending news 2023-10-23 11:12:15 +08:00
Lim Chee Aun
58d36d2403 Filter links by type 2023-10-23 08:55:22 +08:00
Lim Chee Aun
72842c663a Change from "Build" to "Version"
Also make version string copy-able
2023-10-23 08:43:27 +08:00
Lim Chee Aun
8d694ecf1b Experiment useAutoAnimate 2023-10-23 08:42:40 +08:00
Lim Chee Aun
cafadd0980 More fixes for Trending news 2023-10-23 01:36:32 +08:00
Lim Chee Aun
3a1341fb17 Always sort list of Lists 2023-10-22 23:25:25 +08:00
Lim Chee Aun
ced30a9602 Fix default tag always wrong location
Feel so dumb looking back at this code lol
2023-10-22 23:09:38 +08:00
Lim Chee Aun
4e53b1e17f Need lazy loading 2023-10-22 20:08:19 +08:00
Lim Chee Aun
1c5453cfb6 Trending news carousel 2023-10-22 19:40:46 +08:00
Lim Chee Aun
a222828306 Need InView for show more button in Notifications page 2023-10-21 17:54:10 +08:00
Lim Chee Aun
749d6880b8 Experiment making idle detection global
Hooks are nice but it makes component re-render unnecessarily

Also, idle detection doesn't need to be per-component.
2023-10-21 12:26:28 +08:00
Lim Chee Aun
5a616633c6 Make sure month params don't run if invalid 2023-10-21 12:21:51 +08:00
Lim Chee Aun
4c4e89ac9d Contain the overscroll behavior in notifications popover 2023-10-20 23:11:26 +08:00
Lim Chee Aun
4da968df2e Fix avatars not bunching properly 2023-10-20 22:10:55 +08:00
Lim Chee Aun
87e243ea58 Make scrolling work inside filter bar 2023-10-20 22:00:56 +08:00
Lim Chee Aun
66f9c3b918 Fix async/await 2023-10-20 20:54:24 +08:00
Lim Chee Aun
137ad7f4dd Cache search enabled check 2023-10-20 20:48:30 +08:00
Lim Chee Aun
3721acf3d3 Attempt to make month picker better 2023-10-20 19:24:01 +08:00
Lim Chee Aun
ab7df0f66c Experiment: month filter for account statuses 2023-10-20 18:11:13 +08:00
Lim Chee Aun
d1aedcaef2 Fix unneeded id passed here 2023-10-20 17:11:10 +08:00
Lim Chee Aun
72f204771f Minor adjustments for search page 2023-10-20 12:53:23 +08:00
Lim Chee Aun
dba921a3fd Add key 2023-10-20 12:52:56 +08:00
Lim Chee Aun
a5532488aa Bunch these avatars too 2023-10-19 17:45:37 +08:00
Lim Chee Aun
e9075906f8 Fix refresh key not unique enough
JS converted these to numbers, much fail
2023-10-19 17:25:17 +08:00
Lim Chee Aun
106cd16e41 Add loading state to filter bar 2023-10-19 10:13:53 +08:00
Lim Chee Aun
cd57e97e2b Fix Preact wrongly rearrange the elements 2023-10-19 01:14:23 +08:00
Lim Chee Aun
c1588322aa Bunch the avatars 2023-10-19 01:13:37 +08:00
Lim Chee Aun
e153f9f541 Prevent undefined class name lol 2023-10-16 20:21:09 +08:00
Lim Chee Aun
809b7cc2d2 Micro perf optimizations maybe 2023-10-16 17:01:16 +08:00
Lim Chee Aun
a095a30500 Breaking news: upgrade to masto v6
Expecting bugs!

Also include some fixes for states init.
2023-10-12 12:48:09 +08:00
Lim Chee Aun
68759e64d1 Silence errors for follow requests & announcements 2023-10-09 21:53:58 +08:00
Lim Chee Aun
78a6f13380 Fix leaked follow requests from Notifications popover to page 2023-10-09 19:46:07 +08:00
Lim Chee Aun
5faf911b17 Replace scrollIntoViewIfNeeded with scrollIntoView
Because non-standard and not supported on Firefox
2023-10-04 21:24:48 +08:00
Lim Chee Aun
4436c337dd Cleanup 2023-10-03 15:07:47 +08:00
Lim Chee Aun
715357c8c9 Show synced icon & link to instance for more settings
Context: some users were confused why some settings are not on Phanpy when it can be set on their own instance's web UI
2023-10-02 21:13:56 +08:00
Lim Chee Aun
52c63690a3 More noopener noreferrer 2023-10-02 15:58:59 +08:00
Lim Chee Aun
baa2605d27 Fix navigate not working 2023-10-01 14:38:28 +08:00
Lim Chee Aun
4dd706ff96 Pass lang into media description
- Assume status lang applies to media description
- Allow RTL for media description
2023-09-30 23:23:34 +08:00
Lim Chee Aun
eeb89212d2 noopener noreferrer all the links 2023-09-26 10:55:36 +08:00
Lim Chee Aun
4c3666df6a Remove isHovering 2023-09-23 19:51:53 +08:00
Lim Chee Aun
cd3ab50a18 Make 'Read more' buttons look more consistent everywhere
Too many cooks spoil the broth
2023-09-23 19:14:11 +08:00
Lim Chee Aun
38bd5c0b5d A bit more aesthetic touches for 'Read more' buttons 2023-09-21 21:56:04 +08:00
Lim Chee Aun
4acfb2a1cf Use useTruncated for notification items 2023-09-19 21:53:59 +08:00
Lim Chee Aun
72438bbf06 Search results pagination not allowed when not authed 2023-09-15 13:08:34 +08:00
Lim Chee Aun
020d8e3631 Allow settings for unauthenticated sessions 2023-09-15 00:28:20 +08:00
Lim Chee Aun
b57d8adf18 Add Generic Accounts modal
Also refactored whole bunch of stuff
2023-09-12 11:27:54 +08:00
Lim Chee Aun
dd2ca7bf35 Animate ancestor indicator 2023-09-12 11:22:01 +08:00
Lim Chee Aun
671c68b8f8 Experiment use markers for notifications 2023-09-10 19:22:14 +08:00
Lim Chee Aun
98e82a68fd Use useCallback for this 2023-09-10 15:31:51 +08:00
Lim Chee Aun
6b5a98ebb3 Prevent all the re-renders
Srsly this took me hours to debug
2023-09-09 17:00:51 +08:00
Lim Chee Aun
61f2132abd Fix getNotifications is not a function 2023-09-07 12:17:31 +08:00
Lim Chee Aun
e7833d5b8c Grammar 2023-09-05 13:26:30 +08:00
Lim Chee Aun
eed9b70a7d Fix search bugs 2023-09-04 17:01:06 +08:00
Lim Chee Aun
0fd719d3e7 Global search command trigger 2023-09-04 14:49:39 +08:00
Lim Chee Aun
3511ba760a Try autofocus on search field
I commented this out for some reason that I forgot
2023-09-04 00:07:11 +08:00
Lim Chee Aun
6cbbd0aa1b More reliable badge clearing
Should be when page visible, not on render

Possibly super effective, but badges can be annoying if not cleared easily.
2023-09-03 13:41:37 +08:00
Lim Chee Aun
3ac05d8cdd Refactor code to files 2023-09-02 18:19:09 +08:00
Lim Chee Aun
062f42a05d Fix missing useLayoutEffect 2023-09-02 02:25:44 +08:00
Lim Chee Aun
852bb27e81 Clear app badge when view Notifications page 2023-09-02 01:35:24 +08:00
Lim Chee Aun
0e745663f0 Yes, push notifications (beta).
Heck this feature is tough.
2023-09-01 15:40:00 +08:00
Lim Chee Aun
0b04e01d60 Try out another style for 2nd-pass grouped notifications 2023-08-30 20:16:34 +08:00
Lim Chee Aun
91419b3243 Enable relative path hosting 2023-08-30 17:46:22 +08:00