diff --git a/src/features/dashboard/dashboard-page.js b/src/features/dashboard/dashboard-page.js index 11e6282..87a60f9 100644 --- a/src/features/dashboard/dashboard-page.js +++ b/src/features/dashboard/dashboard-page.js @@ -1,7 +1,10 @@ import { fetchLocations } from '../../api/locations.js'; -import { getStockEntry, listKitchenChanges } from '../../api/stock.js'; +import { getStockEntry, listKitchenChanges, listStockEvents } from '../../api/stock.js'; import { createAsyncState, runAsyncState } from '../shared/ui-state.js'; +const RECENT_CHANGE_FETCH_LIMIT = 200; +const RECENT_CHANGE_DISPLAY_LIMIT = 50; + export function renderDashboardPage() { return `
@@ -93,8 +96,7 @@ export function renderDashboardPage() {

Recent changes

-

Latest item and stock updates from the kitchen change feed.

-

Saved means the backend created or updated a record.

+

Latest item and stock updates, including used and inactive stock.