Commit graph

319 commits

Author SHA1 Message Date
Lim Chee Aun
6fd9c106c6 Add account info into Account statuses page 2023-03-11 14:05:56 +08:00
Lim Chee Aun
cf437a83da Make statuses in notifications reactive 2023-03-10 23:01:26 +08:00
Lim Chee Aun
731f91122b Fix toggle values for settings for translation 2023-03-09 13:20:01 +08:00
Lim Chee Aun
bbdfb5dd7d Prettify About section 2023-03-09 11:23:07 +08:00
Lim Chee Aun
66e068ee7b Fix bug with reblogs/favourites counting 2023-03-08 23:32:54 +08:00
Lim Chee Aun
87a5eb5492 Add configurable text size 2023-03-08 17:17:23 +08:00
Lim Chee Aun
73b8294811 Split Accounts away from Settings
Very MVP, even #settings-container is the same for now
2023-03-08 00:32:33 +08:00
Lim Chee Aun
355b3be6e9 Alrighty, let's test this post translation out! 2023-03-07 22:38:06 +08:00
Lim Chee Aun
7b8c7f3fb6 Grouped favourite+boost notifications! 2023-03-03 11:38:10 +08:00
Lim Chee Aun
a9412609cf Enable boosts carousel for public timelines too 2023-03-02 22:10:32 +08:00
Lim Chee Aun
37f7c2a581 Make the hashtag typing experience slightly better 2023-03-01 23:39:31 +08:00
Lim Chee Aun
9f84297b8f Ooops typo 2023-03-01 22:18:45 +08:00
Lim Chee Aun
50fd06057f Refactor niceDateTime out 2023-03-01 20:07:22 +08:00
Lim Chee Aun
b1d6f2001e Fix focus when switching to new pages 2023-03-01 15:47:19 +08:00
Lim Chee Aun
3c7fc30444 Add simple loading state for switching instances 2023-02-28 22:44:10 +08:00
Lim Chee Aun
a86daaac0b Fix useScroll bug 2023-02-28 21:56:41 +08:00
Lim Chee Aun
ba2aa18843 Fix/Beautify the menus in Settings 2023-02-28 17:12:17 +08:00
Lim Chee Aun
0bc009140e It's time to bring back the tab bar 2023-02-27 23:59:41 +08:00
Lim Chee Aun
8aaba24d1f Add 'more' menu
- Refactor Toast
- Fix locale for datetime strings in status
- Nicer shadow for menus
2023-02-27 00:55:04 +08:00
Lim Chee Aun
7b66b832d5 Add more "instance" + saveStatus for new notifications 2023-02-25 14:20:26 +08:00
Lim Chee Aun
b4a8e60144 Fix wrong authenticated 2023-02-25 12:40:59 +08:00
Lim Chee Aun
1c8bba456d Add menu for Public timeline
Add menu item to switch between Local and Federated
2023-02-25 11:25:50 +08:00
Lim Chee Aun
aca3cb677b Sometimes need exact distance instead ratio 2023-02-25 10:50:02 +08:00
Lim Chee Aun
1f2dbb8e06 Experimental multi-hashtag timeline 2023-02-25 10:04:30 +08:00
Lim Chee Aun
9e867c7af5 Fix title not working when not logged in
Welcome page's useTitle overridden other page's useTitle
2023-02-25 10:03:34 +08:00
Lim Chee Aun
732244b4b3 Shiny pill style 2023-02-23 16:43:17 +08:00
Lim Chee Aun
2120a1e28e Still got to make sure instance is lowercase
Also, spellcheck={false} > spellcheck="false"
2023-02-22 09:46:50 +08:00
Lim Chee Aun
cd9b01095c Fix post status banner showing wrong thing for non-logged-in users 2023-02-22 00:42:43 +08:00
Lim Chee Aun
8e4ecd242b Revert flush to cancel, speed up scroll position caching
Somehow the flush cache the scroll position for a different status ID
2023-02-20 20:59:46 +08:00
Lim Chee Aun
58208a417c Check if there are shortcuts too before displaying Columns 2023-02-20 00:22:10 +08:00
Lim Chee Aun
be35f3a415 Remove console.log 2023-02-19 21:15:40 +08:00
Lim Chee Aun
d5bceb1d81 Handle logged-out cases 2023-02-19 14:49:53 +08:00
Lim Chee Aun
7f22ec6a9b Go back to root after log out 2023-02-19 14:49:05 +08:00
Lim Chee Aun
f0eb684412 Got to instance them all 2023-02-19 00:05:46 +08:00
Lim Chee Aun
d4a6aa2d3b Only show alert if user typed something 2023-02-18 23:29:17 +08:00
Lim Chee Aun
ab2328f364 Handle use-case when Following is not in Home, in multi-column mode 2023-02-18 21:37:34 +08:00
Lim Chee Aun
02eb2ff470 Extract columns out & don't use dynamic imports
Vite have difficulties importing them dynamically. Sad face.

Also this makes Home look cleaner.
2023-02-18 21:14:24 +08:00
Lim Chee Aun
522d55ebb8 New experiment: multi-column mode 2023-02-18 20:48:24 +08:00
Lim Chee Aun
161aff64ac This footer is kinda abrupt, so try "delay" it a little 2023-02-18 10:51:39 +08:00
Lim Chee Aun
29d4cddbf4 Add experimental instance switcher for public timelines 2023-02-18 01:40:37 +08:00
Lim Chee Aun
046fde0f70 Restyle the footer 2023-02-18 01:28:10 +08:00
Lim Chee Aun
07d1734720 Sometimes autofocus ain't working 2023-02-18 01:27:59 +08:00
Lim Chee Aun
b06cd36b3f Initial work to allow cross-instance linking
- Load current-instance relationship on remote-instance account sheet
- Add button to switch to current-instance status page from remote-instance status page
2023-02-17 17:37:31 +08:00
Lim Chee Aun
e57b362ee0 Fix undefined turned into a "undefined" string due to string concat 2023-02-17 11:28:25 +08:00
Lim Chee Aun
0430f4ae89 Reuse BoostCarousel for pinned posts
Now we can show *anything* into a carousel
2023-02-17 10:55:16 +08:00
Lim Chee Aun
62ce0250c6 Don't need this 2023-02-17 10:14:44 +08:00
Lim Chee Aun
c37df11a25 Show pinned posts 2023-02-17 10:12:59 +08:00
Lim Chee Aun
4dae1d1576 Shorter copies 2023-02-16 19:10:26 +08:00
Lim Chee Aun
0bef245c83 New feature: Shortcuts 2023-02-16 17:52:16 +08:00
Lim Chee Aun
11d74b3258 Disable grouping for follow requests 2023-02-15 14:49:15 +08:00
Lim Chee Aun
f9794c1cd5 Fix more bugs from learnings 2023-02-15 11:20:48 +08:00
Lim Chee Aun
bc7ac30e74 Switch to logged-in instance URL 2023-02-15 10:51:09 +08:00
Lim Chee Aun
8da6532cd3 Propagate learnings to Notifications page 2023-02-15 10:50:20 +08:00
Lim Chee Aun
d324d3a672 Move notifications link from Following to Home 2023-02-15 10:49:36 +08:00
Lim Chee Aun
6f242aad27 Followed hashtags are paginated
Gotta fetch 'em all!
I don't know the limit, but let's fetch ALL for now instead of lazy loaded.
2023-02-12 22:58:36 +08:00
Lim Chee Aun
a37a1ca21b Instance-specific search?
I don't know if this is even useful??
2023-02-12 19:36:55 +08:00
Lim Chee Aun
08be313757 Additional styling for search page again
This is such a weird page
2023-02-12 19:29:27 +08:00
Lim Chee Aun
ac30963ddf New AccountBlock component 2023-02-12 19:29:03 +08:00
Lim Chee Aun
0b6dd07eee Rewrote notifications, again 2023-02-12 17:38:50 +08:00
Lim Chee Aun
6c43ced27c Desperate attempt to make the text and buttons flows nicely in the header
This code will probably haunt me in the future
2023-02-11 23:35:03 +08:00
Lim Chee Aun
4a01d3d404 Try save some space here 2023-02-11 20:56:33 +08:00
Lim Chee Aun
b29e7ad1cb Clear q URL when clear search field 2023-02-11 20:39:37 +08:00
Lim Chee Aun
d9564bff72 Still need these fallbacks for now 2023-02-11 18:55:21 +08:00
Lim Chee Aun
b8a938b6d8 Don't need Home button in public timeline 2023-02-11 18:21:39 +08:00
Lim Chee Aun
26f8b618a5 At this point, better write my own matchPath right? 2023-02-11 18:19:23 +08:00
Lim Chee Aun
9401fc38e1 Need location.search too because Search page is using it 2023-02-11 17:58:49 +08:00
Lim Chee Aun
27c7a2dee9 Shorter placeholder for Search field 2023-02-11 17:58:23 +08:00
Lim Chee Aun
c1eade0fd8 Stupid mobile safari doesn't apply radius to outlines 2023-02-11 17:58:12 +08:00
Lim Chee Aun
afa8a0c057 Maybe better copy for search page 2023-02-11 17:57:44 +08:00
Lim Chee Aun
863ac2663c Fix titles 2023-02-11 17:57:26 +08:00
Lim Chee Aun
62eb6d6b30 Reuse style for search page, time to surface it 2023-02-11 17:01:43 +08:00
Lim Chee Aun
068a49abce Add Followed Hashtags 2023-02-11 16:48:47 +08:00
Lim Chee Aun
ffc8d88f82 Add update checking to these pages 2023-02-11 16:28:03 +08:00
Lim Chee Aun
ee5ab3f22c Add loader to search page 2023-02-11 16:27:52 +08:00
Lim Chee Aun
0a7189d35a Fix wrong paths again 2023-02-11 16:27:40 +08:00
Lim Chee Aun
722852f5c2 Expose more pages now
Except one
2023-02-11 00:05:18 +08:00
Lim Chee Aun
3490b0e714 Revert "Sort first"
This reverts commit 96f61e6e3f.
2023-02-10 22:23:19 +08:00
Lim Chee Aun
e0e236bd26 Experimental hidden search page
And refactored out some reusable components
2023-02-10 22:10:13 +08:00
Lim Chee Aun
541d318fdc One more logic for comment collapsing 2023-02-10 17:35:38 +08:00
Lim Chee Aun
96f61e6e3f Sort first 2023-02-10 14:20:48 +08:00
Lim Chee Aun
81ebb61096 Sneak in this little menu
And… fix title leak bug
2023-02-10 13:39:46 +08:00
Lim Chee Aun
83e6a2b599 Remove console.log 2023-02-09 23:05:40 +08:00
Lim Chee Aun
109cae9c19 More path fixes 2023-02-09 23:01:33 +08:00
Lim Chee Aun
58d4ca0ff2 Finally replace Home 2023-02-09 22:27:49 +08:00
Lim Chee Aun
f511b0a5ab More code porting 2023-02-08 19:11:33 +08:00
Lim Chee Aun
9921e487e8 Minimum viable Home → Following port 2023-02-08 00:31:46 +08:00
Lim Chee Aun
f6897ef4d8 Don't open sub comments is parent is a thread 2023-02-07 12:01:36 +08:00
Lim Chee Aun
9992299716 More ports to reusable Timeline component
- use status id instead of status, for "auto-update" feature
- hot keys!
2023-02-06 23:50:00 +08:00
Lim Chee Aun
db428c04d1 Scoped keyboard shortcuts 2023-02-06 23:47:58 +08:00
Lim Chee Aun
4520822f1f Use nested routes 2023-02-06 20:17:07 +08:00
Lim Chee Aun
b58a838af0 Forgot to update these 2023-02-06 20:01:56 +08:00
Lim Chee Aun
7e5c3f1bac Allow Account sheet on welcome page 2023-02-06 19:55:04 +08:00
Lim Chee Aun
719a407414 Use /:instance?/xxx instead 2023-02-06 19:54:18 +08:00
Lim Chee Aun
3aea09fd42 Experimental feature to see post in currently logged-in instance 2023-02-06 19:09:25 +08:00
Lim Chee Aun
1357c1b2bd Fix more edge cases after breaking changes 2023-02-06 16:35:03 +08:00
Lim Chee Aun
1debfc2c12 Fix missing states 2023-02-06 01:10:49 +08:00
Lim Chee Aun
a130743d4c Breaking: refactor all masto API calls
Everything need to be instance-aware!
2023-02-06 00:17:19 +08:00
Lim Chee Aun
7e9b6f681f Forgot to emojify again
This is getting ridiculous
2023-02-04 13:18:23 +08:00
Lim Chee Aun
e0bab6c70a More refactoring work 2023-02-03 21:08:08 +08:00
Lim Chee Aun
e95954a7fd Begin work on account-specific store
1. Move boostsCarousel setting to account-specific, sadly no migration from previous setting
2. Cache last notification to prevent keep getting unread notification badge
2023-02-02 17:29:57 +08:00