Skip to content

[FE-72] Build the locations management page #1171

Description

@yusuftomilola

Overview

Location-based ownership is a core README capability, but there is no locations page — assets cannot be organized by physical place from the UI.

Tasks

  • Create app/(dashboard)/locations/page.tsx with a tree view (building → floor → room).
  • Support create, edit, delete, and moving a location within the hierarchy.
  • Show asset counts per location and link through to a filtered asset list.
  • Block deletion where assets are still located there, explaining why.
  • Consider @dnd-kit (already installed) for drag-to-reparent.
  • Handle deep hierarchies without breaking layout on mobile.

Acceptance Criteria

  • The location tree renders and supports full CRUD.
  • Asset counts are accurate and link to filtered results.
  • Unsafe deletion is refused with a clear message.

Dependencies

Backend from [BE-84].

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions