Lim Chee Aun
5c6c9a43f2
Fix regression: threadify stopped working
...
This is due to status key changed with extra instance string
2023-02-19 21:16:23 +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
72068d9d46
Another guard
2023-02-19 10:56:28 +08:00
Lim Chee Aun
a27bdbc69b
Another guard for corrupted shortcuts
2023-02-19 10:42:56 +08:00
Lim Chee Aun
2df67f37a3
Handle cases if the shortcuts are corrupted
2023-02-19 10:27:37 +08:00
Lim Chee Aun
34a015c36a
Show pointer cursor
2023-02-19 10:27:10 +08:00
Lim Chee Aun
33afb081dd
Need a min height in case height is too small
2023-02-19 01:39:27 +08:00
Lim Chee Aun
a77b96b171
Pushing the limits of CSS coding
2023-02-19 01:23:31 +08:00
Lim Chee Aun
7e65d8be5d
Make smaller statuses stand out in the carousel
2023-02-19 01:10:06 +08:00
Lim Chee Aun
65c1af2eac
Make shortcuts button look even cooler
2023-02-19 00:08:37 +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
ccdb8d144c
Need useTitle
2023-02-18 22:13:32 +08:00
Lim Chee Aun
ce8e411cab
Prevent hashtags from being clickable inside Composer
2023-02-18 21:44:19 +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
45a1fc057e
Limit number of shortcuts
...
9 because there's only 9 keyboard shortcuts. There's '0' but… nah.
2023-02-18 19:39:17 +08:00
Lim Chee Aun
3f73f7d174
Fix weird bug when closing media modal + status page
...
Somehow useMatch re-renders the media modal and mess up some event handlers on it
Possibly due to react-router-match vs preact issues.
So, remove it totally, replace with CSS :has() solution
2023-02-18 17:38:42 +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
5707da703f
Revert "Skeleton avatar should follow size"
...
This reverts commit f579a8bfb9
.
2023-02-18 01:45:44 +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
523cb09912
Still need some gradient
2023-02-17 22:40:40 +08:00
Lim Chee Aun
e35f4e2644
Vite complain this is too complex
2023-02-17 20:48:52 +08:00
Lim Chee Aun
3915b3818c
One more 40em
2023-02-17 20:48:38 +08:00
Lim Chee Aun
5b0f275f57
Temporary placeholder for custom-media
2023-02-17 20:48:15 +08:00
Lim Chee Aun
5ef67fab91
Variable-ise the 40em
2023-02-17 20:47:09 +08:00
Lim Chee Aun
9fbfc993fd
Smoother animation for menu
2023-02-17 19:39:33 +08:00
Lim Chee Aun
5af2a060a6
Update styles
2023-02-17 19:31:28 +08:00
Lim Chee Aun
f579a8bfb9
Skeleton avatar should follow size
2023-02-17 19:08:19 +08:00
Lim Chee Aun
9e1f62e47b
Use instance check instead of authenticated check
2023-02-17 17:40:39 +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
dc1a045de9
Fix play icon too faded out
2023-02-17 13:07:43 +08:00
Lim Chee Aun
4337c89ddf
Add one more hide modal
2023-02-17 11:29:53 +08:00
Lim Chee Aun
e53352592b
Fix scroll position got reseted by CSS
2023-02-17 11:29:39 +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
d8e6d349a0
Fix undefined 'votes'
2023-02-17 11:00:34 +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
a1edc142ae
Fix shortcuts button not hiding on large screen
2023-02-17 10:53:04 +08:00
Lim Chee Aun
ca943cbc5a
A bit late to fix this but better be consistent
2023-02-17 10:17:41 +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
82c8247ac8
Fix infinite loop bug!!
2023-02-17 01:54:19 +08:00
Lim Chee Aun
7aba448f42
Handle multi-paragraph code blocks
...
This ain't going to be fun if the HTML gets messier in the future
2023-02-16 21:51:22 +08:00
Lim Chee Aun
9011b9da35
Update instances list
2023-02-16 19:12:30 +08:00
Lim Chee Aun
4dae1d1576
Shorter copies
2023-02-16 19:10:26 +08:00
Lim Chee Aun
74a02ee388
lol forgot to link the datalist
2023-02-16 18:37:57 +08:00
Lim Chee Aun
73e8bed5f0
Basic validation
2023-02-16 18:22:19 +08:00
Lim Chee Aun
bec531df05
Testing another thing
2023-02-16 17:52:41 +08:00
Lim Chee Aun
0bef245c83
New feature: Shortcuts
2023-02-16 17:52:16 +08:00
Lim Chee Aun
75b6cddb04
Fix conditions not scoped properly
2023-02-15 21:40:58 +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
f198571367
Compare exact string before checking variants
2023-02-15 10:46:29 +08:00
Lim Chee Aun
4c17522d42
Fix escape key not working on Safari
2023-02-14 19:38:17 +08:00
Lim Chee Aun
5f052bb260
Missed this
2023-02-13 10:43:12 +08:00
Lim Chee Aun
9a9e16b35a
Remove unused import
2023-02-13 10:42:58 +08:00
Lim Chee Aun
c01d3098b8
Add pencil
2023-02-13 09:22:03 +08:00
Lim Chee Aun
255ca8eaa6
Support edit media description for Mastodon v4.1
2023-02-13 01:21:18 +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
25ff2b9176
Smarter distancing for useScroll
2023-02-12 17:46:20 +08:00
Lim Chee Aun
0b6dd07eee
Rewrote notifications, again
2023-02-12 17:38:50 +08:00
Lim Chee Aun
30b747527e
Okayyy this is dangerous
2023-02-12 14:24:27 +08:00
Lim Chee Aun
65efe5a9b9
More shadow fixes
2023-02-12 10:26:09 +08:00
Lim Chee Aun
e4c49ec7d7
Shadows should always be dark
2023-02-12 08:10:48 +08:00
Lim Chee Aun
e4d9e7f7db
Disable position-object animation when media modal appears
...
Got to say :has() is so darn useful
2023-02-11 23:46:33 +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
61edcb2115
Replace ALT badge with info icon
...
ALT is just… too technical.
2023-02-11 22:36:19 +08:00
Lim Chee Aun
2f2e343115
Shorter skeleton
2023-02-11 21:09:36 +08:00
Lim Chee Aun
4a01d3d404
Try save some space here
2023-02-11 20:56:33 +08:00
Lim Chee Aun
454562d763
Another header width fix
2023-02-11 20:52:54 +08:00
Lim Chee Aun
a1e13322d5
Try this out
2023-02-11 20:39:45 +08:00
Lim Chee Aun
b29e7ad1cb
Clear q URL when clear search field
2023-02-11 20:39:37 +08:00
Lim Chee Aun
ef2f55457f
Take care of unauth-ed cases
2023-02-11 19:39:30 +08:00
Lim Chee Aun
55d8908cf5
For page not loading when logged out
...
Because path is undefined
2023-02-11 19:36:28 +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
f756f23d6e
Better menu overflow + bounding box
...
8 is a magic number
2023-02-11 17:04:48 +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
4b28b6f366
Potential fix for Vite messing up the CSS import order
2023-02-11 09:03:18 +08:00
Lim Chee Aun
d02aea4616
Try portal to document.body
2023-02-11 08:37:54 +08:00
Lim Chee Aun
acf69f9571
Adjust the order of the CSS
2023-02-11 08:37:42 +08:00
Lim Chee Aun
e24beaffac
Make menu disappear when scroll
2023-02-11 06:25:38 +08:00
Lim Chee Aun
5911eb8033
Add more spellChecks
2023-02-11 06:21:23 +08:00
Lim Chee Aun
0040deaa0a
Better menu styles
2023-02-11 00:15:20 +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
1638bb4e37
Fix clamp bug
2023-02-10 14:20:41 +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
8871334af8
Allow 2-line clamp for alt tag on small screens too
2023-02-10 13:35:43 +08:00
Lim Chee Aun
45be17b93a
Another attempt to fix FOWP
2023-02-10 12:29:07 +08:00
Lim Chee Aun
8b77615c80
Need to save status after edit
...
Before this, the status (and context) will auto-refresh after posting, but now it's only refreshing context
2023-02-10 11:35:47 +08:00
Lim Chee Aun
14c994c7ba
Fix this deja vu bug, Flash of Welcome Page (FOWP)
2023-02-10 11:35:06 +08:00
Lim Chee Aun
a4df58d297
Immediately I found a bug right after I toot about it
2023-02-10 01:01:06 +08:00
Lim Chee Aun
5ca9a7a91f
Use different fade timing for updates button
2023-02-10 00:36:56 +08:00
Lim Chee Aun
1a5396ae70
Wow they really update the languages list
2023-02-10 00:36:32 +08:00
Lim Chee Aun
91aeed5fe6
Respect your preferences
2023-02-09 23:59:57 +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
129417bad3
Fix wrong links
2023-02-09 17:41:42 +08:00
Lim Chee Aun
7424f7604a
Fix modal status page matching failing due to new instance url
2023-02-09 16:03:10 +08:00
Lim Chee Aun
d6d174b5c7
Change home icon to be less birdy
2023-02-08 22:56:30 +08:00
Lim Chee Aun
6c5807810d
Sometimes I play with hidden UIs
2023-02-08 21:19:07 +08:00
Lim Chee Aun
abed50a64e
Less fancy transition for compose button icon
2023-02-08 19:34:58 +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
c6c18aae09
Fix spoiler bug again
2023-02-07 12:56:26 +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
8ca4d7333e
Need skeleton
2023-02-07 00:25:38 +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
63b269e712
Remove console.log
2023-02-06 20:02:02 +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
43c4fc6534
resolve only works when authenticated
2023-02-06 19:54:48 +08:00
Lim Chee Aun
ad13f90374
Fix info stays when there's error
2023-02-06 19:54:35 +08:00
Lim Chee Aun
719a407414
Use /:instance?/xxx instead
2023-02-06 19:54:18 +08:00
Lim Chee Aun
692851b24c
Fix useMatch not working with optional path segment
2023-02-06 19:29:00 +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
de411b4dff
Fix some posts can be spoiler but sensitive: false
2023-02-06 00:19:22 +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
b47c043699
Fix select field color bug on Windows
...
It shows as white text on white background on Windows 10 or 11
https://mastodon.social/users/cheeaun/statuses/109812923100158393
2023-02-06 00:05:43 +08:00
Lim Chee Aun
942d0b0a30
Fix welcome page peakaboo
2023-02-05 20:14:23 +08:00