Codehagen/propdock

Feature: Create Tenant Page Dashboard

Codehagen opened this issue · 0 comments

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

  1. 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
  2. Filters

    • Status Dropdown:
      • Options: Leietaker, utgÃ¥ende leietaker, ikke aktiv leietaker
    • Created At:
      • Date picker to filter tenants based on creation date
  3. 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.

Example Layout

Screenshot 2024-06-20@2x