Navigation Menu

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

rewrite profile about me in react with i18next #1005

Merged
merged 5 commits into from Feb 18, 2019

Conversation

agatatalita
Copy link
Contributor

@agatatalita agatatalita commented Dec 20, 2018

Proposed Changes

  • rewrite profile about me in React
  • add i18next translation to profile about

Testing Instructions

  • manual testing: go to /profile/:username and observe that everything works the same as before.
  • i18n translations should work if data for translations are added to public/locales/:languagecode files

@agatatalita agatatalita force-pushed the user-profile-about-react branch 2 times, most recently from 58b5198 to 2a5f605 Compare February 14, 2019 14:20
{(!profile.description || profile.description === '') &&
<blockquote className="profile-quote"
aria-label={t('Member has not written description about themself.')}>
“Everyone is necessarily the hero of their own life story.”
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's simplify this and just not show the whole box if they didn't write anything.

We'll still need to show the area + edit link if isSelf is true.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh and again good for a follow up PR, not a blocker here.

};

export const plainTextLength = (text) => {
return text && typeof(text) === 'string' ? String(text).replace(/&nbsp;/g, ' ').replace(/<[^>]+>/gm, '').trim().length : 0; // eslint-disable-line angular/typecheck-string
Copy link
Contributor

Choose a reason for hiding this comment

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

eslint-disable-line angular/typecheck-string

Hmm, it's surprising that Angular linter is trying to lint here.

No need to change anything, I'm just noting to look into this when working again on eslint stuff: #932

Copy link
Contributor

@mrkvon mrkvon left a comment

Choose a reason for hiding this comment

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

Overall I like what I read and I think we'll be able to merge soon.

From my perspective there is one bug that needs to be fixed and a few cleanups that can be fixed, and linting.

The bug and linting and I'll be ready to approve this for merge.

👍

@mrkvon
Copy link
Contributor

mrkvon commented Feb 17, 2019

I believe this is ready for merge.

I just rebased with master and changed the ^ to ~ for sanitize-html in package.json

Copy link
Contributor

@simison simison left a comment

Choose a reason for hiding this comment

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

I haven't tested but looks good!

Merge at will. :-)

@agatatalita agatatalita merged commit abd0500 into master Feb 18, 2019
@agatatalita agatatalita deleted the user-profile-about-react branch February 18, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants