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

Feature: Comment Component #12770

Merged
merged 24 commits into from
Nov 2, 2018
Merged

Feature: Comment Component #12770

merged 24 commits into from
Nov 2, 2018

Conversation

ilanus
Copy link
Contributor

@ilanus ilanus commented Oct 22, 2018

@netlify
Copy link

netlify bot commented Oct 23, 2018

Deploy preview for ant-design ready!

Built with commit 599578c

https://deploy-preview-12770--ant-design.netlify.com

@ilanus ilanus changed the title feature: comment component Feature: comment component Oct 23, 2018
@ilanus ilanus changed the title Feature: comment component Feature: Comment Component Oct 23, 2018
@afc163 afc163 changed the title Feature: Comment Component [WIP] Feature: Comment Component Oct 24, 2018
@codecov
Copy link

codecov bot commented Oct 24, 2018

Codecov Report

Merging #12770 into feature will increase coverage by 0.02%.
The diff coverage is 96.55%.

Impacted file tree graph

@@             Coverage Diff             @@
##           feature   #12770      +/-   ##
===========================================
+ Coverage     92.6%   92.62%   +0.02%     
===========================================
  Files          215      216       +1     
  Lines         5614     5643      +29     
  Branches      1598     1619      +21     
===========================================
+ Hits          5199     5227      +28     
- Misses         409      410       +1     
  Partials         6        6
Impacted Files Coverage Δ
components/index.tsx 100% <ø> (ø) ⬆️
components/comment/index.tsx 96.55% <96.55%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af54f50...599578c. Read the comment docs.

@ilanus
Copy link
Contributor Author

ilanus commented Oct 24, 2018

@afc163 eye of the tiger 😄updated code.. do you think we need to add also the editor mode for the comment? or user will need to take care of editor component himself? for example editor boolean will change the comment to a view like this: and user can also pass custom React Component to handle editor.. we can keep something simple as the default (Textarea)

screenshot 2018-10-24 at 15 23 51

@afc163
Copy link
Member

afc163 commented Oct 24, 2018

we can keep something simple as the default (Textarea)

Yeay, we can put a default raw TextArea there and allow it to be replaced by other Editors that people should provide.

@afc163 afc163 requested a review from zombieJ October 24, 2018 13:30
@zombieJ
Copy link
Member

zombieJ commented Oct 27, 2018

这个 comment 相关的组件有点多呐,可以把内容移到 description/content/comment prop 里,然后子元素用 <Comment /> 组件来支持嵌套把 Nest 组件省了。

@zombieJ
Copy link
Member

zombieJ commented Oct 27, 2018

头像和名字、时间、评论改成左右结构吧。

@ilanus ilanus changed the title [WIP] Feature: Comment Component Feature: Comment Component Oct 29, 2018
@ant-design ant-design deleted a comment from zombieJ Nov 1, 2018
@ant-design ant-design deleted a comment from zombieJ Nov 1, 2018
@zombieJ
Copy link
Member

zombieJ commented Nov 2, 2018

LGTM. @afc163 pls double confirm and let's merge.

@ilanus
Copy link
Contributor Author

ilanus commented Nov 2, 2018

@afc163 Please confirm last changes and merge if ok 😄

@afc163
Copy link
Member

afc163 commented Nov 2, 2018

@ilanus Excellent job! Can't wait to release this feature in 3.11.0. 🎉

@afc163 afc163 merged commit c6821cb into ant-design:feature Nov 2, 2018
@zombieJ
Copy link
Member

zombieJ commented Nov 3, 2018

@ilanus , thanks for your patient and wonderful work 😄

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

Successfully merging this pull request may close these issues.

3 participants