Commit graph

84 commits

Author SHA1 Message Date
Lim Chee Aun
c16532d4c2 Fix wrong mute durations
This bug exists for 9 months. It's seconds, not ms.
2023-12-19 11:50:01 +08:00
Lim Chee Aun
85bdaace58 Replace all Menu to Menu2
Need the default unmountOnClose so don't need the :has() hack
2023-11-18 21:11:07 +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
f8674963b3 Prevent the extra call if posts = 0 2023-11-04 18:02:03 +08:00
Lim Chee Aun
77312f3fb2 Use current instance for links on account info 2023-10-29 21:43:03 +08:00
Lim Chee Aun
576dcf7701 Realign some code and UI for account info/sheet
I know, the code is still messy
2023-10-24 23:19:14 +08:00
Lim Chee Aun
3a1341fb17 Always sort list of Lists 2023-10-22 23:25:25 +08:00
Lim Chee Aun
691aea3389 Update loading state of account info 2023-10-20 13:07:31 +08:00
Lim Chee Aun
73e995f494 s/for/about 2023-10-19 20:04:07 +08:00
Lim Chee Aun
965f948899 Recode some nested modal closing logic
Seems more robust
2023-10-19 16:06:55 +08:00
Lim Chee Aun
3eda1e2267 Fix familiarFollowers call not working 2023-10-19 01:13:12 +08:00
Lim Chee Aun
8ae9131543 Private notes 2023-10-17 20:20:26 +08:00
Lim Chee Aun
1b0a77dfae Pluralization for post(s)
Srsly need a i18n lib soon
2023-10-17 14:56:57 +08:00
Lim Chee Aun
c80c8b3294 Need id as dependency too
- inner functions are not reading the updated id
- probably need to rewrite this as this code looks prone to errors
2023-10-15 10:50:33 +08:00
Lim Chee Aun
f56a44ac97 Complete transition from mem to moize 2023-10-14 20:33:40 +08:00
Lim Chee Aun
7264f543bd Change p to div here too 2023-10-13 23:39:59 +08:00
Lim Chee Aun
f6864f96bd Change p to div 2023-10-13 15:46:43 +08:00
Lim Chee Aun
f67d4fd916 Fix id may not be available yet 2023-10-13 15:46:31 +08:00
Lim Chee Aun
cd403fe605 Fix error with zero posts 2023-10-13 15:31:04 +08:00
Lim Chee Aun
5481aa12be Cache account info fetches for 10mins 2023-10-13 15:27:24 +08:00
Lim Chee Aun
d1b8d737cc Enable on-demand posting stats
- Slight refactor
- Make sure stats also work when switching instances
- Make sure zero stats fallback
2023-10-12 23:11:20 +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
39f7d4e00d Fix familiar followers leaked to other profiles
Mistake for using global state when it should be per-profile
2023-10-07 17:13:55 +08:00
Lim Chee Aun
fcbf99f121 Got to dir=auto all the things 2023-10-03 10:29:28 +08:00
Lim Chee Aun
f05267b216 MVP implementation of listing muted/blocked users 2023-10-02 17:51:36 +08:00
Lim Chee Aun
634e81e9d0 Show roles in account info 2023-10-02 16:55:13 +08:00
Lim Chee Aun
eeb89212d2 noopener noreferrer all the links 2023-09-26 10:55:36 +08:00
Lim Chee Aun
7ba5ee5fe2 Don't call familiar_followers if not same instance as logged-in instance 2023-09-23 22:38:29 +08:00
Lim Chee Aun
c955427d8f Handle moved account cases 2023-09-20 17:28:08 +08:00
Lim Chee Aun
f7ffce1b46 Add tooltip to show percentage values of posting stats 2023-09-18 19:23:49 +08:00
Lim Chee Aun
941d2efeb1 Convert posting stats box into a link to account page 2023-09-16 14:48:31 +08:00
Lim Chee Aun
908efb17ff Use onClose 2023-09-16 14:47:55 +08:00
Lim Chee Aun
679fba4f66 Make relationship ui state update faster 2023-09-16 09:43:26 +08:00
Lim Chee Aun
ad831fae35 Fix disabled follow button 2023-09-16 08:52:24 +08:00
Lim Chee Aun
e102a9f925 Combine familiar followers into followers section 2023-09-15 23:59:27 +08:00
Lim Chee Aun
9571271d83 Experimental posting stats for non-following accounts
Also recode+redesign the multiple metadata boxes in account info
2023-09-15 22:15:41 +08:00
Lim Chee Aun
5ac255f808 If self, don't need to get familiar followers 2023-09-13 18:43:46 +08:00
Lim Chee Aun
2145f761b5 Fix wrong API call when switch to account's instance 2023-09-12 23:56:01 +08:00
Lim Chee Aun
aa3033b4ff Fix bugs with fetching followers/followings 2023-09-12 19:20:22 +08:00
Lim Chee Aun
3fc3641437 Prevent infinite overlapping of Account & Accounts sheets 2023-09-12 18:00:19 +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
696a46311d Try willReadFrequently 2023-09-09 14:26:08 +08:00
Lim Chee Aun
1257ce8636 Handle memorial accounts 2023-09-02 15:06:15 +08:00
Lim Chee Aun
271601dc2c Update the loading placeholder 2023-08-17 13:36:03 +08:00
Lim Chee Aun
635f4c1b0d s/setUiState/setUIState 2023-08-14 11:22:42 +08:00
Lim Chee Aun
ff41cd3563 Replace (most) alert/confirms with alternative UI
Everything might break lol
2023-07-17 21:01:00 +08:00
Lim Chee Aun
3192c319ee Experiment more minimalistic account sheet 2023-07-14 14:36:13 +08:00
Lim Chee Aun
fd1fc9c5fc Let's flip things around 2023-07-11 19:20:01 +08:00
Lim Chee Aun
4dbc26dbb6 lol name is not unique 2023-07-11 15:06:30 +08:00
Lim Chee Aun
c61e9bb61c Update account info if there's name or avatar change 2023-06-28 17:38:01 +08:00