Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

add hints (#153) #168

Merged
merged 6 commits into from
Nov 18, 2018
Merged

Conversation

gizemkeser
Copy link
Contributor

Associated Issue: #153

Summary of Changes

  • hint implementation
  • add/update tests

@coveralls
Copy link

coveralls commented Nov 6, 2018

Pull Request Test Coverage Report for Build 372

  • 13 of 15 (86.67%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 85.978%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/js/mini/constants.js 0 2 0.0%
Totals Coverage Status
Change from base Build 370: 0.2%
Covered Lines: 154
Relevant Lines: 177

💛 - Coveralls

@gizemkeser
Copy link
Contributor Author

I will resolve the conflict

@gizemkeser
Copy link
Contributor Author

@ollelauribostrom conflicts has been resolved

@ollelauribostrom
Copy link
Owner

@gizemkeser Nice job, I'll have a look at this tomorrow 🙂

@ollelauribostrom ollelauribostrom mentioned this pull request Nov 9, 2018
Copy link
Owner

@ollelauribostrom ollelauribostrom left a comment

Choose a reason for hiding this comment

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

Great job 👍 I added a few comments about some things that needs to be looked at before merging this. The render framework does not handle partial updates very well and having the hint placed inside of the Rebus component will cause the entire Rebus component to update when the hint appears. Could you extract it to its own component and either make it a child of the Rebus component or just render it separately from app.js?

<div class="rebus__header">
<span>${current + 1}/${rebuses.length}</span>
</div>
<span class="rebus__symbols">${rebus.symbols.join(' ')}</span>
<div class="rebus__words">
<children>
</div>
${
Copy link
Owner

Choose a reason for hiding this comment

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

I think it would be a good idea to break out the hint to its own component in a separate file. The render framework currently does not handle partial updates very well, and this will cause the entire Rebus component to update when the hint appears.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ollelauribostrom thanks for your feedback, it's done.

@@ -0,0 +1,2 @@
export const INCORRECT_ANSWER_MAX_COUNT = 3;
Copy link
Owner

Choose a reason for hiding this comment

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

Move this to the same file as the rebus component

@ollelauribostrom ollelauribostrom merged commit 6497d05 into ollelauribostrom:master Nov 18, 2018
@ollelauribostrom
Copy link
Owner

Nice job, thank you 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants