Lim Chee Aun
0678366566
Fix focus style not working for news' images
2023-10-27 00:01:32 +08:00
Lim Chee Aun
35dced8eaf
Disable search results pagination if not authenticated
2023-10-26 17:39:10 +08:00
Lim Chee Aun
1c87dd6e41
Check for reload cases too
...
Prevent status page from going full width when reloading itself
This checks tab's history length, so opening status page on a new tab means
length = 1.
BUT this will fail if someone copies the link and paste to another
**existing** tab with existing pre-populated history.
2023-10-26 11:42:44 +08:00
Lim Chee Aun
81644e67bb
Fix 'esc' closes both modal and status page
2023-10-26 02:19:01 +08:00
Lim Chee Aun
5d5ab906ba
Further robustify trending news
...
- Convert back to RGB for max compat
- Better variable names
- Add fallback if there's no blurhash
- Refactor color utils
- Use alpha instead of light/dark colors
2023-10-25 19:18:47 +08:00
Lim Chee Aun
3a32cbf974
Test full width for first load of status page
2023-10-25 17:07:00 +08:00
Lim Chee Aun
b9afe4fb66
s/Favourite/Like
...
Poll: https://mastodon.social/@cheeaun/111272668719225402
2023-10-25 13:55:12 +08:00
Lim Chee Aun
61756fac1d
Fix unneccesary re-renders in Notifications
2023-10-23 16:24:30 +08:00
Lim Chee Aun
f2c2983663
Comment out test code
2023-10-23 11:12:28 +08:00
Lim Chee Aun
2c4dd0cdb7
Add lang & dir to trending news
2023-10-23 11:12:15 +08:00
Lim Chee Aun
58d36d2403
Filter links by type
2023-10-23 08:55:22 +08:00
Lim Chee Aun
72842c663a
Change from "Build" to "Version"
...
Also make version string copy-able
2023-10-23 08:43:27 +08:00
Lim Chee Aun
8d694ecf1b
Experiment useAutoAnimate
2023-10-23 08:42:40 +08:00
Lim Chee Aun
cafadd0980
More fixes for Trending news
2023-10-23 01:36:32 +08:00
Lim Chee Aun
3a1341fb17
Always sort list of Lists
2023-10-22 23:25:25 +08:00
Lim Chee Aun
ced30a9602
Fix default tag always wrong location
...
Feel so dumb looking back at this code lol
2023-10-22 23:09:38 +08:00
Lim Chee Aun
4e53b1e17f
Need lazy loading
2023-10-22 20:08:19 +08:00
Lim Chee Aun
1c5453cfb6
Trending news carousel
2023-10-22 19:40:46 +08:00
Lim Chee Aun
a222828306
Need InView for show more button in Notifications page
2023-10-21 17:54:10 +08:00
Lim Chee Aun
749d6880b8
Experiment making idle detection global
...
Hooks are nice but it makes component re-render unnecessarily
Also, idle detection doesn't need to be per-component.
2023-10-21 12:26:28 +08:00
Lim Chee Aun
5a616633c6
Make sure month params don't run if invalid
2023-10-21 12:21:51 +08:00
Lim Chee Aun
4c4e89ac9d
Contain the overscroll behavior in notifications popover
2023-10-20 23:11:26 +08:00
Lim Chee Aun
4da968df2e
Fix avatars not bunching properly
2023-10-20 22:10:55 +08:00
Lim Chee Aun
87e243ea58
Make scrolling work inside filter bar
2023-10-20 22:00:56 +08:00
Lim Chee Aun
66f9c3b918
Fix async/await
2023-10-20 20:54:24 +08:00
Lim Chee Aun
137ad7f4dd
Cache search enabled check
2023-10-20 20:48:30 +08:00
Lim Chee Aun
3721acf3d3
Attempt to make month picker better
2023-10-20 19:24:01 +08:00
Lim Chee Aun
ab7df0f66c
Experiment: month filter for account statuses
2023-10-20 18:11:13 +08:00
Lim Chee Aun
d1aedcaef2
Fix unneeded id passed here
2023-10-20 17:11:10 +08:00
Lim Chee Aun
72f204771f
Minor adjustments for search page
2023-10-20 12:53:23 +08:00
Lim Chee Aun
dba921a3fd
Add key
2023-10-20 12:52:56 +08:00
Lim Chee Aun
a5532488aa
Bunch these avatars too
2023-10-19 17:45:37 +08:00
Lim Chee Aun
e9075906f8
Fix refresh key not unique enough
...
JS converted these to numbers, much fail
2023-10-19 17:25:17 +08:00
Lim Chee Aun
106cd16e41
Add loading state to filter bar
2023-10-19 10:13:53 +08:00
Lim Chee Aun
cd57e97e2b
Fix Preact wrongly rearrange the elements
2023-10-19 01:14:23 +08:00
Lim Chee Aun
c1588322aa
Bunch the avatars
2023-10-19 01:13:37 +08:00
Lim Chee Aun
e153f9f541
Prevent undefined class name lol
2023-10-16 20:21:09 +08:00
Lim Chee Aun
809b7cc2d2
Micro perf optimizations maybe
2023-10-16 17:01:16 +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
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