Commit graph

173 commits

Author SHA1 Message Date
Lim Chee Aun
4e56faa7c8 Don't fix theme-color if media modal is showing 2024-11-06 20:30:23 +08:00
Lim Chee Aun
8f6b4c6420 Try non-blocking init 2024-09-16 19:11:45 +08:00
Lim Chee Aun
9031da2768 Parallelize the inits 2024-09-16 15:17:57 +08:00
Lim Chee Aun
e4474d2d4d More accurate app-init benchmark 2024-09-16 14:16:17 +08:00
Lim Chee Aun
e5d766a076 Test escalate the loading state 2024-09-16 13:33:00 +08:00
Lim Chee Aun
1664aa3cf4 Got to solve this mystery 2024-09-13 22:01:26 +08:00
Lim Chee Aun
f22bdf568d Try this 2024-09-13 20:09:13 +08:00
Lim Chee Aun
942c8ae910 Further benchmarking 2024-09-13 17:45:28 +08:00
Lim Chee Aun
8618deec29 Test cross-file benchmark 2024-09-09 20:16:17 +08:00
Lim Chee Aun
e6c03a8ae0 Run benchmark independent of the component lifecycle 2024-09-08 23:13:11 +08:00
Lim Chee Aun
19212ced62 Forgot this part 2024-09-08 21:37:34 +08:00
Lim Chee Aun
d49c855a15 Add hidden debugging info 2024-09-08 19:06:42 +08:00
Lim Chee Aun
7c56b64e8a OAuth PKCE is in.
Reference PR: https://github.com/mastodon/mastodon/pull/31129
2024-08-27 13:50:03 +08:00
Lim Chee Aun
5d2f8ffddc Use secure same-site session cookie instead of sessionStorage 2024-08-25 16:35:07 +08:00
Lim Chee Aun
714fcb4b17 Add switch menus for Accounts
Increase awareness that users can open multiple tabs for different accounts
2024-08-24 18:22:29 +08:00
Lim Chee Aun
c2e6d732c4 Initial i18n dev
Expecting bugs!
2024-08-13 15:26:23 +08:00
Lim Chee Aun
f05e3012e3 Preliminary step for RTL 2024-08-04 13:32:46 +08:00
Lim Chee Aun
95bf9e183e Replace trivago/ with ianvs/prettier-plugin-sort-imports 2024-07-01 17:41:21 +08:00
Lim Chee Aun
2f75dfd9e4 Prefs need to be awaited 2024-06-07 18:41:04 +08:00
Lim Chee Aun
1ffc1c257a Use setTimeout instead 2024-05-29 18:46:42 +08:00
Lim Chee Aun
e782cc0dde Refactor set/get current account ID
And add fallback for standalone mode where session storage is not enough
2024-04-13 00:11:00 +08:00
Lim Chee Aun
5246af4ae9 Undo lazy component experiment
Doesn't make much difference
2024-04-03 14:33:19 +08:00
Lim Chee Aun
717633e422 Filters, finally. 2024-03-23 01:07:24 +08:00
Lim Chee Aun
4a9cae9cb6 Experiment some Suspense
This splits code, lazy load the other less-critical components
2024-03-04 16:37:34 +08:00
Lim Chee Aun
201ca6ce4a Catch-up (beta) 2024-02-26 14:02:58 +08:00
Lim Chee Aun
23dd7f5a7a Extract ICONS out 2024-01-20 10:25:47 +08:00
Lim Chee Aun
f056d7407a Attempt to fix iOS status bar color 2023-12-31 08:02:32 +08:00
Lim Chee Aun
f5b1b924a5 More queueMicrotask 2023-12-27 23:44:27 +08:00
Lim Chee Aun
6703b27bfb No idea why this requires so much code 2023-12-23 23:06:03 +08:00
Lim Chee Aun
3e4e4d179b Test better temp color for refreshing theme-color 2023-12-21 22:07:31 +08:00
Lim Chee Aun
f213a8e094 Fix subfolder hosting not working
Fix wrong `location` used
2023-12-12 08:34:43 +08:00
Lim Chee Aun
34e2fe320d Attempt to fix theme-color bug 2023-12-02 00:07:13 +08:00
Lim Chee Aun
b7a0d4fe28 Still need tilde
Because there can be spaces around it
2023-11-24 18:49:23 +08:00
Lim Chee Aun
fecebc24a8 Fix missing posts due to GC
Hidden/collapsed comments are not mounted so they got accidentally GC-ed
2023-11-23 09:25:29 +08:00
Lim Chee Aun
90df455d6e Prevent GC posts from notifications 2023-11-06 16:47:35 +08:00
Lim Chee Aun
7c8d310ed9 Some debugging if this actually runs 2023-11-05 14:31:20 +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
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
9f31cc8e07 Some sort of "garbage collection" 2023-11-04 19:18:12 +08:00
Lim Chee Aun
5cb0621f34 Remove unused useSnapshot 2023-10-31 20:21:49 +08:00
Lim Chee Aun
39d97a51c5 Make idle state switch faster 2023-10-31 00:38:59 +08:00
Lim Chee Aun
a1021e1aee Add __STATES_STATS__ for debugging 2023-10-28 11:07:35 +08:00
Lim Chee Aun
8bf3f31056 Slight rewrite, possibly breaking 2023-10-23 16:23:33 +08:00
Lim Chee Aun
18b00f7b28 Fix link useTitle showing errors 2023-10-22 19:25:22 +08:00
Lim Chee Aun
5850485207 Refactor some code 2023-10-21 17:40:03 +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
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
b8767f3618 Fix load wrong account's stuff when adding new account
Some account-based calls were called before states are initialized
2023-10-11 19:07:36 +08:00
Lim Chee Aun
b116cbfe8c Only set data attr if there are shortcuts 2023-09-15 21:12:04 +08:00