Guide
Full Flux guide with the original sections, updated for the current Next.js + Flask + PostgreSQL architecture.
Flux Resell Tracker
Your operating manual for orders, parcels, inventory, sales, parser training, and admin recovery.
This guide keeps the structure of the original Flask page: a sticky contents nav, detailed member sections, and admin notes. The facts have been updated for the current stack: Next.js frontend pages, Flask-owned backend actions, PostgreSQL production, split IMAP ingest/parse queues, source-owned parser seeds, Product Matching, and approval-gated 90-day scans.
Frontend
Next.js renders migrated app pages; Flask pages remain for rollback and admin parity.
Backend
Flask, SQLAlchemy, workers, parsers, auth, and mutations stay canonical.
IMAP ingest saves messages; parser workers process saved email IDs.
Getting Started
Flux tracks the path from buying stock to receiving parcels, adding inventory, logging sales, and reviewing profit. Discord remains the login and role gate. Flask owns auth, data, mutations, workers, and scheduled jobs; Next.js renders the member UI pages.
Dashboard
The Dashboard is the quick operating view. It keeps the same layout as the original page: timeframe controls, KPI cards, Operations Watch, Delivery Watch, Order Watch, charts, and breakdown cards.
Inventory
Inventory is your manually controlled stock list. It can be created manually, imported from CSV or Google Sheets, synced from eBay sales workflows, or created by promoting an order.
Sales
Sales History records sold items, sale prices, fees, shipping costs, profit, platform, and dates. It feeds Dashboard and Analytics metrics.
Order Tracking
Order and shipping tracking are split deliberately. Orders describe what was bought; Shipments describe parcel movement. This keeps split parcels and multiple carrier updates clean.
Analytics
Analytics is the deeper reporting view for trends, platform breakdowns, margin quality, and weekly comparison.
eBay Integration
eBay uses the REST Sell Fulfillment API with OAuth tokens stored encrypted by Flask. Next.js pages only start or display eBay actions; the backend owns token refresh and sync.
Email Sync (IMAP)
Email sync uses the newer split queue. IMAP ingest fetches and saves messages; email parse workers consume saved email IDs and run the data-driven parser engine.
Discord Notifications
Discord webhooks are configured from Settings and can alert on shipping, delivered, account issues, and system problems.
Importing Data
Flux supports CSV and Google Sheets imports for inventory and sales, plus email account import/export for operational setup.
Tips & Tricks
A few habits keep Flux clean and fast while parser coverage grows.
FAQ
Common questions from the original guide, updated for the current architecture.
Admin Guide
Admin pages are intentionally more conservative. Parser and control-centre workflows stay Flask-owned until each one has a proper parity pass.
Admin Panel
The Admin Console remains Flask/Jinja in this pass. It is the control centre for members, impersonation, Email Detection, maintenance mode, site updates, AI settings, and app configuration.
Parser Workspace
Parser Workspace is the admin tool for data-driven email extraction. Built-in seeds live in source-owned Python modules, but runtime parsing uses database definitions.
Email Detection
Email Detection is the admin home for samples, parser definitions, unmatched emails, member submissions, and parser diagnostics.