Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Chat list, chat API, functionalities to chat page and bug fixes #99

Merged
merged 31 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
33d752f
Refactored text themes into textDark
AndreLaranjeira Apr 25, 2021
ef850c6
Changed adoption API to add owner reference to interests collection
AndreLaranjeira Apr 26, 2021
b80d311
ConcatenateNames extraction and minor refactoring to theme
AndreLaranjeira Apr 27, 2021
f2909c1
Chat list page (with mocks and without testing backend)
AndreLaranjeira Apr 27, 2021
2ac3539
🚧 Add first methods to chatAPI
Hugo-NF May 3, 2021
597f1df
🚧 Add loadMessages and latestMessageOnChat
Hugo-NF May 3, 2021
33097b3
🚧 Add loadMessages and latestMessageOnChat
Hugo-NF May 3, 2021
2ec79bb
Merge branch '091_chat_api' of github.com:Hugo-NF/meau-app into 091_c…
Hugo-NF May 3, 2021
87a5a92
🚧 Add orderBy on getOwnChats method
Hugo-NF May 3, 2021
b38644a
Merge branch '091_chat_api' of github.com:Hugo-NF/meau-app into 093_c…
Hugo-NF May 4, 2021
a358350
🚧 Add chatUID to chat screen params
Hugo-NF May 5, 2021
c162f25
🚧 Replaces mocks on chatList screen
Hugo-NF May 5, 2021
263655c
🚧 Loads first page of messages
Hugo-NF May 5, 2021
5ba6975
🚧 Chat page has a bug on timestamp
Hugo-NF May 5, 2021
7afb80b
Chat working with ChatAPI
labm1997 May 5, 2021
1ba7110
Linter fix
labm1997 May 5, 2021
1bcb996
Function to format chat date into text
AndreLaranjeira May 5, 2021
a5208e5
Fix Chat page corner case when there's no chat yet
labm1997 May 6, 2021
9fb16be
Merge branch '093_chat_list' of https://github.com/Hugo-NF/meau-app i…
labm1997 May 6, 2021
b82ccf9
InfiniteScroll now reloads data whenever the screen is focused
AndreLaranjeira May 6, 2021
833159c
Chats and chat list now register when the user sees a message in chat
AndreLaranjeira May 6, 2021
a51e623
Fixed bug that caused infiniteScroll focus effect to crash app on logout
AndreLaranjeira May 6, 2021
c22ee31
Minor refactoring in type files
AndreLaranjeira May 6, 2021
2e49b3e
Minor refactoring in chatList page and styles
AndreLaranjeira May 6, 2021
88a287e
InfiniteScroll - Added mount checks to prevent memory leaks
AndreLaranjeira May 6, 2021
1a736df
Naming fixes
labm1997 May 6, 2021
c1c699b
More naming fixes
labm1997 May 6, 2021
6154524
Removed not needed comments
labm1997 May 6, 2021
b53aafa
Updated package-lock
AndreLaranjeira May 6, 2021
30f087c
Merge branch '093_chat_list' of https://github.com/Hugo-NF/meau-app i…
labm1997 May 6, 2021
3896ac1
Refactor getChatByTarget
labm1997 May 6, 2021
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
157 changes: 141 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/AnimalCard/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const CardTitle = styled.Text<TextProps>`
text-align-vertical: center;
font-family: Roboto_500Medium;
font-size: 16px;
color: ${Theme.elements.headerText};
color: ${Theme.elements.textDark};
`;

export const CardOptions = styled.View<ViewProps>`
Expand Down
3 changes: 2 additions & 1 deletion src/components/DrawerContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ const DrawerContent = ({ parentDrawerOpen, setParentDrawerOpen } : IDrawerProps)
/>
<List.Item
title="Chat"
titleStyle={styles.ListItemTextDisabled}
onPress={() => navigateTo('ChatList')}
titleStyle={styles.ListItemText}
/>
</List.Accordion>
</List.Section>
Expand Down
6 changes: 3 additions & 3 deletions src/components/DrawerContent/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const styledComponents = {
font-family: 'Roboto_400Medium';
font-size: 14px;
text-transform: uppercase;
color: ${Theme.elements.buttonText};
color: ${Theme.elements.textDark};
`,
};

Expand All @@ -62,12 +62,12 @@ export const styles = {
SectionTitle: {
fontFamily: 'Roboto_400Medium',
fontSize: 14,
color: Theme.elements.buttonText,
color: Theme.elements.textDark,
},
ListItemText: {
fontFamily: 'Roboto_400Regular',
fontSize: 14,
color: Theme.elements.buttonText,
color: Theme.elements.textDark,
},
ListItemTextDisabled: {
fontFamily: 'Roboto_400Regular',
Expand Down
Loading