-
Notifications
You must be signed in to change notification settings - Fork 992
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
NT-1908:UI for Comment Composer #1251
Conversation
import com.kickstarter.libs.transformations.CircleTransformation | ||
import com.squareup.picasso.Picasso | ||
|
||
class CommentComposerView @JvmOverloads constructor( |
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.
awesome work @hadia ! 💯
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.
intent() | ||
.map { it.getParcelableExtra(IntentKey.PROJECT_DATA) as ProjectData? } | ||
.ofType(ProjectData::class.java) | ||
.filter { it.project().isBacking || ProjectUtils.userIsCreator(it.project(), it.user()) } |
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.
nit: project().isBacking || ProjectUtils.userIsCreator(it.project(), it.user()
could be extracted to a function it's used in lunes 62, 66 and 96
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.
Done
app/build.gradle
Outdated
@@ -227,6 +227,7 @@ android { | |||
|
|||
buildFeatures { | |||
viewBinding true | |||
dataBinding true |
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.
Do we need to add this?
@@ -870,4 +870,43 @@ | |||
<item name="android:windowIsTranslucent">true</item> | |||
<item name="android:windowAnimationStyle">@android:style/Animation</item> | |||
</style> | |||
|
|||
<style name="CommentsTextInputLayout" parent="Widget.Design.TextInputLayout"> |
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.
👍
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.
Everyting looks fantastic!
Just a small things,
1- the keyboard seems to flow a bit over the composer
2- I do not see the code for the 9000 chars limit
But in my opinion this is perfect and can me merged without any problem as soon as CI passes :) in case you wanna have smaller jira tickets to tackle the previous points.
Codecov Report
@@ Coverage Diff @@
## master #1251 +/- ##
=========================================
Coverage 74.79% 74.79%
Complexity 740 740
=========================================
Files 222 222
Lines 6706 6706
Branches 412 412
=========================================
Hits 5016 5016
Misses 1552 1552
Partials 138 138 Continue to review full report at Codecov.
|
📲 What
Implement the following UI for the Comment Composer
🤔 Why
Add comment composer to new comments activity
🛠 How
👀 See
https://www.loom.com/share/43179a365389447d9f2f5caab75c58f6
![image](https://user-images.githubusercontent.com/1075310/118724950-9522ed80-b82f-11eb-90d8-fc4ba8b0a242.png)
📋 QA
Test open project comments /updates on statging
Story 📖
https://kickstarter.atlassian.net/browse/NT-1908