diff --git a/backend/src/docs/frontend-assets.json b/backend/src/docs/frontend-assets.json
index 9bc0816e..13904854 100644
--- a/backend/src/docs/frontend-assets.json
+++ b/backend/src/docs/frontend-assets.json
@@ -118,6 +118,7 @@
"src/surfaces/finance/bookkeeping-views.js",
"src/surfaces/finance/bookkeeping.js",
"src/surfaces/finance/index.js",
+ "src/surfaces/finance/inventory.js",
"src/surfaces/finance/invoices.js",
"src/surfaces/finance/overview.js",
"src/surfaces/finance/shared.js",
diff --git a/frontend/index.html b/frontend/index.html
index 3097fc41..6f26fbca 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -76,7 +76,7 @@
Finance
Bookkeeping
- Inventory
+ Inventory
Knowledge
Operating Model
Process Docs
diff --git a/frontend/src/core/workspace.js b/frontend/src/core/workspace.js
index c44dbe56..51d27a0a 100644
--- a/frontend/src/core/workspace.js
+++ b/frontend/src/core/workspace.js
@@ -29,6 +29,7 @@ export const WORKSPACE_PATH_BY_VIEW = Object.freeze({
users: "/users",
finance: "/finance",
bookkeeping: "/bookkeeping",
+ inventory: "/invertory",
sponsors: "/sponsors/pipeline",
newsletter: "/newsletter",
calendar: "/calendar",
@@ -63,8 +64,8 @@ export const WORKSPACE_ROUTE_DEFINITIONS = Object.freeze({
tasksSection: "queue",
params: ["month", "q", "account", "dir", "category", "needs", "tx", "view", "agreement"],
},
- // The inventory page answers on its own bare path under Bookkeeping.
- "/invertory": { view: "bookkeeping", tasksSection: "queue", params: [] },
+ // Inventory is its own top-level surface; its address is the path.
+ "/invertory": { view: "inventory", tasksSection: "queue", params: [] },
// Bare /sponsors opens the default tab; every tab and record is a path.
// Directory tabs declare their filter/sort/page params so filter state
// survives navigation, refresh and back/forward through canonical URLs.
diff --git a/frontend/src/runtime/application-events.js b/frontend/src/runtime/application-events.js
index cdec586d..2f6619d5 100644
--- a/frontend/src/runtime/application-events.js
+++ b/frontend/src/runtime/application-events.js
@@ -49,11 +49,7 @@ export function bindApplicationEvents(context) {
button.dataset.workspaceTarget ||
button.dataset.workspaceView ||
"tasks",
- // A sub-view entry (Bookkeeping → Inventory) addresses its own
- // page, so it navigates by href instead of the parent view.
- path: button.dataset.bookkeepingView
- ? button.getAttribute("href")
- : "",
+ path: "",
},
}),
),
diff --git a/frontend/src/runtime/application.js b/frontend/src/runtime/application.js
index 4527aa3f..70f4f880 100644
--- a/frontend/src/runtime/application.js
+++ b/frontend/src/runtime/application.js
@@ -161,6 +161,7 @@ const {
getRenderAdminSurfaceView: () => renderAdminSurfaceView,
getRenderBookkeepingSurface: () => renderBookkeepingSurface,
getRenderFinanceOverviewSurface: () => renderFinanceOverviewSurface,
+ getRenderInventorySurface: () => renderInventorySurface,
getRenderCalendarSurface: () => renderCalendarSurface,
getRenderDocsSurface: () => renderDocsSurface,
getRenderInboxSurface: () => inboxSurface?.renderInbox || (() => undefined),
@@ -204,6 +205,7 @@ const {
canLeaveFinanceSurface,
renderBookkeepingSurface,
renderFinanceOverviewSurface,
+ renderInventorySurface,
renderSponsorCrmSurface,
} = createFinanceSurface({
documentList,
diff --git a/frontend/src/runtime/surface-composition.js b/frontend/src/runtime/surface-composition.js
index 861a2b45..3258ddc1 100644
--- a/frontend/src/runtime/surface-composition.js
+++ b/frontend/src/runtime/surface-composition.js
@@ -120,6 +120,7 @@ export function createSurfaceComposition(context) {
getRenderAdminSurfaceView,
getRenderBookkeepingSurface,
getRenderFinanceOverviewSurface,
+ getRenderInventorySurface,
getRenderCalendarSurface,
getRenderDocsSurface,
getRenderInboxSurface,
@@ -161,6 +162,7 @@ export function createSurfaceComposition(context) {
if (view === "admin") return getRenderAdminSurfaceView()(documents);
if (view === "users") return context.getRenderUsersSurfaceView()();
if (view === "bookkeeping") return getRenderBookkeepingSurface()();
+ if (view === "inventory") return getRenderInventorySurface()();
if (view === "finance") return getRenderFinanceOverviewSurface()();
if (view === "sponsors") return getRenderSponsorCrmSurface()();
if (view === "newsletter") return getRenderNewsletterSurface()();
@@ -285,10 +287,6 @@ export function createSurfaceComposition(context) {
body.dataset.workspaceView = activeView;
searchInput.placeholder = "Search work and docs";
for (const button of workspaceNavButtons) {
- // Sub-view entries (Bookkeeping → Inventory) follow the surface's own
- // ?view= state, which changes without a route commit; renderView owns
- // them, the generic pass would wrongly light them on every page.
- if (button.dataset.bookkeepingView) continue;
const active = button.dataset.workspaceView === activeView;
button.classList.toggle("is-active", active);
if (active) button.setAttribute("aria-current", "page");
diff --git a/frontend/src/shell/startup-orchestration.js b/frontend/src/shell/startup-orchestration.js
index 1573328e..2f148f2f 100644
--- a/frontend/src/shell/startup-orchestration.js
+++ b/frontend/src/shell/startup-orchestration.js
@@ -19,7 +19,7 @@
// deferred at bootstrap and shielded from snapshot repaints together, so the
// two can never drift apart.
export const SELF_LOADING_VIEWS = Object.freeze(
- new Set(["bookkeeping", "calendar", "finance", "inbox", "newsletter", "podcast", "sponsors", "users"]),
+ new Set(["bookkeeping", "calendar", "finance", "inbox", "inventory", "newsletter", "podcast", "sponsors", "users"]),
);
// Whether committing this route needs none of the shared snapshots yet. An
diff --git a/frontend/src/surfaces/finance/bookkeeping-ledger.js b/frontend/src/surfaces/finance/bookkeeping-ledger.js
index 91b8b0c1..1f85db86 100644
--- a/frontend/src/surfaces/finance/bookkeeping-ledger.js
+++ b/frontend/src/surfaces/finance/bookkeeping-ledger.js
@@ -10,7 +10,7 @@ import { bookkeepingVendorPresentation } from "./bookkeeping-vendors.js";
// Query parameters the bookkeeping route keeps in the URL.
export const LEDGER_PARAMS = ["month", "q", "account", "dir", "category", "needs", "tx", "view"];
-export const SECONDARY_VIEWS = ["files", "package", "invoices", "tuition", "inventory"];
+export const SECONDARY_VIEWS = ["files", "package", "invoices", "tuition"];
// The classification columns: "Type" is stored as `subtype`, "Category" as
// `category`. The spreadsheet's Period column is not shown in the table: it
diff --git a/frontend/src/surfaces/finance/bookkeeping-markup.js b/frontend/src/surfaces/finance/bookkeeping-markup.js
index 4636f018..64f70f25 100644
--- a/frontend/src/surfaces/finance/bookkeeping-markup.js
+++ b/frontend/src/surfaces/finance/bookkeeping-markup.js
@@ -1,10 +1,9 @@
import "../../dakit/collection.js";
// Static shell for the bookkeeping surface. The page is the transaction
// list: header with the month navigator and actions, one filter row, the
-// table with its detail pane. Inventory is its own page at /invertory
-// reached from the sidebar; files, the accountant package/VAT, tuition
+// table with its detail pane. Files, the accountant package/VAT, tuition
// and forwarded invoices are secondary views (?view=…) reached from the
-// ⋯ menu.
+// ⋯ menu. Inventory is a separate surface at /invertory.
import { financeSectionHead, html } from "./shared.js";
import { periodNavMarkup } from "../period-nav.js";
@@ -148,18 +147,8 @@ export function bookkeepingSurfaceMarkup() {
${backLink}
-
- ${backLink}
- ${financeSectionHead({
- id: "bookkeeping-inventory-heading",
- title: "Inventory",
- hint: "Physical purchases from the ledger since 2022 — computers, phones, audio, furniture. Scan the ledger after new expenses land.",
- actions: html``,
- })}
- Loading inventory…
-