Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-123802

As an App Admin, I want to define different labels for the same field in different Form Views of an Object

    Details

      Description

      As an App Admin, I want to define different labels for the same field in different Form Views of an Object

      Design Deliverables

      Mockups

      User Problem

      Given that one same object can be reused in several different Apps, it may also happen that each App will need a different Form View to collect or display the data of the Object. With that being said, users may also want to define more accurate labels for one same field depending on the App and Form View that is being used.

      Right now, the label is an Object-level property and changing the label of an field will impact all other Form Views that are also using it,

      Solution Proposed

      In this Story's scope, we aim to solve the problem by allowing the user to define a specific label for each Form View. To do this, we must include a new property, called "Form View Label", which will be a View-Level property.

      The Form View Label must always copy the same value of the field Label. However, the user must be able to edit the value of this field and when this happen, the Form View will now use the value of the "Form View Label" as the label for the Field in that Form View only.

      Acceptance Criteria

      1 - Given a Object with several fields and several Form Views,
      when a user opens one of the Form View and selects a field,
      then the user must be able to read and edit the label and the form view label in the right sidebar.

      2 - Given that a user successfully achieved the scenario described in the Acceptance Criteria 1,
      when a user edits the Label of the Field,
      then the Form View Label should copy and use the same value of the Label in that Form View.

      • The label must persist in the form view label until the form view label is edited for the first time, as it happens with translations.

      3 - Given that a user successfully achieved the scenario described in the Acceptance Criteria 2,
      when a user edits the Form View Label of the Field,
      then the value imputed by the user in the Form View Label should be used as the label of the field in that specific Form View only.

      • At the same time the user must be able to see the field label in the left side bar.

      4 - Given a table view,
      when displaying a field with form view label,
      then the system should display for that field the object field label.

      • This happens because the form view will display all the data from the object, not only from that specific form view.

      5 - Given a field with a form view label,
      when duplicating a field,
      then the system should also copy the form view label of the field.

      Definition of Done (DoD):

      • All Acceptance Criteria were passed;
      • Make sure that the expected automated tests were created (unit / integration / functional) and passed successfully;
      • Code with peer review completed;
      • Validated by QA, Product Designer and/or PM;
      • No critical bug related to Story scope (ex.: similar of FP4, FP5);
      • Make sure that all system documentation were updated (if necessary)
      • Make sure that it has the extensions points needed to allow GS and customers to customize the feature (If applicable)

        Attachments

          Issue Links

          1.
          [PM] Acceptance Criteria LPS-123803 Technical Task Closed Matheus Xavier (Inactive)  
          2.
          [DS] Mockups LPS-123804 Technical Task Closed Victor Santos  
          3.
          [QA] Review ACs and Draft TCs LPS-125583 Technical Testing Closed Guilherme Freire (Inactive)  
          4.
          [QA] Manual validation - Round 1 LPS-125584 Technical Testing Closed Guilherme Freire (Inactive)  
          5.
          [FE] Create Label component to override the Label from Forms LPS-125823 Technical Task Closed Adriano Interaminense  
          6.
          [FE] Update context when change the view and object level LPS-125824 Technical Task Closed Adriano Interaminense  
          7.
          [FE] Create unit test to check if the label are saved at view or object level LPS-125825 Technical Task Closed Mateus Domingos  
          8.
          [FE] Fix performance issue when updating the value in the label field LPS-127104 Technical Task Closed Keven Leone  
          9.
          [BE] Add condition to propagate or not the label property LPS-127303 Technical Task Closed Alejo Ceballos  
          10.
          [BE] Persist labelAtDefinitionLevel on Data Definition LPS-127806 Technical Task Closed Gabriel Albuquerque  
          11.
          [BE] Put labelAtDefinitionLevel property in field pages LPS-127987 Technical Task Closed Gabriel Albuquerque  
          12.
          [FE] Sync Form Label and Object in Deployed App LPS-128118 Technical Task Closed Keven Leone  
          13.
          [BE] Integration test to check Form Tamplate Context creation with `labelAtStructureLevel` property LPS-128148 Technical Task Closed Alejo Ceballos  
          14.
          [FE] Fix react warning on MultiPanelSidebarFormsProxy component LPS-128284 Technical Task Closed Adriano Interaminense  
          15.
          [FE] Update frontend logic to keep data at form view level LPS-128376 Technical Task Closed Adriano Interaminense  
          16.
          [PM] Review LPS-129253 Technical Task Closed Luiz Jardim  

            Activity

              People

              Assignee:
              guilherme.freire Guilherme Freire (Inactive)
              Reporter:
              matheus.xavier Matheus Xavier (Inactive)
              Recent user:
              Rafaela Nascimento
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.0 CE GA1 DXP 7,4
                  Master