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
f511b0a5ab
More code porting
2023-02-08 19:11:33 +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
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
a130743d4c
Breaking: refactor all masto API calls
...
Everything need to be instance-aware!
2023-02-06 00:17:19 +08:00
Lim Chee Aun
ed8fce3cbf
Don't need --invisible hack
...
Protip: use `:not(details:not([open]) > summary ~ *, details:not([open]) > summary ~ * *)`
2023-02-01 01:21:58 +08:00
Lim Chee Aun
6647b6cc28
Fix j/k shortcuts to work with collapsed comments
...
Use x key to expand/collapse comments
2023-02-01 00:10:38 +08:00
Lim Chee Aun
18b48c8d19
Smarter collapsing, show total comments count, show 3 avatars
2023-01-31 16:13:16 +08:00
Lim Chee Aun
969fddc581
Time for use-debounce
...
Try a leading debounce here
2023-01-30 20:51:06 +08:00
Lim Chee Aun
88ffb3a44c
Reduce distance from start to show the scroll to top button
2023-01-30 19:59:41 +08:00
Lim Chee Aun
1fed35f674
Flush instead of cancel
2023-01-30 19:36:47 +08:00
Lim Chee Aun
292186e918
New UI experiment: media modal + status detail page
...
- Extracted out the media modal and media component from Status
- Use :has CSS selector to do most of the layout work
- Expecting edge case UI bugs
2023-01-29 15:23:53 +08:00
Lim Chee Aun
ae37d58826
Fix document.title not working properly
2023-01-29 15:22:16 +08:00
Lim Chee Aun
66216e911e
At this point, might as well support level 4
...
Also still need to show the comment icon IF THERE'S LEVEL 5++
2023-01-29 01:29:26 +08:00
Lim Chee Aun
a088b48eb7
Status thread page improvements
...
- Show level 3 comments
- Change header-tap to scroll top to a button instead (prevent accidental scroll top)
- Show avatars in <summary>
- Clean up CSS a bit
2023-01-29 01:02:25 +08:00
Lim Chee Aun
ae90b41aae
New feature: "Show all sensitive content" menu
2023-01-28 22:34:36 +08:00
Lim Chee Aun
816653e2e6
Add j/k keyboard navigation to status page
...
At the same time, fix shift+k not working in Home page
2023-01-27 20:54:18 +08:00
Lim Chee Aun
912506afcc
Fix some scrolling edge cases
...
This is tough
2023-01-27 11:48:13 +08:00
Lim Chee Aun
6a7e7085bd
Bump up retries
...
Slow servers are slow.
2023-01-26 21:02:39 +08:00
Lim Chee Aun
c24a3ef251
Add fetch retries in status page
2023-01-25 16:41:28 +08:00
Lim Chee Aun
348e7a52c9
Fix stupid mistake
2023-01-23 17:58:33 +08:00
Lim Chee Aun
e7dffecfe0
Need to reset cachedStatusesMap too
2023-01-22 19:21:24 +08:00
Lim Chee Aun
81170c6d05
When clicked, don't use cached scroll position
2023-01-21 19:52:51 +08:00
Lim Chee Aun
fa5a468005
Don't really get how this becomes multi-line
2023-01-21 18:59:13 +08:00
Lim Chee Aun
9bff95bcec
Replace preact-router with react-router
...
Need more routing powers, hopefully things don't break 🤞
2023-01-21 00:23:59 +08:00
Lim Chee Aun
8834c03d7a
Need to cancel the debounce
2023-01-17 08:56:13 +08:00
Lim Chee Aun
d7d9d9f0a2
Don't store scroll position while in loading state
2023-01-16 20:32:51 +08:00
Lim Chee Aun
62a3ba7c5f
Bug fixes for boosts carousel + scrolling
2023-01-16 20:32:30 +08:00
Lim Chee Aun
e2139399ee
New experiment: Boosts Carousel ™️
2023-01-14 19:42:04 +08:00
Lim Chee Aun
e2b6f2df6a
Auto-threadify when open a status page with context
2023-01-11 17:45:37 +08:00
Lim Chee Aun
a421406a11
DRY get current Account
2023-01-11 13:28:42 +08:00
Lim Chee Aun
9743da1e9b
Fix cached statuses gone
2023-01-10 20:05:47 +08:00
Lim Chee Aun
53f70e68f7
Need better distancing
2023-01-10 16:37:34 +08:00
Lim Chee Aun
2bed0c7f03
Add Experimental scroll to top button for status page
2023-01-10 10:44:16 +08:00
Lim Chee Aun
1727475336
Reduce more code for scrolling logic
...
- Move from sessionStorage to in-memory for statuses cache
- Remove userInitiated, it's getting hard to differentiate between user-initiated and non-user-initiated. Probably better done from the route side instead of only stuck to this component's state
2023-01-10 01:31:38 +08:00
Lim Chee Aun
7f5214c8c6
Need a way to refresh status page on-demand
2023-01-09 21:51:30 +08:00
Lim Chee Aun
522dd08925
Remove unused imports
2023-01-09 17:05:42 +08:00
Lim Chee Aun
cab06ae936
Further simplify the scrolling logic in Status page
...
Previous code is too darn complicated and doesn't work in async cases
e.g. user scrolled while the status is loading
2023-01-09 16:56:16 +08:00
Lim Chee Aun
41df88e625
Perf fixes
...
Turns out, adding an object to states.statuses proxyMap object, re-render ALL statuses
2023-01-07 20:26:23 +08:00
Lim Chee Aun
ac557e1271
Delete cache in SW before reloading status page
...
Seems kinda hacky… probably might cause new side effects
2023-01-06 21:29:16 +08:00
Lim Chee Aun
04ccf8aca9
Replace @github/relative-time-element with dayjs
2023-01-05 10:50:27 +08:00
Lim Chee Aun
d15b1fe03e
Fix route() actually not working
2023-01-03 00:48:36 +08:00
Lim Chee Aun
2031e88d87
Better handling of failures
...
Some mastodon instances are getting hit hard
2023-01-01 15:28:07 +08:00
Lim Chee Aun
842db90f9c
Handle context API call fail error
2023-01-01 12:02:11 +08:00
Lim Chee Aun
ac91dc7983
Make this manual opt-in
2023-01-01 08:51:56 +08:00
Lim Chee Aun
895602e446
Gosh this need to be low threshold
...
It's actually % of the full height of the element. So if the status is super long (100K chars), it'll never be 0.25
2022-12-31 23:58:48 +08:00
Lim Chee Aun
b12b0c588d
Experimental j,k,o,esc,backspace shortcuts
2022-12-31 09:52:31 +08:00