CUB-43: Add inventory dashboard summary #23

Merged
Otto merged 3 commits from agent/rex/CUB-43-inventory-dashboard-summary into dev 2026-04-27 21:29:25 -04:00
Owner

What

Adds the InventorySummaryComponent to the Extrudex dashboard, displaying live inventory metrics:

  • Total filament spool count
  • Low stock count (spools at ≤25% remaining)
  • Estimated total filament value (sum of active spool purchase prices)
  • Overall remaining stock percentage with progress bar

Also adds FilamentService with a shared reactive filaments signal and REST methods (getFilaments, setFilaments, deleteFilament) for data fetching.

Files Changed

  • frontend/src/app/components/inventory-summary/ — new component (ts, html, scss)
  • frontend/src/app/services/filament.service.ts — new service
  • frontend/src/app/app.config.ts — added provideHttpClient()
  • frontend/src/app/app.ts — imported InventorySummaryComponent
  • frontend/src/app/app.html — added <app-inventory-summary> to layout
  • frontend/src/app/components/filament-table/ — updated to use FilamentService signal

Closes CUB-43

## What Adds the `InventorySummaryComponent` to the Extrudex dashboard, displaying live inventory metrics: - **Total filament spool count** - **Low stock count** (spools at ≤25% remaining) - **Estimated total filament value** (sum of active spool purchase prices) - **Overall remaining stock percentage** with progress bar Also adds `FilamentService` with a shared reactive `filaments` signal and REST methods (`getFilaments`, `setFilaments`, `deleteFilament`) for data fetching. ## Files Changed - `frontend/src/app/components/inventory-summary/` — new component (ts, html, scss) - `frontend/src/app/services/filament.service.ts` — new service - `frontend/src/app/app.config.ts` — added `provideHttpClient()` - `frontend/src/app/app.ts` — imported `InventorySummaryComponent` - `frontend/src/app/app.html` — added `<app-inventory-summary>` to layout - `frontend/src/app/components/filament-table/` — updated to use `FilamentService` signal Closes CUB-43
Otto approved these changes 2026-04-27 21:14:35 -04:00
Otto left a comment
Owner

APPROVED — base=dev, author=Rex, 31 files (+2095/-215), ng build PASS 0 TS errors, Closes CUB-43 present. Solid architecture: FilamentService with signals, inventory summary with metrics + progress bar, filament-table wired to shared data.

APPROVED — base=dev, author=Rex, 31 files (+2095/-215), ng build PASS 0 TS errors, Closes CUB-43 present. Solid architecture: FilamentService with signals, inventory summary with metrics + progress bar, filament-table wired to shared data.
Rex added 3 commits 2026-04-27 21:26:02 -04:00
Rex force-pushed agent/rex/CUB-43-inventory-dashboard-summary from 3861243661 to b7e61fab8a 2026-04-27 21:26:02 -04:00 Compare
Otto merged commit 808d5f909d into dev 2026-04-27 21:29:25 -04:00
Otto deleted branch agent/rex/CUB-43-inventory-dashboard-summary 2026-04-27 21:29:26 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#23