GithubHelp home page GithubHelp logo

Comments (10)

rajalala avatar rajalala commented on August 22, 2024 1

@shavone328 Glad I could help 😊 If you end up having questions or issues, don't hesitate to ask! And good luck!

from rasa-webchat.

rajalala avatar rajalala commented on August 22, 2024

If you are able to implement those features yourself, I'd recommend you to fork the repository and start using your own fork. That's what I did for my team's needs 😌

There has not been recent activity on opened PRs so I don't know how likely it is to get new features in that way.
So while for example I would be willing to implement at least that user avatar, there's no guarantee it will make it into the widget (of course, might code might also just not be up to par to be merged πŸ˜… ).

from rasa-webchat.

shavone328 avatar shavone328 commented on August 22, 2024

@rajalala Would you mind telling me the steps to do that? I tried following the steps in the contributing.md file but I keep running into errors while trying to do npm run build. Did you update your version of react as well? I'm currently using 17.0.2 for my project. I'm very sorry if this sounds like s dumb questions, I'm very new to this.

from rasa-webchat.

rajalala avatar rajalala commented on August 22, 2024

@shavone328 No worries, I struggled at first as well! This is just a quick reply to get you started but I can provide more details if needed.

You are running to a libsass error right? That's because libsass (or node-sass or some internal dependency, I don't remember anymore) does not support Node 15 or newer. So you can get the project installed and running by downgrading Node to version 14. I'd recommend you to install nvm cause then you can just run nvm use 14 each time you work with the widget.

And regarding React 17: yes, I updated React and actually made PR here (#405).

from rasa-webchat.

shavone328 avatar shavone328 commented on August 22, 2024

@rajalala thank you! I'll try doing that and hopefully it will work. Every time I make a change to the widget and need to test it, I will have to do npm run build correct?

from rasa-webchat.

rajalala avatar rajalala commented on August 22, 2024

@shavone328 no problem, hope it all works out!
You can either manually run the build (npm run build as you said) or use npm run dev to have webpack automatically rebuild the project every time you do a chance. That will run the widget configured in file dev/index.html. I've found that to be helpful - especially when doing style changes where I want to see results right away.

However, when with that the widget did not show up if not connected to a chatbot. To fix that you can:

  • set parameter withRules to false (by default it's true)
  • or fixing the issue of hideWhenNotConnected not being followed when withRules is true (it's one line fix)

from rasa-webchat.

shavone328 avatar shavone328 commented on August 22, 2024

@rajalala good to know thank you!! Did you have to import it into a dummy react app to test it, or would running npm run dev show all the changes?

from rasa-webchat.

rajalala avatar rajalala commented on August 22, 2024

@shavone328 When doing widget specific changes I found easier and faster to just use that dev script and dev/index.html 😌

Later I'd do some final testing in the context of the app that uses it by installing it from local folder or from Github repo. But that is not a requirement - just something I found helpful as in my case widget and rest of the app have some interaction.

from rasa-webchat.

shavone328 avatar shavone328 commented on August 22, 2024

@rajalala ahh again thank you so much! I was so worried before that my question would just be left out into the void but you've been so helpful!

from rasa-webchat.

stale avatar stale commented on August 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from rasa-webchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.