leviroiz.dev Back to the album
PT

Track 04 · Study and prototypePython and FastAPI prototype

Consignment

The prototype was ready to grow. The best decision was to adapt an existing tool.

Compare the two views

0 new systemsthe prototype changed the product decision

Public consignment demo showing customers, outstanding units and amounts, and batches with remaining stock.
Prototype dashboard · synthetic data

The story

Consignment records were scattered across customers, sales reps and batches. It was hard to see who still had an outstanding balance and where to follow up.

I started a Python and FastAPI prototype to make the problem visible by showing sent, sold, returned and outstanding stock together.

During the analysis, I found an internal tool that already covered much of the workflow. Building a new system would duplicate that work. I took the alternative to the tool's owner and management. We decided to use the existing solution.

Who still has an outstanding balance?

Compare two views of the same records. The consolidated view brings the highest outstanding balances to the top.

CustomerOutstandingOutstanding valueSentSoldReturned
Store C16R$ 7202554
Store A12R$ 54040226
Store B0settled30300

Scroll the table to see units sent, sold and returned.

The eight records and amounts used in this comparison are synthetic.

Build a new system

The obvious route was to build on the prototype.

Adapt the existing tool

We chose to adapt the internal tool using what the prototype revealed about the workflow and its requirements.

Under the hoodconstraints, steps and details

What the interface had to handle

  • Sent, sold, returned and outstanding stock need to be read together.
  • Administrators can see all sales reps. Each rep sees only their own accounts.
  • Totals are recalculated from the visible records so the summary always respects the filter.
  • Loading, no outstanding stock, no matches and errors all need their own interface states.

The process

  1. Problem: scattered records.
  2. Analysis: how the workflow actually runs.
  3. Requirements: what people need to see.
  4. Rules: outstanding = sent − sold − returned.
  5. Prototype: make the problem visible.
  6. Validation: compare with the existing tool.
  7. Product decision: adapt the internal tool.

The prototype started as a full-stack application with Python, FastAPI, Jinja2, SQLite, authentication and sessions. ERP integration was explored. The public demo is static HTML, CSS and JavaScript, deployed to GitHub Pages through CI.

Next trackHR onboarding