Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-113189 Hiding sidebar title when a field is selected #87

Closed
wants to merge 2 commits into from

Conversation

rebsilva
Copy link

@rebsilva rebsilva commented Jun 2, 2020

No description provided.

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

Copy link
Owner

@interaminense interaminense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ótimo trabalho, Rebeca 🔥 . Segue abaixo algumas sugestões de ajustes:

@@ -45,6 +45,14 @@
}
}

.hide-title.sidebar-header {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebeca, para ficar mais legivel, podemos renomear esta classe hide-title para display-settings?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claro, acho melhor também!

@@ -33,7 +33,7 @@ export default function ({title}) {

return (
<Sidebar>
<Sidebar.Header>
<Sidebar.Header className={displaySettings ? 'hide-title' : ''}>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se sim, teremos que renomear aqui tbm, de hide-title para display-settings

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por fim, esqueci de te passar um método que usamos para adicionar classes quando usamos condições.
No caso, ficaria assim:

import 'className' from 'classnames';

className({'display-settings': displaySettings})

Dessa forma, não irá renderizar '' no HTML renderizado.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

certo, vou fazer as alterações!

@@ -33,7 +33,7 @@ export default function ({title}) {

return (
<Sidebar>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se adicionarmos a classe display-settings na tag Sidebar, isso poderá ser usado futuramente não só para ajustar o header como qualquer lugar da sidebar

@interaminense
Copy link
Owner

LGTM

@interaminense
Copy link
Owner

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

The pull request will automatically be forwarded to the user brianchandotcom if the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: b05cdaba944307f1150b2476879c9114a2db9949

Sender Branch:

Branch Name: LPS-113189
Branch GIT ID: bbc95a3c387122acbb9dbfb28258912e4e2ca2fd

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 19 out of 19 jobs passed

❌ ci:test:relevant - 99 out of 103 jobs passed in 1 hour 26 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 8570edc0382ba6302eaa218697b18c0f49acfa3e

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 6781f47bc448a9efe3c4df1eac5c1b8c4fc86c4e

ci:test:stable - 19 out of 19 jobs PASSED
19 Successful Jobs:
ci:test:relevant - 99 out of 103 jobs PASSED
99 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8
    Job Results:

    2 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #361566
      test-class:
          [mkdir] Created dir: /opt/dev/projects/github/liferay-portal/portal-kernel/test-results/unit
           [copy] Copying 8 files to /opt/dev/projects/github/liferay-portal/portal-kernel/test-classes/unit
           [echo] test.cmd.start.timestamp: 06-03-2020 12:43:29:845 PDT
          [junit] Running com.liferay.portal.log.assertor.PortalLogAssertorTest
          [junit] Testsuite: com.liferay.portal.log.assertor.PortalLogAssertorTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec
          [junit] 
      [stopwatch] [test.cmd: 2.085 sec]
           [exec] f5f0715f68c6
           [exec] f5f0715f68c6
           [exec] Error response from daemon: endpoint cloud-10-0-11-3.lax.liferay.com_mysql not found
           [exec] Result: 1
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/docker_stop.sh
      [stopwatch] [run.batch.test.action: 13:42.376 sec]
           [echo] 
            [get] Getting: http://test-1-8/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/361566//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20200603124333248.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20200603124333248.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1392720681.properties

For upstream results, click here.

@liferay-continuous-integration
Copy link
Collaborator

@interaminense
Copy link
Owner

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

The pull request will automatically be forwarded to the user brianchandotcom if the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

Skipping previously passed test suites:
ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:stable - 18 out of 19 jobs passed

❌ ci:test:relevant - 103 out of 105 jobs passed in 1 hour 43 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 1009dd3a8aa6d40f01eb56c9099cda7cea9063e1

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 6781f47bc448a9efe3c4df1eac5c1b8c4fc86c4e

ci:test:stable - 18 out of 19 jobs PASSED
18 Successful Jobs:
ci:test:relevant - 103 out of 105 jobs PASSED
103 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/functional-upgrade-tomcat90-mysql57-jdk8_stable/1
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #395656
      record-test-generated-properties:
       [sync-dir] Synchronizing /opt/dev/projects/github/liferay-binaries-cache-2020/.gradle/caches/modules-2/files-2.1 into /opt/dev/projects/github/liferay-portal/.gradle/caches/modules-2/files-2.1
       [sync-dir] 2319 files synchronized in 336ms
      [beanshell] Email sent to: yi-chen.tsai@liferay.com
      

      BUILD FAILED
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:11825: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common-portal-acceptance-batch.xml:219: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:8911: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.GitHubDevSyncUtil; . . . '' : TargetError : at Line: 91 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.GitHubDevSyncUtil; . . . '' : throw e ;

      Target exception: java.lang.NullPointerException

For upstream results, click here.

@interaminense
Copy link
Owner

ci:forward

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

The pull request will automatically be forwarded to the user brianchandotcom if the following test suites pass:

  •     ci:test:relevant
  •     ci:test:sf
  •     ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

Skipping previously passed test suites:
ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

@interaminense
Copy link
Owner

ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 20 out of 20 jobs passed in 1 hour 42 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 171f1ac50bd1702196fbc9da62feb7bcba072d35

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 6781f47bc448a9efe3c4df1eac5c1b8c4fc86c4e

ci:test:stable - 20 out of 20 jobs PASSED
20 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 19 out of 19 jobs passed

✔️ ci:test:relevant - 105 out of 105 jobs passed in 3 hours 54 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 171f1ac50bd1702196fbc9da62feb7bcba072d35

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 6781f47bc448a9efe3c4df1eac5c1b8c4fc86c4e

ci:test:stable - 19 out of 19 jobs PASSED
19 Successful Jobs:
ci:test:relevant - 105 out of 105 jobs PASSED
105 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

All required test suite(s) passed.
Forwarding pullrequest to brianchandotcom.

@liferay-continuous-integration
Copy link
Collaborator

Pull request has been successfully forwarded to brianchandotcom#89650

@liferay-continuous-integration
Copy link
Collaborator

@rebsilva rebsilva deleted the LPS-113189 branch March 4, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants