Build an email client app like Outlook. Following APIs are provided:
- Get all emails
- Get email body for a particular email
- Email List View (http://bit.ly/2VtQGcb)
- Email body View (http://bit.ly/2I5DemI)
- Color codes (http://bit.ly/2wa2pCa)
- The app features an email list page. This page shows the list of emails sent to a user.
- Clicking on any email item in the list should split the screen into a master-slave (left-right) screen type where the master (left) shows the email list (with the selected email item) while the slave (right) shows the body of the email. The body of the email is not known ahead of time and should be loaded only when the email item is clicked.
- The app should allow any particular email item to be marked as “favorite”, it should be done via clicking on an email item and then clicking the “Mark as Favorite” button in the email body section.
- The app should show read and unread mails in different CSS styles to distinguish between the same.
- Upon opening an email that email should be considered as read.
- Allow filtering emails by “favorites”, “read” and “unread”.
- Persist favorited and read emails across sessions using persistent storage technologies.
- Provide the ability to perform bulk actions using checkbox on email list to mark them as read, unread , and delete.
- Render all emails page using the API 2, Each email should have from, subject, short description, date and time.
- The avatar (circular logo) in each email item should be populated with the first character of first name (sent in API response).
- Upon clicking a particular email, render the body section for it using the API. Email body has 3 sections:
- Email subject
- Email body
- Email date and time
- Allow email to be marked favorite in the body section of the email
- Filter emails marked as favorite, read and unread
- UI should be as close to the mocks provided
- The date should be rendered in format dd/MM/yyyy hh:mm .
- Your code should be deployed and available through any of the tools like Heroku, Netlify etc.
- Email list could be long and hence is paginated. There are 2 pages i.e. page 1 and page 2 which can be accessed via the APIs provided below.
- Provide search functionality on frontend using the email contents.
- Exception handling within components and API interactions.
- Focus on the modularity of code and design of the solution. Keep performance of the application in mind.
- The solution should be coded using React , vanilla JavaScript, HTML and CSS.You can use tooling such as webpack, grunt, gulp, etc.
- The final solution should work without errors.
- Do not completely ignore the layout / visual design. A minimalist visual design / layout must be followed, it is also important for us to evaluate your CSS knowledge.
- Do not create a div soup instead use semantic HTML tags
- Correctness and completeness of the solution.
- Code design and quality.
- Visual aesthetics (the UI should be as close as possible to the given design).
- Your understanding of the problem statement.
-
Email List API's: GET https://6366339879b0914b75cba9c2.mockapi.io/api/email
-
Email Body API: https://6366339879b0914b75cba9c2.mockapi.io/api/email/ e.g. GET https://6366339879b0914b75cba9c2.mockapi.io/api/email/3