-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-60405] Crossteam search #8411
base: main
Are you sure you want to change the base?
Conversation
Before I even begin reviewing this, did you check Android and iPad? |
Yep, I tried them both in their respective emulators. |
that is nice, can you share screenshots or video captures for UX reference? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what % of code is being covered with this tests? if 80% or more then OK, if not, let's try and bring it to 80%+ please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be good, jest --coverage app/components/team_list/index.test.tsx --collectCoverageFrom=app/components/team_list/index.tsx
gave me
Statements : 100% ( 16/16 )
Branches : 91.66% ( 11/12 )
Functions : 100% ( 5/5 )
Lines : 100% ( 14/14 )
I had to change the jest.config.js
which is set to not report coverage on our components or screens.
@@ -20,6 +20,7 @@ type Props = { | |||
iconBackgroundColor?: string; | |||
selectedTeamId?: string; | |||
onPress: (teamId: string) => void; | |||
hideIcon?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we hiding the icon? I could not find any reference to this in the tickets nor a figma attached
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testID={`${teamListItemTestId}.team_icon`} | ||
/> | ||
</View> | ||
} | ||
<Text | ||
style={[styles.text, Boolean(textColor) && {color: textColor}]} | ||
numberOfLines={1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for long names, should we add an ellipsis ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/screens/home/search/index.tsx
Outdated
}; | ||
}); | ||
|
||
export const ALL_TEAMS_ID = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps this should be moved to a constants file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice the constants folder! Thanks, I moved it there!
marginBottom: 12, | ||
paddingHorizontal: 12, | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please show how is this modifying the UI and the impact, I know we spend a long time making this right, so I want to avoid changes here if they don't match the UI unless the UI changes for this are expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a screenshot on iOS and Android, and here's the link to Figma: https://www.figma.com/design/afCozEMCPeyfomstQfyp61/Search-Across-Teams?node-id=4274-35733&p=f&t=tlOZueT4DGgmwuhq-0
</View> | ||
<View style={{flex: 1}}> | ||
<Text | ||
id={selectedTeam.id} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we add an ellipsis here? also why are we removing the icon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smallText={true} | ||
/> | ||
</View> | ||
<View style={{flex: 1}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to a stylesheet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
<CompassIcon | ||
color={changeOpacity(theme.centerChannelColor, 0.56)} | ||
style={styles.compass} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not necessary anymore
ios/Gekidou/Package.resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert the changes to this file
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Summary
This PR changes to design to have the new team selector in the search and result views, and adds a new "All teams" option only if the correct feature flag is set on the server.
Tickets Link
https://mattermost.atlassian.net/browse/MM-60405
https://mattermost.atlassian.net/browse/MM-60410
https://mattermost.atlassian.net/browse/MM-60411
Blocked by
mattermost/mattermost#29389
Checklist
E2E iOS tests for PR
.Device Information
This PR was tested on: iOS Emulator, Android emulator, iPad emulator
Screenshots
New team selector in the search page
The team bottom sheet contains "All Teams" (FF is on)
New team selector in the result page
Release Note