Skip to content
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

[arcade-chat] Basic chat channels+messages flow works #28

Merged
merged 31 commits into from
Aug 3, 2022
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
992eca5
before axe ws tests
AtlantisPleb Aug 2, 2022
61b2950
axe that for now
AtlantisPleb Aug 2, 2022
0d54440
Axe server ws
AtlantisPleb Aug 2, 2022
f374271
Add use-arcade store
AtlantisPleb Aug 2, 2022
cdc27a2
Initial subscribe
AtlantisPleb Aug 2, 2022
5478178
Fix type of useRideRequests
AtlantisPleb Aug 2, 2022
e7f8cb0
useRideRequests() working
AtlantisPleb Aug 2, 2022
bca8dd6
Try pull in UI, eh
AtlantisPleb Aug 2, 2022
2eabedf
Rename nostr-client to arcade-chat
AtlantisPleb Aug 2, 2022
eeee29a
replace microbundle w tsup
AtlantisPleb Aug 2, 2022
643860f
Button to create demo chatroom
AtlantisPleb Aug 2, 2022
a479a35
createDemoChannel good except needs random
AtlantisPleb Aug 2, 2022
0ab05ed
Creating demo channel event (not yet sending)
AtlantisPleb Aug 2, 2022
d326f3a
Fix kind
AtlantisPleb Aug 2, 2022
4a0a8e6
Storing/retrieving event 40s
AtlantisPleb Aug 2, 2022
5760360
Initial ChannelList with channel type
AtlantisPleb Aug 2, 2022
82da6b5
use NostrKind
AtlantisPleb Aug 2, 2022
96e22b9
ChannelList
AtlantisPleb Aug 2, 2022
0895fa9
Set up ChannelPreview and navto
AtlantisPleb Aug 2, 2022
445470c
Pull over tabbar and nav stuff
AtlantisPleb Aug 2, 2022
306846a
Fix UI depending on RN 0.69.1
AtlantisPleb Aug 2, 2022
9fb50be
Basic ChannelPreview/ChannelNav
AtlantisPleb Aug 2, 2022
0ab0d18
grab channel id param and axe require cycle
AtlantisPleb Aug 2, 2022
c7202ed
switch up tab icons
AtlantisPleb Aug 2, 2022
772d1d5
Initial ChannelScreen/Message placeholders
AtlantisPleb Aug 3, 2022
8a66bd5
MessageInput UI
AtlantisPleb Aug 3, 2022
b8e9f90
Navbutton back for Channel
AtlantisPleb Aug 3, 2022
18ee69d
MessageInput ready to send
AtlantisPleb Aug 3, 2022
70355a7
Send first message
AtlantisPleb Aug 3, 2022
575a72e
useChannelMessages works
AtlantisPleb Aug 3, 2022
8299908
Basic chat flow works
AtlantisPleb Aug 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MessageInput UI
AtlantisPleb committed Aug 3, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8a66bd5f73a7c03900a5f24395792e83bb7207fa
4 changes: 2 additions & 2 deletions apps/arcade-chat/App.tsx
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ export const App = () => {
<SafeAreaProvider>
<Navigation colorScheme={colorScheme} />
<StatusBar style='light' />
<View
{/* <View
style={{
position: 'absolute',
bottom: 95,
@@ -35,7 +35,7 @@ export const App = () => {
justifyContent: 'center',
}}>
<Button title='CREATE DEMO CHANNEL' onPress={actions.createDemoChannel} />
</View>
</View> */}
</SafeAreaProvider>
)
}
56 changes: 53 additions & 3 deletions apps/arcade-chat/components/MessageInput.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,59 @@
import { Text, View } from 'react-native'
import { color, palette } from '@arcadecity/ui'
import { StyleSheet, TextInput, View } from 'react-native'
import { FontAwesome } from '@expo/vector-icons'

export const MessageInput = () => {
return (
<View>
<Text>MessageInput</Text>
<View style={styles.container}>
<View style={styles.composerContainer}>
<View style={styles.inputContainer}>
<TextInput autoCorrect={false} spellCheck={false} style={styles.inputBox} multiline />
<View style={styles.sendButtonContainer}>
<FontAwesome name='send' size={24} color={palette.blueBell} />
</View>
</View>
</View>
</View>
)
}

const styles = StyleSheet.create({
composerContainer: {
alignItems: 'flex-end',
flexDirection: 'row',
flex: 1,
},
container: {
backgroundColor: palette.purple,
borderTopWidth: 1,
borderTopColor: palette.portGore,
padding: 10,
height: 60,
},
inputBox: {
backgroundColor: color.field,
color: color.text,
flexGrow: 1,
fontSize: 14,
height: 40,
borderRadius: 10,
includeFontPadding: false,
padding: 10,
textAlignVertical: 'center',
},
inputContainer: {
alignItems: 'center',
flexDirection: 'row',
justifyContent: 'center',
paddingLeft: 6,
paddingRight: 6,
},
sendButtonContainer: {
// alignItems: 'center',
// justifyContent: 'center',
// paddingBottom: 10,
// paddingLeft: 10,
// backgroundColor: 'red',
marginLeft: 14,
},
})
2 changes: 1 addition & 1 deletion apps/arcade-chat/components/MessageList.tsx
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ export const MessageList = () => {
const styles = StyleSheet.create({
container: {
alignItems: 'center',
backgroundColor: color.palette.purple,
backgroundColor: color.background,
flex: 1,
width: '100%',
},