Examples

Roastery back office

Built with the mantine-theming skill

Set up a new React app in this folder with Vite, TypeScript and Mantine. It is the back office of Grindstone, a coffee roastery that sells beans wholesale to cafés.

Theme: use the Hearth preset from themes.mantine.dev, but with our brand color #7b3f20 (roasted brown) as the primary color.

Build the wholesale orders page, where the sales team plans the week together with the roasters.

Data, hard-coded and generated relative to today:

  • 8 coffees: name, origin, roast level, price per kg
  • 30 cafés: name, city, contact person, email
  • about 60 orders from the last 3 weeks and the coming week: order number, café, items (coffee, bag size of 250 g, 1 kg or 5 kg, quantity), status (new, roasting, packed, shipped, cancelled), ship date, notes, and the history of status changes with who made each change
  • today's roast plan: batches for the coffees in the open orders, each with a target weight, the weight roasted so far and the roaster assigned
  • a few notifications: new orders, a cancelled order, a batch finished

App shell:

  • a sidebar with Orders (showing the number of new orders), Roast schedule, Cafés, Green coffee and Settings, and a switch between our two roasteries (Leeds, Bristol) at the top
  • a header with search, a notifications button with the unread count that opens the list of notifications, a light/dark color scheme toggle and the user menu

Page:

  • a page header with the title, a short description, and "Export CSV" and "New order" buttons
  • four stat cards: open orders, kilograms to roast this week, orders shipping today, revenue this week; each shows the change from last week and a small trend line
  • tabs over the orders: All, To roast, Ready to ship, Shipped, Cancelled, each with its count
  • the orders table: search by café or order number, a filter by one or more cafés, a ship date range filter, sorting and pagination; the table shows what each order contains; selected orders can be marked as packed or have their labels printed in one go; each row has a menu with View, Duplicate and Cancel order, and cancelling asks for confirmation
  • clicking an order opens its details at the side of the page: café and contact, items with prices, the total, the status history as a timeline, notes, and the next step for its status (Start roasting, Mark as packed, Mark as shipped)
  • "New order" opens a form: café (searchable), ship date (not in the past, not on a Sunday), items as rows of coffee, bag size and quantity that can be added and removed, notes; the total weight and price update while the items change; required fields are validated; saving adds the order to the table and shows a notification
  • today's roast plan next to the orders: each batch with its coffee, roaster and progress towards the target weight, and a chart of the kilograms roasted per day this week
  • the page works on phones: the sidebar opens from a burger button and nothing scrolls the page sideways