In this PR, we implement the ChatDisplay component for the Commons Chat frontend which fetches from the chat and usercommons API endpoints. We also add the ChatMessageDisplay component to display each message, and chat fixtures for the storybook and tests. When there is no user found, the Username is replaced with "Anonymous."
Screenshots (Optional)
Feedback Request (Optional)
Please give suggestions on the following:
Is the font sizing good for the messages?
Validation (Optional)
Download this branch.
Run the storybook
Find these components in components/Chat
Tests
[x] Backend Unit tests (mvn test) pass
[x] Backend Test coverage (mvn test jacoco:report) 100%
[x] Backend Mutation tests (mvn test pitest:mutationCoverage) 100%
[x] Frontend Unit tests (npm test) pass
[x] Frontend Test coverage (npm run coverage) 100%
Overview
In this PR, we implement the ChatDisplay component for the Commons Chat frontend which fetches from the chat and usercommons API endpoints. We also add the ChatMessageDisplay component to display each message, and chat fixtures for the storybook and tests. When there is no user found, the Username is replaced with "Anonymous."
Screenshots (Optional)
Feedback Request (Optional)
Please give suggestions on the following:
Validation (Optional)
Tests
mvn test
) passmvn test jacoco:report
) 100%mvn test pitest:mutationCoverage
) 100%npm test
) passnpm run coverage
) 100%npx stryker run
) 100%npx eslint --fix src
)Linked Issues
Closes #73