Investment Timeline
A portfolio timeline view from investment to payback
- Responsibilities: planning, design, frontend and backend development
This feature is part of an internal investment platform that I maintain. Client data in the screenshots is covered or not real.
The problem
The values that describe an investor's portfolio were scattered. Some were only in the admin, some only in the client frontend, and some weren't available anywhere. Nobody could see an investor's full progression in one place.
What I built
A timeline in the admin dashboard for each investor. It runs from the initial investment to payback, with the company's project milestones pinned along it and a marker showing where the investor stands now. Investments on the platform are held in crypto coins, and the coin's rate drives the marker's position on the timeline.
Admins can also:
- Switch between coin types to see the timeline for each.
- Toggle pins to highlight specific points when showing the timeline to a client.
- Use manual mode to set up a custom situation without selecting a client.
- Share a snapshot: the admin emails an image of the timeline's current state to a specific client. This covers the gap until the timeline is added to the client frontend.
Reusable components
The timeline, the pin cards, and the other parts are generic components that can display any kind of information. Everything specific to investments lives in a wrapper component around them, so the same parts can be used for other timelines later.
The timeline also handles overflow: if the "where are we now" marker falls before the first pin or after the last one, it still displays correctly.
Refactoring the portfolio calculation
The platform's portfolio calculation is checkpoint based. It takes the last saved state, applies everything that happened since, and saves the result as the new checkpoint. This ran as a single process, and the timeline only needs parts of it. I split the core calculation into functions with a single responsibility each, so the timeline can call just what it needs, and each function can be unit and feature tested.
Design
I separated the content into pill and card shapes, and gave each coin its own color, so users see at once which context they are in.
The page is responsive down to mobile, and it animates between states without any content shifting. As an admin dashboard that clients may also see, it shows everything that can fit on screen without becoming crowded.
The rest of the admin panel can build on this design.
Result
Admins now see the full progression of every investor's portfolio in one view, and can send it to the client as an image.