? ? Pending

User tests: Successful: Unsuccessful:

avatar saumyasarkar11
saumyasarkar11
23 Mar 2021

Pull Request to bring label "Remember me" and its checkbox in the same line .

Actual result BEFORE applying this Pull Request

Screenshot from 2021-03-23 15-25-15

Expected result AFTER applying this Pull Request

Screenshot from 2021-03-23 15-24-04

Documentation Changes Required

None

avatar saumyasarkar11 saumyasarkar11 - open - 23 Mar 2021
avatar saumyasarkar11 saumyasarkar11 - change - 23 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Mar 2021
Category Front End com_users
avatar brianteeman
brianteeman - comment - 23 Mar 2021

dont we have a class form-check-inline for this?

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

Working on it

avatar saumyasarkar11 saumyasarkar11 - change - 23 Mar 2021
Labels Added: ?
avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

Please go through the new commit @brianteeman @drmenzelit

avatar richard67
richard67 - comment - 23 Mar 2021

@saumyasarkar11 At the bottom of your PR you can see that CI checks by drone are failing:

2021-03-23_01

If you follow the "Details" link you come to a page where you can see the tests at the left hand side. The one called PHPCS failed (red colour). If you then click on that PHPCS you will see the log file:

https://ci.joomla.org/joomla/joomla-cms/41089/1/6

This one then report code style errors:

FILE: /********/src/components/com_users/tmpl/login/default_login.php
----------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------
 65 | ERROR | [x] Tabs must be used to indent lines; spaces are not
    |       |     allowed
    |       |     (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
 66 | ERROR | [x] Tabs must be used to indent lines; spaces are not
    |       |     allowed
    |       |     (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
 67 | ERROR | [x] Tabs must be used to indent lines; spaces are not
    |       |     allowed
    |       |     (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
 68 | ERROR | [x] Tabs must be used to indent lines; spaces are not
    |       |     allowed
    |       |     (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY

If you fix these code style errors and push the changes, the CI checks will start again, and then they should pass.

Code style is important for a project's maintainability.

The PHPCS is important because if that fails, the automated system tests are not run, which would show other possible errors.

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

I think I need to go a bit deeper. Working on it

avatar richard67
richard67 - comment - 23 Mar 2021

Maybe 2 helpful links regarding code style:

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

@richard67 Seems fine this time

avatar drmenzelit
drmenzelit - comment - 23 Mar 2021

Please check the comment from Brian: #32821 (comment)

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

Please check the comment from Brian: #32821 (comment)

I've removed that additional div. He had commented on the outdated version

avatar richard67
richard67 - comment - 23 Mar 2021

I've removed that additional div. He had commented on the outdated version

@saumyasarkar11 I'm not sure. I thin Brian meant this one: <div class="com-users-login__remember control-group">

https://github.com/joomla/joomla-cms/pull/32821/files#diff-4b87fc46e3b0b4efde5b14360a34efca58df76b798e0956948ce45a3e755da0fR62

And as far as I understood he was not sure about if it can be removed or not, but it could be.

@brianteeman Please correct me if I understood you wrong.

If possible, could you check that?

avatar drmenzelit
drmenzelit - comment - 23 Mar 2021

@saumyasarkar11 it is a simple check: look into the scss/css files from Cassiopeia template and check if the control-group class is still defined.

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

@saumyasarkar11 it is a simple check: look into the scss/css files from Cassiopeia template and check if the control-group class is still defined.

It is still defined but it is as follows:
.control-group {
margin: 1em 0;
}
May be we can remove it

avatar drmenzelit
drmenzelit - comment - 23 Mar 2021

No, the class is still been used in several views, e.g. /components/com_content/tmpl/form/edit.php
Related issue: #31218

avatar saumyasarkar11
saumyasarkar11 - comment - 23 Mar 2021

No, the class is still been used in several views, e.g. /components/com_content/tmpl/form/edit.php
Related issue: #31218

So should I put it back in?

avatar drmenzelit
drmenzelit - comment - 23 Mar 2021

Not necessary, your PR looks good now.

avatar drmenzelit drmenzelit - test_item - 23 Mar 2021 - Tested successfully
avatar drmenzelit
drmenzelit - comment - 23 Mar 2021

I have tested this item successfully on dd33b42


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

avatar ChristineWk ChristineWk - test_item - 23 Mar 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 23 Mar 2021

I have tested this item successfully on dd33b42


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

avatar saumyasarkar11
saumyasarkar11 - comment - 24 Mar 2021

extra space removed. Please review

I have tested this item successfully on dd33b42

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

Extra space removed. Please review

avatar Quy Quy - alter_testresult - 24 Mar 2021 - drmenzelit: Tested successfully
avatar Quy Quy - alter_testresult - 24 Mar 2021 - ChristineWk: Tested successfully
avatar Quy Quy - change - 24 Mar 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 Mar 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

avatar saumyasarkar11
saumyasarkar11 - comment - 24 Mar 2021

RTC

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

It says Failure: Number of issues exceeds sum threshold (1/0). What does it mean? @Quy

avatar laoneo laoneo - change - 24 Mar 2021
Title
Brought checkbox and its label in the same line
[4.0] Brought checkbox and its label in the same line
avatar laoneo laoneo - edited - 24 Mar 2021
avatar richard67
richard67 - comment - 24 Mar 2021

RTC
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32821.

"RTC" means "ready to commit" and is the status which a PR gets here when it has 2 successful human tests by someone else than the author.

It says Failure: Number of issues exceeds sum threshold (1/0). What does it mean? @Quy

The failure in the "analysis4x" step drone CI isn't related to this PR. It's a security check (using RIPS) which sometimes might produce false alarms until adjusted, clarification is already ongoing.

avatar rdeutz rdeutz - change - 24 Mar 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-24 16:14:08
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 24 Mar 2021
avatar rdeutz rdeutz - merge - 24 Mar 2021

Add a Comment

Login with GitHub to post a comment