In D10497#303263, @ginsu wrote:
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
Dec 29 2023
Dec 29 2023
Just a question - do you plan to add the Roles community action here later as well?
Actually, I don't think we need this. I did some testing without this change and I'm not getting notifications for any self-mentions (I was logged into 'ashoat' on native)
rohan updated the diff for D10119: [web] Update existing checks on isDefault in role-actions-menu.reactjs.
Rebase
Dec 28 2023
Dec 28 2023
rohan added inline comments to D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
rohan updated the diff for D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
Address feedback on removing unnecessary changes
rohan added a comment to D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
In D10460#302669, @inka wrote:I understand the changes to getChatMentionCandidates / useChatMentionCandidatesObjAndUtils, because in the next diff you change useChatMentionSearchIndex, which is being passed data from useChatMentionCandidatesObjAndUtils. But what are the other changes for?
rohan updated the diff for D10461: [lib] Include the rawChatName when constructing the chat mention search index.
Rebase
rohan updated the diff for D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
Address feedback (will respond to comments separately). Mainly factored out individual types and updated the code to reflect that
Dec 27 2023
Dec 27 2023
Dec 26 2023
Dec 26 2023
rohan added a comment to D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
In D10460#302348, @ashoat wrote:Just wondering, are we supporting something like "@userone.eth and 0x12312321" matching a chat whose ENS-resolved name is "userone.eth and usertwo.eth"?
rohan requested review of D10460: [lib/web/native] Update ChatMentionCandidates type to include a rawChatName.
rohan requested review of D10458: [lib] Rename threadInfos to resolvedThreadInfos in getChatMentionCandidates.
Dec 24 2023
Dec 24 2023
In D10419#302273, @ashoat wrote:Is there some missing context here? It sounds like @rohan did some testing and things didn't work, but not sure what that testing was
Dec 23 2023
Dec 23 2023
Just requesting changes so its back in your queue. Let me know if my testing was missing something
Dec 22 2023
Dec 22 2023
Dec 21 2023
Dec 21 2023
rohan requested review of D10432: [lib/web/native] Convert getMentionTypeaheadUserSuggestions into a hook.
rohan added inline comments to D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
rohan updated the diff for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
Address feedback
rohan updated the diff for D10388: [lib] Modify markdownUserMentionRegex to match ENS names as well.
Move constant to account-utils.js with a comment
Revert the most recent update (updated the wrong diff)
Move constant to account-utils.js with a comment
In D10388#301357, @inka wrote:Looking at usages of oldValidUsernameRegexString I can see that it is used in oldValidUsernameRegex, which is used for something mention related on the keyserver. Should that be changed?
In D10389#301405, @inka wrote:getDefaultTextMessageRules is exactly the same on native and web, can we move it to lib?
Filter members without a role first, and construct a resolvedMembersMap and key by member.id
rohan updated the diff for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
Remove console.log from testing
rohan updated the diff for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
- Rewrite typeaheadMatchedStrings on both web and native to avoid ternary
- Prevent search index from recalculating search results for each usersInThread
rohan added inline comments to D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
Dec 20 2023
Dec 20 2023
I'll leave this to the other reviewers as it seems like they have some more context/feedback here
rohan updated the diff for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
getUserMentionsCandidates --> useUserMentionsCandidates
rohan added a comment to D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
In D10387#301064, @ashoat wrote:Memoization isn't just about avoiding the performance cost of rerunning the code. What's usually more important is avoiding regenerating non-primitives (like arrays and objects). By avoiding regenerating these, we reduce a bunch of expensive React renders.
rohan updated the diff for D10407: [keyserver] Update sendPushNotif to detect mention for a ENS name.
Define userInfosWithENSNames in the correct scope
rohan added inline comments to D10407: [keyserver] Update sendPushNotif to detect mention for a ENS name.
Dec 19 2023
Dec 19 2023
rohan requested review of D10407: [keyserver] Update sendPushNotif to detect mention for a ENS name.
rohan added a comment to D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
In D10387#300593, @ashoat wrote:You fixed it for web but not native (I actually didn't catch web – glad you did)
Oh sorry about that, I don't know what I was thinking to not do it for both even though it was called out here.
Separately, wonder if we just want to have a hook like useThreadChatMentionCandidates instead of memoizing the results of getUserMentionsCandidates in both places
Yeah that works better - though I was taking another look at getUserMentionsCandidates and I'm not sure if there's a use for memoization here. I don't think this is computationally expensive, but feel free to let me know if you disagree!
function getUserMentionsCandidates(
threadInfo: ThreadInfo,
parentThreadInfo: ?ThreadInfo,
): $ReadOnlyArray<RelativeMemberInfo> {
if (threadInfo.type !== threadTypes.SIDEBAR) {
return threadInfo.members;
}
if (parentThreadInfo) {
return parentThreadInfo.members;
}
// This scenario should not occur unless the user logs out while looking at a
// sidebar. In that scenario, the Redux store may be cleared before ReactNav
// finishes transitioning away from the previous screen
return [];
}- Memoize hook return collection
- Remove members param from both web and native in rules.react.js
rohan updated the diff for D10386: [native] Compute typeahead suggestions and matched strings outside the class component.
Rebase
Use SetState type
Dec 18 2023
Dec 18 2023
rohan updated the diff for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
Memoize userMentionsCandidates
rohan added inline comments to D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
rohan updated the test plan for D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
rohan requested review of D10387: [lib/web/native] Show and search resolved ENS names in @ mentioning toolip.
Dec 16 2023
Dec 16 2023
Dec 15 2023
Dec 15 2023
