Commit graph

1886 commits

Author SHA1 Message Date
Lim Chee Aun dc2eb1163f Slow down polling if scrolled down 2023-11-09 00:16:16 +08:00
Lim Chee Aun 1882338078 Basic text highlighting for composer
This will probably be very buggy
2023-11-08 23:16:16 +08:00
Lim Chee Aun 51ddf9b030 Fix link color 2023-11-08 23:03:43 +08:00
Lim Chee Aun 98d1f44244 Also 3s 2023-11-07 11:19:49 +08:00
Lim Chee Aun d16cd501d4 Quick fix for pinned post not showing pin
_pinned no longer stored with post, so pinned posts now can't be reactive
2023-11-07 07:59:59 +08:00
Lim Chee Aun 6d5b2ef9a6 Test fix for uncloseable 'New notifications' bug 2023-11-07 07:58:32 +08:00
Lim Chee Aun a1b0d6e3bd Better keys 2023-11-06 23:58:44 +08:00
Lim Chee Aun a8cf7879a2 Fix promise error with fetching followed hashtags
Remove memoization for now
2023-11-06 23:31:00 +08:00
Lim Chee Aun b027967168 Reduce buffer time between page visibilities 2023-11-06 23:27:58 +08:00
Lim Chee Aun bca205182e Quick fix rendering bug when switching media filter 2023-11-06 22:48:20 +08:00
Lim Chee Aun ea660f9146 New keyboard shortcuts 2023-11-06 20:15:13 +08:00
Lim Chee Aun 8f34d98f47 Fix disappearing filter/spoiler text when hover 2023-11-06 19:47:49 +08:00
Lim Chee Aun 180466160b Slight relayout for Welcome page 2023-11-06 17:17:56 +08:00
Lim Chee Aun 90df455d6e Prevent GC posts from notifications 2023-11-06 16:47:35 +08:00
Lim Chee Aun 6e3494488a Reduce interval to 15s 2023-11-06 09:44:46 +08:00
Lim Chee Aun f73a942b61 Auto-update self account info
And fix isSelf not working in some cases
2023-11-06 00:49:45 +08:00
Lim Chee Aun 8d41ff6884 Fix alpha avatars 2023-11-05 20:09:57 +08:00
Lim Chee Aun 540b9a15a4 Fix noob mistake
And also make announcements and follow requests fetch more non-blocking
2023-11-05 17:57:49 +08:00
Lim Chee Aun 678fc100c8 Allow shifts to open composer in new window 2023-11-05 17:41:29 +08:00
Lim Chee Aun 305710fa8c Fix collapsed peek status with wrong url 2023-11-05 17:40:58 +08:00
Lim Chee Aun 83bdc82049 Add more unfurling
- Fix regex
- Handle trunks.social and Phanpy links too
2023-11-05 16:13:00 +08:00
Lim Chee Aun 7c8d310ed9 Some debugging if this actually runs 2023-11-05 14:31:20 +08:00
Lim Chee Aun 5a4f1fb686 Fix 'account moved' banner wrongly placed 2023-11-05 14:29:18 +08:00
Lim Chee Aun b461823d60 Garbage collect status quotes & unfurled links too
Make this less destructive by setting to 15min interval
Ignore whatever errors inside
2023-11-05 10:12:52 +08:00
Lim Chee Aun 986187141e Make text inside replies button bolder 2023-11-05 09:10:36 +08:00
Lim Chee Aun d0890e3633 Bunch these avatars too 2023-11-05 09:10:12 +08:00
Lim Chee Aun 42df8e62c5 Experiment using touch-action 2023-11-05 09:09:55 +08:00
Lim Chee Aun 87d0b86ecb Only run when idle 2023-11-05 08:26:51 +08:00
Lim Chee Aun e5d5025299 Quick fix disappearing posts bug 2023-11-05 08:21:43 +08:00
Lim Chee Aun 2c6d18bcfc Reduce to 50 2023-11-04 19:19:42 +08:00
Lim Chee Aun 9f31cc8e07 Some sort of "garbage collection" 2023-11-04 19:18:12 +08:00
Lim Chee Aun 660cbebbc4 Move iOS check outside 2023-11-04 19:05:14 +08:00
Lim Chee Aun f8674963b3 Prevent the extra call if posts = 0 2023-11-04 18:02:03 +08:00
Lim Chee Aun fbfb5e5441 Add menu to quick switch to current logged-in instance 2023-11-04 17:51:36 +08:00
Lim Chee Aun 5038e1988d Show 'View post' if 1 media in modal 2023-11-04 15:36:51 +08:00
Lim Chee Aun 5f50df1721 Replace provider/author fallback with published date 2023-11-04 15:36:13 +08:00
Lim Chee Aun 7ad6151637 Port domain format from Trending 2023-11-04 15:35:28 +08:00
Lim Chee Aun 8c8ff72e53 s/See/View 2023-11-04 15:23:56 +08:00
Lim Chee Aun e42d660756 Remove luminosity, makes the alt text hard to read 2023-11-04 15:23:43 +08:00
Lim Chee Aun 674e1fd1ff Fix textarea styles leaked to other textareas 2023-11-04 12:02:41 +08:00
Lim Chee Aun 44ffd69941 Make textarea wider for small viewport 2023-11-04 11:46:32 +08:00
Lim Chee Aun 21007e0a4d Make Try Again button more noticeable 2023-11-04 09:56:06 +08:00
Lim Chee Aun a53be08b3a Reduce hero height 2023-11-04 09:55:52 +08:00
Lim Chee Aun 8e341ff7ed Maybe this logic work better 2023-11-04 01:12:28 +08:00
Lim Chee Aun e0cf2e22fd Make fetches on-demand
Also, cache them
2023-11-04 01:11:29 +08:00
Lim Chee Aun f726f47fcb Slight adjustments 2023-11-04 01:09:25 +08:00
Lim Chee Aun dc1452ab30 Experiment quick open Shortcuts Settings 2023-11-03 22:08:44 +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 e1434e15d9 Fix wrong attr() being used lolol 2023-11-03 11:26:20 +08:00
Lim Chee Aun bd798865d8 Fix .media class can clash with carousel's .media 2023-11-03 00:41:28 +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 05ab42684b Another scroll-driven initiative 2023-11-02 17:39:42 +08:00
Lim Chee Aun 131b91e2c1 Clamp 3 lines 2023-11-02 17:38:55 +08:00
Lim Chee Aun 490d776a70 Remove unused variable 2023-11-02 17:38:22 +08:00
Lim Chee Aun 6b3602c6ae Remove debugging console logs 2023-11-02 13:44:32 +08:00
Lim Chee Aun ab5a115084 Replace semver with compare-versions
Also, semver wasn't even in package.json, it worked because a lot of deps use it
2023-11-02 13:38:39 +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 0c2d79c159 Make edited timestamp tab-able 2023-11-02 10:50:21 +08:00
Lim Chee Aun 93e19f549d No need scroll back 2023-11-02 10:50:01 +08:00
Lim Chee Aun 38ee094405 Make edited modal lighter 2023-11-02 10:49:52 +08:00
Lim Chee Aun a9c3c6fdb4 Scroll-driven avatar shrinking 2023-11-02 09:36:30 +08:00
Lim Chee Aun bf7acb6eab Add more conditions for binding longpress
Should be same condition as contextmenu
2023-11-02 08:00:00 +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 706f3f0cc8 Subtle peekaboo header for the scroll-driven 2023-11-01 23:41:30 +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 ff7db6212d Bye to shine effect
It was fun.
2023-11-01 22:56:10 +08:00
Lim Chee Aun 0c3449aba4 Rearrange/code this part again
- Streaming wasn't UNSUBscribed due to the forever-stuck loop
- Make streaming start later
2023-11-01 22:26:21 +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 616b9fcf02 Skip if meta/ctrl/shift/alt/middle-click 2023-11-01 21:56:06 +08:00
Lim Chee Aun 7119a78711 Fallback to polling if streaming fails 2023-11-01 21:31:43 +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 caeeffaa72 Extra check if container if not clickable 2023-11-01 18:12:22 +08:00
Lim Chee Aun ecb1be5776 Reduce extraneous fetch calls 2023-11-01 18:02:54 +08:00
Lim Chee Aun 0cc956b8c0 Fix initial authenticated: false bug 2023-11-01 17:02:52 +08:00
Lim Chee Aun e6ef2f9064 Better range for header banner 2023-11-01 14:10:56 +08:00
Lim Chee Aun 478271348e Make selected view mode more glowy 2023-11-01 10:00:28 +08:00
Lim Chee Aun 6ec7073151 Fix bypass shortcuts limit 2023-11-01 10:00:05 +08:00
Lim Chee Aun 22abc2fb31 Need @supports check before doing scroll-driven animation 2023-10-31 22:25:08 +08:00
Lim Chee Aun bc0197a5f1 Add a little Fragment here 2023-10-31 22:22:57 +08:00
Lim Chee Aun f3dcd9f4ee Position nav bar to top if there's hover 2023-10-31 20:55:34 +08:00
Lim Chee Aun f5808b6f3b Add keyboard shortcut to toggle cloak mode 2023-10-31 20:50:27 +08:00
Lim Chee Aun 5cb0621f34 Remove unused useSnapshot 2023-10-31 20:21:49 +08:00
Lim Chee Aun 3f6402349c Rearrange code 2023-10-31 20:21:37 +08:00
Lim Chee Aun b17977a5c7 First production-stage scroll-driven animation 2023-10-31 15:43:56 +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 39d97a51c5 Make idle state switch faster 2023-10-31 00:38:59 +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 3c790ebff4 Better segmentation of languages with <hr> 2023-10-30 23:50:15 +08:00
Lim Chee Aun 99f81c49c4 Revert "Debounce checks, less noisy"
This reverts commit 9c4252315a.
2023-10-30 20:45:30 +08:00
Lim Chee Aun 5f64553d17 Single column media posts for very small viewport 2023-10-30 19:54:20 +08:00
Lim Chee Aun 290243df0a Make document titles better 2023-10-30 18:04:17 +08:00
Lim Chee Aun 5fae5d8cf5 Adjustments to media post 2023-10-30 16:45:19 +08:00