Skip to content

Inaccurate removal and update of facility latitude/longitude #255

@Adameddy26

Description

@Adameddy26

Cases

Case 1 - Removal Inconsistency
When a user attempts to remove a generated latitude/longitude by clearing the input fields, a toast message displays success, but the values persist. This only occurs for generated coordinates; manually entered values can be removed successfully.

Case 2 - Zero Input Handling
Entering "0" (zero) in both latitude and longitude fields and saving doesn't update the facility details page. However, reopening the edit modal and saving again with "0" in both fields allows the update. This behavior needs correction for a consistent user experience.

Case 3 - Editing Restriction
Users cannot edit existing latitude/longitude values by typing and saving changes within the input fields. This results in an error message.

Expected Behavior

Case 1: Users should be able to remove previously generated latitude/longitude coordinates by clearing the input fields and saving. The toast message should accurately reflect this action.
Case 2&3: The system should prevent saving invalid coordinates like "0" or any other character(except '.' and '-') for both latitude and longitude. Ideally, an error message should prompt the user in this case.

Steps to Reproduce

Login the app with valid user credentials.
On the find facilities page, open the facility details of any facility.

Case 1. Unable to Remove Generated Latitude/Longitude

  • Attempt to remove the generated latitude/longitude.
  • Note that the toast message indicates successful removal, but the values remain unchanged.

Case 2. Handling '0' Inputs in Latitude/Longitude Fields

  • Enter '0' in both the latitude and longitude input fields.
  • Save the changes and observe the latitude/longitude section on the details page not updating.
  • Reopen the modal and attempt to save.
  • Now again type the same values for both the fields i.e. 0 and try to save the changes.

Case 3. Error When Editing Field Values

  • Try to edit and save characters inside longitude and latitude field values.
  • Note the error message preventing successful updates.

Environment details

App environment : UAT
App version : v1.7.0

Additional information

https://jam.dev/c/66947943-b96d-46a0-bbce-c3f0a285b42a

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

🛑 On hold

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions