Commit graph

484 commits

Author SHA1 Message Date
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
Lim Chee Aun
711842916d New experiment: auto refresh 2023-05-05 17:53:16 +08:00
Lim Chee Aun
8519f68e9f Quick-translate from timeline to Post page 2023-05-03 10:22:15 +08:00
Lim Chee Aun
0e1579ebf1 Small style fixes for notifications popover 2023-05-02 23:41:08 +08:00
Lim Chee Aun
9a58804142 Min-height to make sure it's not too small 2023-05-01 00:53:49 +08:00
Lim Chee Aun
ee2e78228e Fix notifications not refreshing and not clearing "new"
Still quite clunky, but let's see
2023-04-30 21:59:14 +08:00
Lim Chee Aun
18c08076dd Fix mount/unmount states of notifications popover 2023-04-30 21:33:03 +08:00
Lim Chee Aun
ef06faf259 Notifications popover, for larger screens 2023-04-30 21:03:09 +08:00
Lim Chee Aun
6532b97a44 Update copy: s/status/post 2023-04-29 22:22:07 +08:00
Lim Chee Aun
eeb5730932 Filter bar + helper popup for search form 2023-04-29 20:59:51 +08:00
Lim Chee Aun
ce97b9a242 Fix media not opening when switching hero status on Status page 2023-04-28 11:00:28 +08:00
Lim Chee Aun
211e4ff74d Rename to NavMenu to avoid confusion 2023-04-26 13:09:44 +08:00
Lim Chee Aun
1dc14105eb Add "Why Phanpy?" section 2023-04-24 22:58:14 +08:00
Lim Chee Aun
c11d30a2a0 Add explanation for Cloak mode 2023-04-23 19:47:49 +08:00
Lim Chee Aun
4281a91e48 New feature: cloak mode 2023-04-23 12:08:41 +08:00
Lim Chee Aun
7e302770d1 Fix List not respecting boosts carousel settings 2023-04-22 20:17:15 +08:00
Lim Chee Aun
1d897ad4c5 Add menu to switch to account's instance 2023-04-21 11:09:19 +08:00
Lim Chee Aun
5dc3603795 Close button for modal sheets 2023-04-20 16:10:57 +08:00
Lim Chee Aun
b1b7fa1a2e Fix post status banner overlapped by poll items lol 2023-04-19 15:23:47 +08:00
Lim Chee Aun
61699b322d Clear media when switching view modes 2023-04-19 00:27:10 +08:00
Lim Chee Aun
fdf30c37cb Replace datalist with my own list 2023-04-18 23:33:59 +08:00
Lim Chee Aun
60c635b610 Fix status not shown if ancestors count > 40
Plus a few perf fixes
2023-04-18 19:47:21 +08:00
Lim Chee Aun
4fce94e8e7 Fix some threads suddenly lost inReplyToAccountId half-way 2023-04-17 21:43:26 +08:00
Lim Chee Aun
5200e46639 Split into its own file 2023-04-17 19:00:41 +08:00
Lim Chee Aun
b63269e42a Handle urls from root 2023-04-17 18:56:09 +08:00
Lim Chee Aun
9a04cb6ba3 Add 'Full' view for status pages 2023-04-17 00:14:09 +08:00
Lim Chee Aun
a505f7c5e4 Fix media not loading if status is not cached 2023-04-15 12:26:11 +08:00
Lim Chee Aun
19858dc889 It's time for a new loading indicator 2023-04-14 15:46:11 +08:00
Lim Chee Aun
f303c6d36c Rewrite status page + media modal
Media modals now have their own URLs
2023-04-14 15:30:04 +08:00
Lim Chee Aun
13b2273022 Bot avatars will be squircles 2023-04-11 00:26:43 +08:00
Lim Chee Aun
f957d9a8a8 Show toasts. Lots of toasts. 2023-04-09 01:01:36 +08:00
Lim Chee Aun
5b2cbc5bf1 Fix hashtag shortcut added check 2023-04-09 00:46:30 +08:00
Lim Chee Aun
959ac468d8 Allow instance-based hashtags
Also change design a little
2023-04-08 20:42:38 +08:00
Lim Chee Aun
eebb55ba38 Only show replies count if ancestors is a thread 2023-04-08 19:47:54 +08:00
Lim Chee Aun
b227d816bc Show replies count for ancestors 2023-04-08 16:52:34 +08:00
Lim Chee Aun
224a289a20 New Mentions page 2023-04-06 19:32:26 +08:00
Lim Chee Aun
6773207610 Fix missing only mentions bug 2023-04-06 17:48:40 +08:00
Lim Chee Aun
efb38bc5d1 Forgot to switch back the limit 2023-04-06 11:33:13 +08:00
Lim Chee Aun
17ae03f766 since_id is not supported in trends/statuses
And change update interval to 5 mins
2023-04-06 10:24:52 +08:00
Lim Chee Aun
913a352dee Add Trending page 2023-04-06 01:14:38 +08:00
Lim Chee Aun
f1bb1454c3 Sort followed hashtags 2023-04-06 00:49:32 +08:00
Lim Chee Aun
ff1a9fa444 Full CRUD for Lists 2023-04-05 23:30:26 +08:00
Lim Chee Aun
8ce8e06913 Add '- Boosts' filter 2023-04-04 11:01:53 +08:00
Lim Chee Aun
0ee17395ae Auto-scroll to filter & add clear filter "button" 2023-04-03 13:17:22 +08:00
Lim Chee Aun
c7f4087ed2 Preliminary steps in adding filter bar 2023-04-03 10:36:31 +08:00
Lim Chee Aun
04b4101e55 Handle /notes/ url too 2023-04-03 10:05:57 +08:00
Lim Chee Aun
c8d582184f Revert "Sometimes, a bracket makes a huge difference"
This reverts commit 45c872df28.
2023-03-31 19:46:54 +08:00
Lim Chee Aun
45c872df28 Sometimes, a bracket makes a huge difference 2023-03-31 19:21:27 +08:00
Lim Chee Aun
347d288c83 It's time to level up ALL replies
When reach level 4, horizontal scrolling will kick in!
2023-03-30 20:07:07 +08:00
Lim Chee Aun
64b59e42a5 Remember replies toggle state during the "session" 2023-03-28 20:33:00 +08:00
Lim Chee Aun
f160a576d6 Add settings to hide translate button for certain languages 2023-03-28 19:04:52 +08:00
Lim Chee Aun
325bccf010 Prevent re-render when page visibility changes
Also time to remove legacy homeV1 🙏
2023-03-27 15:05:50 +08:00
Lim Chee Aun
4f8b5cf5fb Fix deduping happened before saving the status 2023-03-27 00:47:29 +08:00
Lim Chee Aun
caee38c98f New experiment: dedupe boosts and group context 2023-03-26 23:18:36 +08:00
Lim Chee Aun
f5646fe8a8 Attempt to fix weird "latest" item bug 2023-03-25 20:18:53 +08:00
Lim Chee Aun
2c8112baa5 Add ability to switch post to its own instance 2023-03-24 15:05:57 +08:00
Lim Chee Aun
e6da22a1e0 Nav Menu show avatar if multiple accounts
Accounts sheet default to 'switch' when click on account
2023-03-23 09:51:52 +08:00
Lim Chee Aun
422813be9c New experimental Filtered Posts UI 2023-03-22 00:09:36 +08:00
Lim Chee Aun
ed1d475a12 Fix .status conflicting with .notification.status
Naming is hard
2023-03-20 23:07:21 +08:00
Lim Chee Aun
47b51bdef8 Add Refresh menu item to Status page 2023-03-19 20:12:45 +08:00
Lim Chee Aun
d9b9c04ec0 Fix pinned statuses gone missing 2023-03-18 22:25:02 +08:00
Lim Chee Aun
a0d4d9e08c Time to save all to states
Memory usage might go up but need this for reactivity
2023-03-18 20:20:48 +08:00
Lim Chee Aun
ba2e9c29e4 Adjust adjust 2023-03-15 14:01:32 +08:00
Lim Chee Aun
f4310ad8e4 Add ability to reload hero status 2023-03-14 00:36:40 +08:00
Lim Chee Aun
0d29043358 Better profile document.title 2023-03-13 10:07:22 +08:00
Lim Chee Aun
e0e1196c9e Make account info load wayyyy faster on Profile page 2023-03-11 21:33:55 +08:00
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