Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Refactor about:passwords with Aphrodite #7336

Merged
merged 1 commit into from
Feb 25, 2017
Merged

Refactor about:passwords with Aphrodite #7336

merged 1 commit into from
Feb 25, 2017

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Feb 21, 2017

Closes #7335

  • passwords.less is removed
  • PasswordsTh, PasswordsTr (HeadTr), and PasswordsTd (ActionsTd) are introduced
  • classes are replaced with data-test-id

Auditors:

Test Plan:

  1. Remember a password by logging in GitHub
  2. Open about:passwords
  3. Make sure styling is not broken
  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

return <PasswordsTr data-test-id='passwordItem'>
<ActionsTd>
<span className={css(styles.passwordAction)}>
<span className='fa fa-times' title='Remove site'
Copy link
Contributor

Choose a reason for hiding this comment

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

can we go ahead on this and localize title? change it to data-l10n-id='removeSite' and then on passwords.properties add

removeSite.title=Remove site

Also add fa fa-times icon to global.js under appIcons property.

Copy link
Contributor Author

@luixxiul luixxiul Feb 23, 2017

Choose a reason for hiding this comment

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

can we go ahead on this and localize title?

I noticed but did not fix as I thought it was another issue. It should be handled with a follow up task.

Copy link
Contributor

Choose a reason for hiding this comment

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

np either way is fine

return <PasswordsTr data-test-id='passwordItem'>
<ActionsTd data-test-id='passwordActions'>
<span className={css(styles.passwordAction)}>
<span className='fa fa-times' title='Delete password'
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto for icon class

</PasswordsTd>
<ActionsTd data-test-id='passwordActions'>
<span className={css(styles.passwordAction)}>
<span className='fa fa-clipboard' title='Copy password to clipboard'
Copy link
Contributor

Choose a reason for hiding this comment

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

same as first comment regarding icon and title

cursor: pointer;
text-decoration: underline;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

super cool to see LESS files removed ++

@@ -116,7 +116,7 @@ describe('notificationBar', function () {
}).click('button=Yes')
.tabByIndex(0)
.loadUrl('about:passwords')
.waitForExist('tr.passwordItem')
.waitForExist('.passwordItem')
Copy link
Contributor

Choose a reason for hiding this comment

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

it should be .waitForExist('[data-test-id="passwordItem"]')

You can check if it works by running npm run watch-test and on other terminal tab run

npm run test -- --grep="autofills remembered password on login form"

Closes #7335

- passwords.less is removed
- PasswordsTh, PasswordsTr (HeadTr), and PasswordsTd (ActionsTd) are introduced
- 'fa fa-times' is added to appIcons as 'remove'
- appIcons are alphabetized

Auditors:

Test Plan:
1. Remember a password by logging in GitHub
2. Open about:passwords
3. Make sure styling is not broken
Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

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

LGTM

@luixxiul luixxiul removed the request for review from bsclifton February 25, 2017 12:13
@luixxiul luixxiul merged commit 108366f into brave:master Feb 25, 2017
@luixxiul luixxiul deleted the aboutPasswords-aphrodite branch February 25, 2017 12:13
@luixxiul luixxiul added this to the 0.13.5 milestone Feb 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants