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

As an instance admin, I want to configure PageSpeed from Instance Settings

    Details

      Description

      Motivation

      With this story, we want to build PageSpeed API configuration at the instance level. 

      Design

      https://www.figma.com/file/MjnodYRWIJfT2toNjK8WnR/LPS-128382-configure-Page-Speed?node-id=1%3A16585

      Technical Requirements

      1. Configuration panel will be in: Instance Settings > Pages > New tab "Google PageSpeed Insights" 

      NOTE: Provided that the option is enabled from System Settings

      2. There will be a check: Enable Google PageSpeed Insights.

      2.1. It will be checked by default.

      2.2. When disabled, the Page Audit icon won't be visible from the view mode of the pages (see LPS-119068) in all sites in that Instance.

      2.3. Help text: Google PageSpeed Insights can find accessibility and SEO issues in your pages, and provide suggestions to fix them.

      3. Field to enter the API Key (format: AIzaSyAq-oKsvIhlYHdk1UXCFy63h74ECIgbgbE) 

      4. There will be a field for setting specific timeout:

      • Label: Timeout Interval. 
      • Help text (under the field): Define the time (in milliseconds) before a PageSpeed Insights request times out.
      • Default value: 30000 millisecs

      5. There will be a field for specifying the "strategy" parameter for the API:

      • Label: Preferred Strategy
      • Help text: Select what kind of device you want to audit for. Mobile strategy includes additional checks. Selected strategy will be applied to all page audits.
      • Dropdown to select Mobile or Desktop. Default value: Mobile
      • Instance settings values overwrite System values for that particular instance, but the feature has to be enabled in the system level for the instance settings to show it.

      Acceptance Criteria

       

      Requirements
       
      Acceptance Criteria
       
      Test Strategy
       
      Covered by frontend / backend test? (Yes/No)
       
      1.  Configuration panel will be in: Instance Settings > Pages > New tab "Google PageSpeed Insights" 
      • Given the Instance settings page
      • When the users click on Content > Pages
      • Then they can see the tab Google PageSpeed Insights 
         
      2. There will be a check: Enable Google Page Speed Insights.
      2.1. It will be checked by default.
      2.3. There will be a subtitle / help text: Google PageSpeed Insights can find accessibility and SEO issues in your pages, and provide suggestions to fix them.
      • Given the Google PageSpeed Insights settings tab
      • Then there's a check: Enable Google PageSpeed Insights, it is checked by default and there is a help text: Google PageSpeed Insights can find accessibility and SEO issues in your pages, and provide suggestions to fix them.
         
      2.2. When the check is disabled, the Page Audit icon won't be visible from the view mode of the pages (see LPS-119068). 
      • Given the Google PageSpeed settings tab in the System Scope section
      • When the Enable Google PageSpeed Insights check is unchecked
      • Then the Page Audit icon won't be visible from the view mode of the pages (see LPS-119068
         
      3. There will be a field to enter the API Key:    
      4. There will be a check for setting specific timeout: * Label: Timeout Interval. 
      • Help text (under the field): Define the time (in milliseconds) before a PageSpeed Insights request times out. 
      • Default value: 30000 millisecs
       
      • Given the Google PageSpeed Insights settings tab in the Virtual Instance Scope section
      • Then there's a field "Timeout Interval" to enter a specific value for timeout, it shows 30000 millisecs as default value and the help text says Define the time (in milliseconds) before a PageSpeed Insights request times out. 
         
       5. There will be a field for specifying the "strategy" parameter for the API: * Label: Preferred Strategy * Help text: Select what kind of device you want to audit for. Mobile strategy includes additional checks. Selected strategy will be applied to all page audits. * Dropdown to select Mobile or Desktop. Default value: Mobile
      • Given the Google PageSpeed Insights settings tab in the Virtual Instance Scope section
      • Then there's a field for specifying the Preferred Strategy, the dropdown shows the Mobile value by default, the Desktop value can also be selected and there's a help text: Select what kind of device you want to audit for. Mobile strategy includes additional checks. Selected strategy will be applied to all page audits. 
         
      All values in the Virtual Instance Scope are inherited by all instances
      • Given any value in the Virtual Instance Scope
      • Then all instances shows the same value (also void fields)
         
       
      • Given any value in the Virtual Instance Scope
      • When the same value has been overwritten in any of the instances
      • Then the value in the instance prevails over any changes in the System Settings Virtual Instance Scope section 
         
       The Instance level settings will be visible provided that the option is enabled from System Settings
      • Given the PageSpeed Insights settings in the System Settings
      • When Google PageSpeed Insights is not enabled (unchecked)
      • Then the tab Google PageSpeed Insights is not visible from Instance settings
         

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alejandro.tardin Alejandro Tardín
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Julia Molano
              Recent user:
              Susana Vázquez
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package
                  Master