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

creator tools strings #215

Merged
merged 4 commits into from
Feb 21, 2018
Merged

creator tools strings #215

merged 4 commits into from
Feb 21, 2018

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Feb 21, 2018

what

Updating creator tools strings and tests.

see

@eoji
Copy link
Contributor Author

eoji commented Feb 21, 2018

Creator tools copy sweep

Copy link
Contributor Author

@eoji eoji left a comment

Choose a reason for hiding this comment

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

See feedback plz

@@ -31,4 +31,13 @@ public void testIsPresent() {
assertTrue(StringUtils.isPresent("a"));
assertTrue(StringUtils.isPresent(" a "));
}

@Test
public void testSentenceCase() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's add a test for the single and empty cases.

@@ -50,10 +54,14 @@ public CreatorDashboardReferrerStatsViewHolder(final @NonNull View view) {
.compose(observeForUI())
.subscribe(this::toggleRecyclerViewAndEmptyStateVisibility);

this.viewModel.outputs.referrerStatsTruncatedTextIsGone()
this.viewModel.outputs.referrersTitleIsLimitedCopy()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's rename to referrersTitleHasTopTen

@@ -56,6 +62,16 @@ public CreatorDashboardRewardStatsViewHolder(final @NonNull View view) {
.compose(bindToLifecycle())
.compose(observeForUI())
.subscribe(gone -> ViewUtils.setGone(this.truncatedTextView, gone));

this.viewModel.outputs.rewardsTitleIsLimitedCopy()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rename this one also.

-renaming
-adding more test cases
Copy link

@cdolm92 cdolm92 left a comment

Choose a reason for hiding this comment

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

Nice! 🌟

@eoji eoji merged commit 7f3c634 into master Feb 21, 2018
@eoji eoji deleted the creator-tools-strings branch February 21, 2018 22:50
Rcureton pushed a commit that referenced this pull request Jul 31, 2018
* creator tools strings updates with tests for title changes

* sentence casing top rewards string with tests

* PR feedback:
-renaming
-adding more test cases
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

2 participants