GithubHelp home page GithubHelp logo

inpost's Introduction

InPost Recruitment Task

Intro

We travel back in time โฑ๏ธ. InPost Mobile app was just created and you join the team to improve its feature set and make it ready for the future. User base is growing fast and every day more people start to use it daily.

You, as an experienced developer, were assigned to the project to improve its quality. The initial code is not perfect and is far from being. Organize and refactor code the way you like to work (packages, modules, layers, data flow, names, methods order etc.).

Rules

  • You can change and move any part you like, install any open source library you want
  • A static JSON file is returned in response, consider this is a real production environment returning your data
  • JSON file cannot be changed
  • Git history is also important
  • Feel free to comment your choices

Tasks

  1. Add grouping to the list of Shipments by flag ShipmentNetwork.operations.highlight
  2. Style list items as in Figma ( link: https://www.figma.com/file/MzPR3whRl6KB1fFnkyM6Or/recruitment-task)
  3. Sort list items in groups by (the closest date to current date should be at top of the list):
    • status - order is described in ShipmentStatus.kt file (first item, should be at the top of list)
    • pickupDate
    • expireDate
    • storedDate
    • number
  4. Add pull to refresh and handle refresh progress
  5. Add storing shipments locally (use Room)
  6. Add local archiving of the shipment:
    • We consider archiving as hiding the shipment from the list of Shipments
    • Design is not important here
    • Shipment must stay hidden after re-downloading data or relaunching the app
  7. Create unit tests

Links and resources

If for some reason Figma link stops working, here you can see the requested design: Design from Figma

Good luck! ๐Ÿ’ช

Notes

  • On Click More wasn't implemented but it would mean navigating to another fragment using a navigation graph
  • Has I commented on the sorting function I didn't fully understand the requirements so I decided to go with one of the 2 possibles approaches
  • The shipment item seems to have different rules on which image to show but since it wasn't specified I left the same one
  • The layout with date information ( that I called pickup layout) can have different information maybe depending on the status but since there wasn't any specific information in this readme I followed the rule that is shown only if pickUpDate is not null
  • The shipment archiving feature can be triggered by clicking on the currier icon.
  • Storing shipments locally was implemented but the UI date is coming from the API. I could have made it offline first and always return from the database using a flow but I wasn't sure if that was the expected behaviour. However we could have used flow and a networkboundresource(from google) or just listening to the database with a flow and fetching the data on a different thread.

inpost's People

Contributors

carvalho2707 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.