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

Conversation

AndreLaranjeira
Copy link
Collaborator

Description

  • Implemented chat API;
  • Implemented chat list page;
  • Added some functionality and backend support for chat page;
  • Some bug fixes, notably infiniteScroll now reloads data on focus;

Motivation and Context

Closes #91 and #92.

How has this been tested?

Tested in bits by all 3 different members.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

AndreLaranjeira and others added 22 commits April 25, 2021 16:56
Many text themes used the same color, so I refactored them into a single 
text theme.
* Extracted the concatenateNames function to it's own file (it will be 
used by the chatList page);
* Minor refactoring in theme to bundle together placeholder and invalid 
texts as faded text;
* Created chat list page (with mocks, and without testing the backend);
* Registered page in routes and drawer menu;
* Created Chat types and mocks for Chat API;
* Additions to firebase types, animal API, adoption API and theme;
* Added styling for infiniteScroll no data found container;
createChat, getOwnChats, pushMessages
Using types from types/firebase
Using types from types/firebase
…hat_list

Removing animalUID from chat route params
Too many other fixes to list
* Created function that formats a chat date into text;
* Used function in chat lists page;
Copy link
Collaborator

@labm1997 labm1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and approved!

@AndreLaranjeira
Copy link
Collaborator Author

I can't officially approve my own PR, but, for all intents and purposes: approved! If someone could actually address those minor comments, all the better.

@@ -219,11 +180,11 @@ export default (): JSX.Element => {
messages={messages}
loadEarlier
infiniteScroll
isLoadingEarlier={isLoadingEarlier}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we don't need this state anymore.

@AndreLaranjeira AndreLaranjeira merged commit af3c29b into development May 7, 2021
@AndreLaranjeira AndreLaranjeira deleted the 093_chat_list branch May 7, 2021 21:11
This was linked to issues May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chat: Lista de chats Chat backend
3 participants