-
Notifications
You must be signed in to change notification settings - Fork 38
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
Discussion tab and page #39
Conversation
username = createUsername(discussion); | ||
} | ||
|
||
function renderComments(comments) { |
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.
can we use es6 functions?
Brief glance at the screenshots, the spacing between elements looks off. Like the upvote bubble needs some width to it, and needs to be 19px away from the avatar image. |
|
||
const DiscussionTab = () => { | ||
const threads = [{}]; | ||
return <div>{renderThreads(threads)}</div>; |
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.
Should we have an infinite scroll here?
}; | ||
|
||
const MoreButton = () => { | ||
// TODO: Fetch more comments |
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 think instead of having this it'd be easier to have infinite scrolling
53693f0
to
b784dfd
Compare
bf9e1d5
to
0f3f968
Compare
Closes #10
Closes #11
Notes
This is rebased on top of the text-editor branch (https://github.com/quantfive/researchhub-web/tree/text-editor) and master branch.
Testing
What code is changing?
DiscussionThreadCard.js
is rendering smaller componentsPaper/Tabs/DiscussionTab.js
includes the url path for each threadPaperTabBar.js
has ui to include discussion thread count, and removes theprefetch
attribute which is not required because prefetch happens by defaultconfig/api.js
config/themes/icons.js
pages/paper/[paperId]/[tabName]/index.js
gets threads and thread count from paper propredux/paper.js
tests/cypress/integration/utils/general.spec.js
has more unit tests for utilsScreenshots
To do