Feature: Create Tenant Page Dashboard
Codehagen opened this issue · 0 comments
Codehagen commented
Feature: Create Tenant Page
Type of feature
💡 Feature
Current behavior
There is currently no dedicated tenant page available for users to manage tenants.
Suggested solution
Create a tenant page at https://www.propdock.no/tenant
. The tenant page should have a table similar to the one on the property page at https://www.propdock.no/property
.
Tenant Page Specifications
-
Table Structure
- Columns: Tenant Name, Status, Created At, Actions
- The table should display a list of tenants with the following information:
- Tenant Name: Name of the tenant
- Status: Status of the tenant (Leietaker, utgående leietaker, ikke aktiv leietaker)
- Created At: Date when the tenant was created
- Actions: A column with a ... (ellipsis) box for actions such as delete
-
Filters
- Status Dropdown:
- Options: Leietaker, utgående leietaker, ikke aktiv leietaker
- Created At:
- Date picker to filter tenants based on creation date
- Status Dropdown:
-
Server Action
- Implement a server-side action to allow users to delete a tenant.
- The delete action should be accessible through the ... (ellipsis) box in the Actions column.
We should integrate this straight to the DB. Its possible that we need to update fields in the Prisma Schema to make this work.