-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
WIP Quick Replies #886
WIP Quick Replies #886
Conversation
@xcarpentier @pdoggi We need to decide on whether we want these quick replies to be in Keep in mind that we may want to hide these quick replies if its not the latest message so they don't clutter the chat. We also need to consider if a system message is the last message and whether it should hide the quick replies. Generally we need to keep track of the last message (that is not a system message) so we know when to display quick replies. OR we just keep track of the last message and forget about the system message issues. OR fix that in another PR. I know for my use case system messages pose a problem when you want to display quick replies but a system message is the last message. |
Codecov Report
@@ Coverage Diff @@
## master #886 +/- ##
==========================================
+ Coverage 42.73% 42.91% +0.17%
==========================================
Files 20 21 +1
Lines 482 494 +12
Branches 105 107 +2
==========================================
+ Hits 206 212 +6
- Misses 208 213 +5
- Partials 68 69 +1
Continue to review full report at Codecov.
|
@watadarkstar I got your branch up and running on my machine. I think you're right that we can do both in My initial thoughts would be to put this over the Also, I think that if we do both, we'll need some sort of toggle to specify what version of quick reply you'd want. I agree that we would need to hide quick replies for message bubbles that are not the last one. Probably a good idea to track the last message that's not a system message. I'm happy to start working on this, but would love to chat about how we'll implement this! @watadarkstar @xcarpentier I've created a gitter chatroom to facilitate. Thanks a bunch! Looking forward to working together! |
I just thought about another thing. I think that each quick reply JSON should contain a payload that can be passed to the backend. At least in my use case, I would like to have that ability. |
Yes for that use case you would put it in the composer. Maybe try doing that and I can help you along the way. @pdoggi |
@pdoggi : RE: My initial thoughts would be to put this over the TextInput in Composer.js., but could be totally wrong. Open to thoughts! I like that approach. Let's work on the RE: I just thought about another thing. I think that each quick reply JSON should contain a payload that can be passed to the backend. At least in my use case, I would like to have that ability. Once I implement the click event we won't need this payload and it will make sense on how you can do this. I'll try to work on this next. RE: I agree that we would need to hide quick replies for message bubbles that are not the last one. Probably a good idea to track the last message that's not a system message. Do you want to try tackling this @pdoggi and moving the code to the |
@xcarpentier @FaridSafi I keep getting this error when I run
I just need a way to watch files for changes so I can develop this feature faster. |
@pdoggi do you have write access to my branch I think I gave it to you? |
Sorry I’m not sure what it is. |
@watadarkstar Yes, I saw that you gave me write access to your branch. I will tackle moving the code from I have a newbie question on |
@pdoggi
So it watches for changes inside |
@watadarkstar Oh I see, that makes sense. Should I be using the wml library like the README.md suggests? |
@pdoggi I think that would be a good idea. The example .md seems to say otherwise but I imagine the README is more updated. |
@watadarkstar Ah, now I see the
So instead, I tried
I'll probably for now just |
@pdoggi ya i saw those issues and i tried re-installing watchman using brew but no luck. I think this might fix it though i just didnt have enough time to kill. |
@watadarkstar any updates on this since you last checked in? |
I think I will continue soon on this PR, because I will need something like this and it's a good idea to integrate it here. |
We have something in our app that does this but I haven't had time to integrate it here. It's similar to this PR but probably not ready for general purpose use, so happy if anyone wants to continue this work :) |
Closes #826
This is a work in progress. The documentation for this feature can be found here: #881 by @pdoggi
This will be a collaboration between myself and @pdoggi and the maintainers of this repo.
TODO: