The dashboard is at /ar/dashboard and /en/dashboard. Everyone signs in with an email and password; sessions last 12 hours and are checked against the database on every request, so a switched-off account or a role change applies at once.
Overview
Worked out from your orders, with no tracking script:
- Revenue this month with the change against last month, orders this month with the average order, shoppers this month (different phone numbers that ordered: the store's honest "visitors" figure) and the completion rate (delivered out of all closed orders over six months). Cancelled and refunded orders never count as revenue.
- Sales, last 30 days: one bar per day; point at a bar for its total and number of orders.
- Monthly goal: a ring showing revenue against the goal set in Settings, and what is left.
- New customers per month: first orders and new accounts for six months.
- Sales by governorate for six months.
- Latest orders and the variants running low.
Orders
A list with search (code, name, phone, email), status filters and pages. Each order has its items, totals, customer, address, payment and a timeline of every change with who made it and an optional note.
The status flow:
NEW ──► CONFIRMED ──► PACKED ──► SHIPPED ──► DELIVERED
│ │ │ │
└──────────┴────────────┴──► CANCELLED └──► REFUNDED (a return)
- A card order goes NEW → PAID by itself when Thawani confirms the payment; until then staff can only cancel it.
- Before shipping, an unpaid order is cancelled and a paid one is refunded.
- Cancelling or refunding puts the items back in stock; cancelling also gives the coupon use back.
- DELIVERED marks a cash order as paid.
- Steps cannot be skipped, and CANCELLED and REFUNDED are final. The rules are in
src/lib/rules.tswith unit tests.
Products
The list shows each product's photo, department, price, total stock and variants. The star and the checkbox change team pick and visible at once (a quick edit that changes only that field).
The product form has:
- names and descriptions in Arabic and English side by side, with Write with AI (AI features);
- price and an optional was price (the product then appears in Sale);
- department, curated edits, visible, team pick and display order;
- images: upload JPEG, PNG, WebP, AVIF or GIF up to 5 MB (checked by their content, not their name), choose the cover, remove;
- variants: one row per size and colour with SKU, colour swatch, optional own price and stock. Generate rows builds the grid from a list of sizes and colours and keeps the stock of rows that already exist.
Categories and edits
Departments (the store's main sections) and curated edits (hand-picked groups shown on the home page). Both have names and descriptions in two languages, an image, an order, and a visible switch; edits also have "on the home page". A department that still has products cannot be deleted.
Coupons
Percentage (1 to 100) or fixed amount, minimum order, optional end date (valid until the end of that day in Oman), optional usage limit, on/off. The list shows how many times each code was used against its limit. Uses are counted when an order is placed and given back when the order is cancelled.
Customers
Shoppers with an account and guests, grouped by phone number, with their number of orders, total spent and last order. The Messages tab lists what was sent from the contact page; mark each one handled when you have replied.
AI assistant
A chat about your store's data and three insights that work without AI: best sellers, revenue by department, and products in stock that have not sold in 90 days. See AI features.
Admins and roles
| Role | By default can open |
|---|---|
| Owner | Everything, always, including Admin roles |
| Admin | Orders, products, categories and edits, coupons, customers, AI assistant, settings |
| Staff | Orders, products, customers |
On Admin roles the owner ticks what admins and staff may open (eight permissions, one per section; the overview is open to everyone). The API checks the same permissions, so hiding a menu item is not the only protection.
On Admins you add accounts (password of 10+ characters), change roles, switch accounts off and set new passwords. Safety rules on the server: only an owner can create, change or remove an owner; you cannot switch off, demote or delete yourself; at least one active owner always remains.
Settings
Store names, taglines and the announcement bar in both languages; contact details; currency, decimals, VAT %, low-stock level and the monthly goal; shipping methods (code, names, delivery time, fee, free-over threshold, governorates served); cash on delivery and card switches; and taking orders, which pauses checkout for stock-taking or holidays.