Analytics, finance, and commerce dashboards
These dashboard pages give users a view of business activity from several angles. Analytics explains traffic and visitor behavior. The default dashboard combines revenue and customer signals. Ecommerce follows store health and orders. Finance follows money and accounts. Invoice turns billing details into a reviewable document that can be saved, sent, printed, or downloaded.
Dashboard scope
The pages are part of the wider dashboard experiences group. Each page uses a different business question as its starting point instead of trying to combine all metrics into one screen.
Dashboard roles
The pages form a small set of related views:
| Page | Main question | Main evidence |
|---|---|---|
| Analytics | How are people finding and using the product? | Visitor, session, page, engagement, and conversion measures |
| Default | What is the broad business and customer position? | Revenue, account, growth, customer, and subscriber measures |
| Ecommerce | How is the store performing? | Sales, orders, products, stock, reviews, and channel traffic |
| Finance | What is the current money position and what needs attention? | Worth, cash, spending, income, balances, and upcoming payments |
| Invoice | What should a client be billed for and what should the client receive? | Client details, dates, line items, tax, discount, and total |
These views complement the operations and work management dashboards and the people and customer management dashboards. The content and communication views and specialized monitoring dashboards cover other work areas.
References: src/…/page.tsx• L15-24 src/…/page.tsx• L7-14 src/…/page.tsx• L17-24 src/…/page.tsx• L17-24 src/…/page.tsx• L8-15
Analytics dashboard
The analytics dashboard is a traffic and behavior view. It starts with a summary of key performance indicators (KPIs) and then links visitor volume to page quality and acquisition sources.
Analytics measures
The overview tracks five top-level measures:
- Unique visitors
- Sessions
- Pageviews
- Engagement rate
- Conversion rate
Each measure shows a current value, a change, and a comparison with the last four weeks. The traffic quality chart compares actual quality with a baseline. The realtime view shows visitors per minute and a country split for the United States, United Kingdom, Canada, and India. Together, these views help an engineer or operator move from a broad result to a current signal.
References: src/…/page.tsx• L47-57 src/…/analytics-kpi-strip.tsx• L6-139 src/…/traffic-quality.tsx• L120-178 src/…/realtime-visitors.tsx• L91-147
Analytics sources
The page groups acquisition evidence into sources, campaigns, and referrers. Page performance adds views, average time, and bounce rate for important paths. The range control offers seven-day, four-week, three-month, and year-to-date views. The action menu presents report export, data import, dashboard sharing, and metric refresh.
This diagram shows how the analytics view moves from traffic totals to behavior and acquisition context.
flowchart LR
A[Traffic and visitor totals] --> B[Traffic quality]
A --> C[Realtime visitors]
B --> D[Page performance]
C --> E[Sources, campaigns, and referrers]
D --> F[Engagement and conversion review]
E --> F
The Audience, Acquisition, Engagement, and Conversions tabs are present as planned areas. Their current content is a coming-soon state rather than a detailed report.
References: src/…/page.tsx• L34-45 src/…/page.tsx• L59-91 src/…/analytics-toolbar.tsx• L15-63 src/…/top-pages.tsx• L14-47 src/…/top-traffic-sources.tsx• L90-127
Default dashboard
The default dashboard is a general business snapshot. It puts headline metrics first, follows them with a customer activity trend, and ends with recent customer records.
Business snapshot
The metric area presents total revenue, new customers, active accounts, and growth rate. Each card pairs a value with a direction or short interpretation. This makes the page useful as a first stop when the user needs a broad signal before opening a more focused dashboard.
References: src/…/page.tsx• L16-22 src/…/metric-cards.tsx• L6-92
Customer activity
The activity chart compares new customers, active accounts, and returning users over the last three months. Users can choose the period or segment shown and can open a fuller report. The recent customer area then supports search, status and billing filters, joined-date filters, and name or date sorting. Its rows show the customer, status, billing state, plan, and joined date, with selection and paging for larger result sets. An export action supports taking that customer view elsewhere.
References: src/…/performance-overview.tsx• L232-337 src/…/table.tsx• L40-82 src/…/table.tsx• L103-118 src/…/table.tsx• L232-343 src/…/columns.tsx• L28-143 src/…/subscriber-overview.tsx• L14-31 src/…/data.json• L1-10
Ecommerce dashboard
The ecommerce dashboard is a store overview. It connects sales results with traffic, product mix, stock readiness, customer feedback, and recent orders so a store owner can see both demand and fulfillment signals.
Store performance
The KPI area combines sales and operational measures: total sales, total orders, customer growth, average order, return requests, and stock accuracy. Its sales overview compares revenue and profit across rolling date buckets. The page also supports a period choice and a channel choice for the store view.
Store traffic shows visits across the last day and marks anomalies. Traffic sources show visits and share for channels such as Meta, Google, Shopify, TikTok, and eBay. These charts connect a change in sales to the amount and source of store demand.
References: src/…/page.tsx• L26-73 src/…/kpi-strip.tsx• L88-300 src/…/store-traffic.tsx• L144-216 src/…/traffic-sources.tsx• L159-223
Commerce operations
The lower cards explain what sells and whether the store can fulfill demand. Top products ranks products by share and sales. Inventory separates units into in-stock, low-stock, and out-of-stock groups. Reviews show an average rating and a recent customer comment. Recent orders combines payment and fulfillment states with customer, item, total, and date details. It also provides status filters, date sorting, selection, paging, order actions, and an empty result state.
The relationship is deliberate: product and review signals describe demand, while inventory and order records show the work needed after a sale. The product catalog dashboard gives the related product-management view.
References: src/…/page.tsx• L75-95 src/…/top-products.tsx• L45-104 src/…/inventory.tsx• L71-140 src/…/customer-reviews.tsx• L9-70 src/…/recent-orders.tsx• L33-220 src/…/columns.tsx• L88-209
Finance dashboard
The finance dashboard is a personal money view. It places financial position, income, spending, account allocation, assets, future payments, and transfer actions in one dashboard tab. The page also exposes settings and export controls with a recent-update indicator.
Financial position
The overview measures net worth, available cash, monthly spend, and savings rate. Income sources break income into salary, freelance work, and dividends or interest. Spending Overview compares expense and income over time. Account Allocation shows how the balance is split across the main wallet, savings, investment, and reserve accounts, with a currency choice for the displayed values.
References: src/…/page.tsx• L26-79 src/…/overview-kpis.tsx• L4-63 src/…/income-breakdown.tsx• L4-55 src/…/transactions-overview-card.tsx• L74-148 src/…/balance-distribution-card.tsx• L94-180
Money movement
Wallet lists linked bank cards and crypto assets with balances. Upcoming Bills & Payments calls out the amount due, bills due this month, an autopay amount, and named future subscriptions. Quick Transfer provides an amount entry and a send action. Shortcuts group common actions such as scanning a QR code, transferring money, paying bills, and viewing history.
The dashboard also surfaces a credit score update as a finance notification. The Accounts and Transactions tabs are present but currently show coming-soon states, while Dashboard is the available finance view.
References: src/…/wallet.tsx• L54-114 src/…/upcoming-transactions.tsx• L32-77 src/…/quick-actions.tsx• L37-93 src/…/finance-notification.tsx• L6-22 src/…/page.tsx• L36-57 src/…/page.tsx• L94-105
Invoice workflow
The invoice page supports a draft-to-document workflow. The user enters billing facts on one side and sees the same invoice rendered as a paper preview on the other side.
Invoice composition
The form groups invoice, payment, and business areas. The active invoice view captures a reference number and issue and due dates. The client selector chooses who receives the bill and offers a path to add a new client. Line items hold a description, unit count, and unit cost. Users can add, remove, and vertically reorder items. Each row shows its line total while the form is edited. Tax and discount controls adjust the amount due.
The invoice total follows a clear value chain:
- Add each line amount from units multiplied by unit cost.
- Sum the line amounts into the net amount.
- Apply a fixed or percentage discount.
- Apply the selected tax rate to the discounted amount.
- Show the balance due in the invoice.
References: src/…/page.tsx• L17-40 src/…/invoice-form.tsx• L9-33 src/…/invoice-details.tsx• L32-70 src/…/client-selector.tsx• L12-75 src/…/invoice-items.tsx• L15-73 src/…/invoice-items.tsx• L76-158 src/…/invoice-adjustments.tsx• L9-79 src/…/data.ts• L144-181
Invoice review and delivery
The preview reflects the current form values. It includes sender and client details, reference dates, payment account details, line items, tax and discount rows, and the final balance. The page provides Save as Draft and Send Invoice actions. The preview also provides Print and Download PDF actions for document output.
This diagram shows the intended relationship between entry, calculation, review, and delivery.
flowchart LR
A[Invoice details] --> B[Client and line items]
B --> C[Tax and discount]
C --> D[Calculated balance due]
D --> E[Invoice preview]
E --> F[Save draft or send]
E --> G[Print or download PDF]
References: src/…/page.tsx• L17-40 src/…/invoice.tsx• L9-21 src/…/invoice-preview.tsx• L19-75 src/…/invoice-paper.tsx• L16-140
Change checklist
When these files or sections are changed, remember to consider these:
- Keep dashboard metric labels, comparison periods, and chart legends aligned when a measure changes.
- Keep customer filters, visible columns, selection counts, and pagination state aligned when the customer record shape changes.
- Keep order filters, payment and fulfillment labels, order columns, selection counts, and pagination counts aligned when the order record shape changes.
- Keep invoice form fields, total calculations, preview rows, and print output aligned when billing rules change.
- Keep invoice client and tax choices aligned with the values accepted by the form and used by the preview.
- Trace export, refresh, transfer, save, send, print, and PDF actions across their visible controls before treating a new control as a complete workflow.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An analytics user selects Audience, Acquisition, Engagement, or Conversions | The page shows a coming-soon panel instead of that report | Treat these tabs as planned views until their content is added |
| A finance user selects Accounts or Transactions | The page shows a coming-soon panel instead of account or transaction detail | Keep the dashboard tab as the supported finance view |
| A filtered order set has no matching rows | The order table is empty and displays “No orders found.” | Preserve the filter reset path and the filtered count shown above the table |
| A customer search or filter has no matching rows | The customer table displays “No results.” and its paging context can become empty | Keep filter changes tied to the current page and retain a clear way to return to the full customer set |
| An invoice line has an invalid quantity or price | That line contributes zero to the amount instead of a usable charge | Validate numeric entry before draft or send behavior is connected |
| A user presses a visible invoice delivery action before its handler is wired | No draft, message, or PDF output is produced | Treat the action as incomplete until it has a connected delivery path |
Key files
| File | Why to read it |
|---|---|
| src/…/page.tsx | Shows the analytics page structure, tabs, toolbar, and overview flow. |
| src/…/page.tsx | Shows the order of the general business snapshot, activity, and customer views. |
| src/…/table.tsx | Shows customer search, filtering, sorting, selection, and paging. |
| src/…/page.tsx | Shows how store metrics, traffic, products, inventory, reviews, and orders form one view. |
| src/…/recent-orders.tsx | Shows the user-facing order filter, sort, selection, and paging flow. |
| src/…/page.tsx | Shows the finance dashboard areas and the currently available finance tab. |
| src/…/transactions-overview-card.tsx | Shows the income and expense comparison that anchors the finance view. |
| src/…/data.ts | Defines invoice facts and the rules that produce subtotal, discount, tax, and total. |
| src/…/invoice.tsx | Connects editable invoice values to the live preview. |
| src/…/invoice-paper.tsx | Shows the document information that the client sees and the print view uses. |