-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix #535 & #542 & #541 & #409 & #529 & #549 & #590 & #579 & #568 & #506 & #557 & #574 & #594 #592
Conversation
Codecov Report
@@ Coverage Diff @@
## master #592 +/- ##
==========================================
- Coverage 24.96% 24.74% -0.23%
==========================================
Files 121 121
Lines 2471 2514 +43
Branches 420 433 +13
==========================================
+ Hits 617 622 +5
- Misses 1540 1566 +26
- Partials 314 326 +12
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, a merge conflict appears!
…of-Helsinki/kerrokantasi-ui into feature/small-improvements # Conflicts: # src/i18n/fi.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small issues:
- The error message styling should be finalized (increase left marginal, use proper font, get rid of the progress bar)
- When entering a Hearing, the Hearing name is no longer shown on the page title; instead, the name of the Hearing page is still "Tervetuloa".
- The spinner when (re)loading comments should be rendered inside the Mielipiteet section, so that the Mielipiteet header itself (and the count that is known) is visible when the spinner is displayed. This is a visual indication of what is being loaded, i.e. the comments below the header.
Doned! |
<LoadSpinner /> | ||
</div> | ||
)} | ||
{showCommentList && !this.state.showLoader && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking here we actually shouldn't require !this.state.showLoader
.
This is because we would like the comment list header and the order filter selection to be visible during loading of comments, so the user can see what is being fetched and in what order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this does not seem to make a difference anyway as the old condition showCommentList will be false while fetching as the sectionComments is empty. I think this might be appropriate as showing the filter selector while fetching would allow the user to spam API calls by rapidly changing the filter...
<h2> | ||
<FormattedMessage id="comments" /> | ||
<div className="commenticon"> | ||
<Icon name="comment-o" /> {get(sectionComments, 'count') ? sectionComments.count : '0'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we shouldn't use sectionComments.count
but, rather, section.n_comments
. The former is zero when fetching, but the latter always contains the corrent count. Very seldom do we need sectionComments.count
anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from the two small comments!
Solves multiple small issues: #535 & #542 & #541 & #409 & #529 & #549 & #590 & #579 & #568 & #506 & #557 & #574 & #594