Skip to content

[Super Admin/ Locations] implement "Locations" section #10

@teodoranegru

Description

@teodoranegru

User Story

As a Super Admin user, I want to be able to manage the list of locations from the territory of the intervention.

Description

A location is a territorial division within a specific country, such as a city, region, or other administrative unit. The location management system will function as a flexible tagging system. The Super Admin will create the initial list of locations from scratch when setting up a new intervention and deploying the system. However, since it is not feasible to generate a fully exhaustive list in advance, other users interacting with the Location field will have the ability to add new locations to the list.

Main flows

Add location

  1. Super Admin user navigates to the "Locations" section
  2. User clicks on "Add location" button
  3. System retrieves the "Add location" modal screen (link to design)
  4. User fills in the ID and Name of the location and clicks on "Add location" button
  5. System saves the new location in DB, redirects the user to the "Locations" page, and displays the success message.

Edit location

  1. Super Admin user navigates to the "Locations" section
  2. User clicks on the kebab menu
  3. System displays the dropdown menu (link o design)
  4. User clicks on the "Edit location" button
  5. System retrieves the "Edit location" modal screen
  6. User edits the location and clicks on the "Save changes" button
  7. System saves the changes, redirects the user to the "Locations" page, and displays the success message.

Merge location into
TBD

Delete location
N.B. Once a location is associated with an entry it cannot be deleted

  1. Super Admin user navigates to the "Locations" section
  2. User clicks on the kebab menu
  3. System displays the dropdown menu (link o design)
  4. User clicks on the "Delete location" button
  5. System retrieves the "Delete location" modal confirmation screen (link to design)
  6. User clicks on the "Delete location" button
  7. System deletes the location from db, redirects the user to the "Locations" page, and displays the success message.

Business rules:

  1. Once a location is associated with an entry it cannot be deleted (the delete button will be disabled).
  2. The locations list should be translatable from the Super Admin panel.
  3. Display in the "All locations" table the following information:
  • ID (auto-generated)
  • Location name
  • Usage (no of times that location was associated with an entry)

Figma

https://www.figma.com/design/yxJgmSGcAon2LbzGiHA1sG/OneRoof-(UnAcoperis-redesign)?node-id=4190-41991&t=8kRL2NdwVqMTTyNq-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions