XMLWordPrintable

Details

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: High High
    • 2.0.0
    • None
    • Platform > Hybrid UI
    • None

    Description

      Design

      Please refer to:

      • attached screenshots

      User interface / User interactions

      IMPORTANT

      In v1, the default value of the MapLocation field is 0,0 (latitude, longitude) which is a location on the map. The default value should be empty.

      Default view

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I view the map
      Then the zoom level is equal to 1
      And there is no point (google maps marker)
      

      Editor defines latitude and longitude

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I enter a valid latitude and longitude in the dedicated fields
      Then the zoom level is equal to 13
      And a point (google maps marker) is added to the map
      

      Editor uses search feature

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I enter a valid address (13 rue Gilibert)
      Then the zoom level is equal to 13
      And a point (google maps marker) is added to the map
      And the Longitude field contains {{4.823455}}
      And the Latitude fields contains {{45.747445}}
      

      Editor uses locate me feature

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I click on {{Locate me}} button
      Then the zoom level is equal to 13
      And a point (google maps marker) is added to the map
      And the Longitude field is updated
      And the Latitude fields is updated
      

      Editor clicks on the map

      Given I am logged into the eZ application
      And I am editing a content item which has a MapLocation field
      When I click on the map
      Then a point (google maps marker) is added to the map
      And the Longitude field is updated
      And the Latitude fields is updated
      

      Validations

      The UI should validate the following scenarios

      • Required field and
      • Find location

      The validations will be as it is on v1 when the field loses focus.

      Error Message
      Required field %field_name% field is required
      Find location error Unable to find this address


      Open Question:

      If the user is able to type Latitude and Longitude, is it possible to add an error message is the value is not between -90 and +90?
      (ref: https://github.com/ezsystems/hybrid-platform-ui/pull/65/files#diff-46b5c70bde48cbbdc0324e8043b3be5cR562)

      Non-translatable field.

      The field is disabled when this field is not translatable.

      Warning message Translation for %field_name% is disabled

      Attachments

        Activity

          People

            Unassigned Unassigned
            sylvain.guittard@ibexa.co Sylvain Guittard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: