* WIP: slash suggestion autocomplete
* WIP: patched styles a bit
* WIP: Adding styles
* Adding active state to autocomplete items
* Fixing style for channel mention item
* Fixing bugs + styling issues for Android
* Updating snapshot
* Fixing autocomplete to render on top of post draft
- Misc style fixes
* Renaming props, patching slash suggestion icon
* Fixing tests and lint errors
* Resolving post-merge issue with slash commands
* Fixing android positioning for autocomplete
* Fixing autocomplete not scrolling in edit_channel_info
* WIP: Fixing things according to UX Review
* UX Fixes to autocomplete
* Updating snapshots
* Updating snapshots, replacing slash-command icons
* Fixing android scrolling and positioning issues
* Fixing issues with date_suggestion not rendering
* Making use of the "ShowFullName" config in at_mention_item
* Removing top border on first autocomplete section
* Allowing autocomplete to be smaller than its maxWidth
* Fixing slash_suggestion padding
* removing "componentWillReceiveProps" from date_suggestion
* Changing edit_channel_info autocomplete offset
* Replacing toUpperCase() with textTransform: uppercase
* Fixing odd border issues + prop validation warning
* Restore section header background & add paddingBottom
* Patching up padding on channel mentions
- Reverting previous incorrect padding adjustments
* Removing inline 'completeSuggestion' function
* Removing brackets from style prop
(cherry picked from commit 59045e3bb0)
Co-authored-by: Andre Vasconcelos <andre.onogoro@gmail.com>
194 lines
4.2 KiB
Text
194 lines
4.2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`thread should match snapshot, has root post 1`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
forceInsets={true}
|
|
>
|
|
<View
|
|
style={
|
|
Object {
|
|
"backgroundColor": "rgba(61,60,64,0.2)",
|
|
"height": 1,
|
|
}
|
|
}
|
|
/>
|
|
<Connect(StatusBar) />
|
|
<React.Fragment>
|
|
<ForwardRef(AnimatedComponentWrapper)
|
|
style={
|
|
Object {
|
|
"flex": 1,
|
|
"paddingBottom": 0,
|
|
}
|
|
}
|
|
>
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={2}
|
|
lastViewedAt={0}
|
|
location="thread"
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={
|
|
<Loading
|
|
color="#3d3c40"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
</ForwardRef(AnimatedComponentWrapper)>
|
|
</React.Fragment>
|
|
</Connect(SafeAreaIos)>
|
|
<Connect(PostDraft)
|
|
accessoriesContainerID="threadAccessoriesContainer"
|
|
channelId="channel_id"
|
|
channelIsArchived={false}
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
registerTypingAnimation={[Function]}
|
|
rootId="root_id"
|
|
scrollViewNativeID="threadPostList"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
<View
|
|
nativeID="threadAccessoriesContainer"
|
|
>
|
|
<Connect(Autocomplete)
|
|
channelId="channel_id"
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
maxHeight={200}
|
|
onChangeText={[Function]}
|
|
rootId="root_id"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
</View>
|
|
</React.Fragment>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, no root post, loading 1`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
forceInsets={true}
|
|
>
|
|
<View
|
|
style={
|
|
Object {
|
|
"backgroundColor": "rgba(61,60,64,0.2)",
|
|
"height": 1,
|
|
}
|
|
}
|
|
/>
|
|
<Connect(StatusBar) />
|
|
<Loading
|
|
color="#3d3c40"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
</Connect(SafeAreaIos)>
|
|
<View
|
|
nativeID="threadAccessoriesContainer"
|
|
>
|
|
<Connect(Autocomplete)
|
|
channelId="channel_id"
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
maxHeight={200}
|
|
onChangeText={[Function]}
|
|
rootId="root_id"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
</View>
|
|
</React.Fragment>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 1`] = `
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={2}
|
|
lastViewedAt={0}
|
|
location="thread"
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={
|
|
<Loading
|
|
color="#3d3c40"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 2`] = `
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={false}
|
|
lastPostIndex={2}
|
|
lastViewedAt={0}
|
|
location="thread"
|
|
onPostPress={[Function]}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={null}
|
|
scrollViewNativeID="threadPostList"
|
|
/>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 3`] = `
|
|
<React.Fragment>
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
forceInsets={true}
|
|
>
|
|
<View
|
|
style={
|
|
Object {
|
|
"backgroundColor": "rgba(61,60,64,0.2)",
|
|
"height": 1,
|
|
}
|
|
}
|
|
/>
|
|
<Connect(StatusBar) />
|
|
<Loading
|
|
color="#3d3c40"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
</Connect(SafeAreaIos)>
|
|
<View
|
|
nativeID="threadAccessoriesContainer"
|
|
>
|
|
<Connect(Autocomplete)
|
|
channelId="channel_id"
|
|
cursorPositionEvent="onThreadTextBoxCursorChange"
|
|
maxHeight={200}
|
|
onChangeText={[Function]}
|
|
rootId="root_id"
|
|
valueEvent="onThreadTextBoxValueChange"
|
|
/>
|
|
</View>
|
|
</React.Fragment>
|
|
`;
|