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
68759e64d1
Silence errors for follow requests & announcements
2023-10-09 21:53:58 +08:00
Lim Chee Aun
78a6f13380
Fix leaked follow requests from Notifications popover to page
2023-10-09 19:46:07 +08:00
Lim Chee Aun
5faf911b17
Replace scrollIntoViewIfNeeded with scrollIntoView
...
Because non-standard and not supported on Firefox
2023-10-04 21:24:48 +08:00
Lim Chee Aun
4436c337dd
Cleanup
2023-10-03 15:07:47 +08:00
Lim Chee Aun
715357c8c9
Show synced icon & link to instance for more settings
...
Context: some users were confused why some settings are not on Phanpy when it can be set on their own instance's web UI
2023-10-02 21:13:56 +08:00
Lim Chee Aun
52c63690a3
More noopener noreferrer
2023-10-02 15:58:59 +08:00
Lim Chee Aun
baa2605d27
Fix navigate not working
2023-10-01 14:38:28 +08:00
Lim Chee Aun
4dd706ff96
Pass lang into media description
...
- Assume status lang applies to media description
- Allow RTL for media description
2023-09-30 23:23:34 +08:00
Lim Chee Aun
eeb89212d2
noopener noreferrer all the links
2023-09-26 10:55:36 +08:00
Lim Chee Aun
4c3666df6a
Remove isHovering
2023-09-23 19:51:53 +08:00
Lim Chee Aun
cd3ab50a18
Make 'Read more' buttons look more consistent everywhere
...
Too many cooks spoil the broth
2023-09-23 19:14:11 +08:00
Lim Chee Aun
38bd5c0b5d
A bit more aesthetic touches for 'Read more' buttons
2023-09-21 21:56:04 +08:00
Lim Chee Aun
4acfb2a1cf
Use useTruncated for notification items
2023-09-19 21:53:59 +08:00
Lim Chee Aun
72438bbf06
Search results pagination not allowed when not authed
2023-09-15 13:08:34 +08:00
Lim Chee Aun
020d8e3631
Allow settings for unauthenticated sessions
2023-09-15 00:28:20 +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
dd2ca7bf35
Animate ancestor indicator
2023-09-12 11:22:01 +08:00
Lim Chee Aun
671c68b8f8
Experiment use markers for notifications
2023-09-10 19:22:14 +08:00
Lim Chee Aun
98e82a68fd
Use useCallback for this
2023-09-10 15:31:51 +08:00
Lim Chee Aun
6b5a98ebb3
Prevent all the re-renders
...
Srsly this took me hours to debug
2023-09-09 17:00:51 +08:00
Lim Chee Aun
61f2132abd
Fix getNotifications is not a function
2023-09-07 12:17:31 +08:00
Lim Chee Aun
e7833d5b8c
Grammar
2023-09-05 13:26:30 +08:00
Lim Chee Aun
eed9b70a7d
Fix search bugs
2023-09-04 17:01:06 +08:00
Lim Chee Aun
0fd719d3e7
Global search command trigger
2023-09-04 14:49:39 +08:00
Lim Chee Aun
3511ba760a
Try autofocus on search field
...
I commented this out for some reason that I forgot
2023-09-04 00:07:11 +08:00
Lim Chee Aun
6cbbd0aa1b
More reliable badge clearing
...
Should be when page visible, not on render
Possibly super effective, but badges can be annoying if not cleared easily.
2023-09-03 13:41:37 +08:00
Lim Chee Aun
3ac05d8cdd
Refactor code to files
2023-09-02 18:19:09 +08:00
Lim Chee Aun
062f42a05d
Fix missing useLayoutEffect
2023-09-02 02:25:44 +08:00
Lim Chee Aun
852bb27e81
Clear app badge when view Notifications page
2023-09-02 01:35:24 +08:00
Lim Chee Aun
0e745663f0
Yes, push notifications (beta).
...
Heck this feature is tough.
2023-09-01 15:40:00 +08:00
Lim Chee Aun
0b04e01d60
Try out another style for 2nd-pass grouped notifications
2023-08-30 20:16:34 +08:00
Lim Chee Aun
91419b3243
Enable relative path hosting
2023-08-30 17:46:22 +08:00
Lim Chee Aun
aae74aa476
Experiment show avatars instead
...
Add a bit of tooltips too
2023-08-28 00:21:49 +08:00
Lim Chee Aun
1fae2f3208
2nd pass grouping of 1-account-many-statuses fav/boost
2023-08-27 13:06:26 +08:00
Lim Chee Aun
0792df1adb
dir=auto all the things
2023-08-24 09:12:00 +08:00
Lim Chee Aun
4aaf308d6e
Don't show list of instances by default
...
Very basic sorting too
2023-08-22 20:16:09 +08:00
Lim Chee Aun
e0c2a5aed1
Prevent hero container from expanding too tall
2023-08-20 10:55:11 +08:00
Lim Chee Aun
635f4c1b0d
s/setUiState/setUIState
2023-08-14 11:22:42 +08:00
Lim Chee Aun
8b74a32168
Fix race conditions when accept/rejecting many follow requests
...
- No longer reload the whole list of follow requests and notifications for every accept/reject action
- Notifications list now exclude follow requests (experimental)
2023-08-11 18:00:36 +08:00
Lim Chee Aun
889fdc87a1
Fix weird styles in Safari
2023-08-09 19:34:37 +08:00
Lim Chee Aun
1ecd568c29
Preliminary support for exclusive list
...
Only for Mastodon v4.2+
2023-08-09 19:08:42 +08:00
Lim Chee Aun
3d458826cf
Fix http route not working
2023-08-08 17:29:04 +08:00
Lim Chee Aun
d36ea02a02
Undo "Experiment: make replies container not whole-clickable"
2023-08-03 02:10:59 +08:00
Lim Chee Aun
75cfd02134
Need link for ancestors too
2023-08-01 19:24:12 +08:00
Lim Chee Aun
8cd00a053c
Experiment: make replies container not whole-clickable
...
Except for "thread" statuses
2023-08-01 00:15:07 +08:00
Lim Chee Aun
32a853ecc0
Make auto inline translation as a setting, turned off by default
2023-07-22 20:59:07 +08:00
Lim Chee Aun
6f28db2532
Make "tabs" work for Mentions page in Columns mode
2023-07-20 20:06:07 +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
473dac1fde
Fix layout regression in Settings sheet
...
My laziness in separating the styles between Settings and Accounts sheets bit back
2023-07-16 10:35:54 +08:00
Lim Chee Aun
df047131bb
Show instance URL in accounts list
...
When logged-in, acct doesn't show @instance
2023-07-14 14:46:57 +08:00
Lim Chee Aun
42633f87ea
Recode some parts in search page
...
Still very messy, I know
2023-07-14 13:16:41 +08:00
Lim Chee Aun
48b21ec42d
lol, totally wrong logic
2023-07-13 23:12:05 +08:00
Lim Chee Aun
5791338393
Use svh
2023-07-13 20:10:53 +08:00
Lim Chee Aun
1e28efd9bb
Fix search offset not working when first time load with 'type'
2023-07-13 20:10:39 +08:00
Lim Chee Aun
fa21eec06a
Try useIdle
2023-07-12 17:32:05 +08:00
Lim Chee Aun
4bfd36fa9b
Fix useState undefined
...
Blame myself working on multiple features at the same time
2023-07-09 16:51:05 +08:00
Lim Chee Aun
6956628369
Add posting visibility setting
...
Also respect visibility setting when replying *if* replied-to post is public
2023-07-09 16:32:09 +08:00
Lim Chee Aun
470f7aa353
Experimental back button for status page
2023-07-09 09:12:29 +08:00
Lim Chee Aun
db0261f8dd
Not needed due to header-grid-2
2023-07-09 09:11:11 +08:00
Lim Chee Aun
41d1956ae5
Fix jumpy hero container height
2023-07-09 08:31:41 +08:00
Lim Chee Aun
5f67a29e1a
Collapse follow requests if > 5
2023-07-06 20:32:21 +08:00
Lim Chee Aun
2eba4eaf59
Prevent re-render timeline in multi-column mode
2023-07-05 16:59:28 +08:00
Lim Chee Aun
e6880859ee
Styles for search accounts results
2023-07-05 16:57:33 +08:00
Lim Chee Aun
f67fdd5759
Show additional stats for accounts in search results
2023-07-02 18:02:30 +08:00
Lim Chee Aun
d035d18aa0
Fix duplicated search results
...
Also fix other stuff
2023-06-30 09:48:52 +08:00
Lim Chee Aun
c609ba0194
Fix bounce effect bug when switching view modes
2023-06-29 10:08:31 +08:00
Lim Chee Aun
8efc7a226e
Fix regression: close media modal, not the status page
...
Clicking close goes *back* from media=1 to media-only=1
2023-06-29 09:52:41 +08:00
Lim Chee Aun
86dd2f3f5c
Pagination for search results
...
This code is really hacky, may need to revisit one day
2023-06-28 23:36:37 +08:00
Lim Chee Aun
730fba7ad9
Show trending hashtags
...
Very minimal UI for now
2023-06-27 19:39:33 +08:00
Lim Chee Aun
465c06c671
Fix serious bug: any
doesn't persist in subsequent calls
2023-06-20 12:45:57 +08:00
Lim Chee Aun
fcc7d8ddea
Fix unlogged in pages not shown
2023-06-18 20:26:13 +08:00
Lim Chee Aun
a8c2287038
useLayoutEffect again
2023-06-14 17:37:54 +08:00
Lim Chee Aun
3b3e0e6fde
EmojiText component replacing dangerouslySetInnerHTML
2023-06-14 17:37:41 +08:00
Lim Chee Aun
a1ee5be54b
Upgrade react-menu and bug fixes
2023-06-13 17:46:37 +08:00
Lim Chee Aun
69703df4e1
Should be snapStates
2023-06-11 23:27:09 +08:00
Lim Chee Aun
c99b97d209
Revamp welcome page
2023-06-10 19:20:32 +08:00
Lim Chee Aun
12c9cb1723
Filter out conversations with deleted statuses
2023-05-29 20:06:10 +08:00
Lim Chee Aun
49c04a4259
Try go back if close media modal
2023-05-26 13:31:02 +08:00
Lim Chee Aun
ddb64e3022
Beautify 'Show more' button on status page
2023-05-24 17:16:56 +08:00
Lim Chee Aun
da46171ef6
Make announcements appear faster
2023-05-21 08:46:51 +08:00
Lim Chee Aun
04b3fd9545
Fix media click handler not "refreshing"
2023-05-20 13:02:47 +08:00
Lim Chee Aun
3acaac2d47
Check missing status with hero status too
2023-05-20 01:19:25 +08:00
Lim Chee Aun
1f7912d6b8
Add check for "missing" statuses in context
2023-05-18 23:42:49 +08:00
Lim Chee Aun
91a7485b7b
Such stupid mistake, I made
2023-05-14 21:13:36 +08:00
Lim Chee Aun
46c7ee5de1
Fix list not re-rendering when list ID changes
2023-05-13 21:34:42 +08:00
Lim Chee Aun
2b5eb87ec4
Fix double scrolling when clicking on announcement index buttons
2023-05-12 11:57:10 +08:00
Lim Chee Aun
6fcbc9dfa4
One more logic for auto-collapsing
2023-05-11 13:56:21 +08:00
Lim Chee Aun
4d5c0f1f5d
More adjustment to auto-collapsing logic
2023-05-09 22:29:18 +08:00
Lim Chee Aun
ef12916bab
New "shazam" CSS effect utility lolol
...
I might rename this in the future
2023-05-09 18:03:26 +08:00
Lim Chee Aun
c316f0106b
Small optimization
2023-05-08 23:16:04 +08:00
Lim Chee Aun
4c188ab59b
Smarter logic for auto-collapsing
...
This logic is getting similar to HackerWeb's
2023-05-08 22:42:15 +08:00
Lim Chee Aun
02d26b8da2
Slightly rewritten collapsing logic
...
Let's see if this works better
2023-05-08 12:50:00 +08:00
Lim Chee Aun
2ee38f43d2
Fix reload issues in Notifications
2023-05-07 19:17:16 +08:00
Lim Chee Aun
dd5b374b53
Make horizontally-scrollable comments more apparent
2023-05-07 18:20:25 +08:00
Lim Chee Aun
9ac71920bf
Additional logic for auto-collapsing comments
2023-05-07 18:19:28 +08:00
Lim Chee Aun
26af33aa85
Alright let's get Announcements UI out for now
...
Not perfect but will iterate later
2023-05-07 11:12:59 +08:00
Lim Chee Aun
dcf7d3c750
Add follow requests section in Notifications
2023-05-06 17:13:39 +08:00
Lim Chee Aun
d37537c61e
Time to move Compose button to other pages
...
One missing feature: Mention @username if button is on profile page
2023-05-06 17:12:13 +08:00
Lim Chee Aun
9c13224aed
New "Private" tab in Mentions
...
This is still very clunky
2023-05-05 17:54:16 +08:00