Open devanshkansagra opened 2 months ago
I want to work on this issue please assign me this issue.
Hey @HumaimaRiaz47, it's good to hear that you want to solve this issue. I am not the maintainer of this project so I cannot assign it to you, but still you can try to solve this issue. All the best !
Hey @HumaimaRiaz47 I am trying to solve this issue but because of first time i am not able to setup development server. issue arising when i am trying to login but if failed . It maybe because of using wrong credentials? please guide me . Here is the video for issue i faced
https://github.com/user-attachments/assets/0ea13d65-82a0-4000-9def-d460ac539c08
also @devanshkansagra if you can help me.
Hey @Sahil-Gupta584, these credentials are for other rocketchat server i.e. demo.qa.rocket.chat. so this credentials won't work locally. To setup locally, install rocketchat server first. then after installation it will run on localhost:3000 by default. When you open rocketchat server on localhost:3000 you will have to register yourself to rocketchat, after registeration you will have your own local environment. Now as per README.md file you enable cors in your local environment and try again with the credentials which you registered on your local environment. then it will work.
@devanshkansagra thank you for quick response as you said to setup rocketchat server i got this page from redme.md https://developer.rocket.chat/v1/docs/windows-10 on this page in the section 'machine requirement' they have mentioned for 8GM RAM+ but I have 4GB RAM can i still try to install server or it will be waste?
Hey @Sahil-Gupta584 try it, if it works coz I don't have idea about working in 4GB ram coz I have 8GB and I am using Ubuntu so there is very less ram usage. But don't worry try it once, if it won't work then setup Rocket chat on GitPod, there will be instructions on Rocketchat Github repo to set it up on GitPod.
And after setting up to gitpod you will get a public url of rocketchat server, create a .env file on packages/react directory in Embedded chat and add this environment variable
STORYBOOK_RC_HOST=
@devanshkansagra as you suggested i setup gitpod and did build,dev>
gitpod /workspace/EmbeddedChat (develop) $ yarn build
lerna notice cli v6.6.2
✔ @embeddedchat/auth:build (12s)
✔ @embeddedchat/api:build (23s)
✔ @embeddedchat/ui-elements:build (41s)
✔ @embeddedchat/ui-kit:build (42s)
✔ @embeddedchat/markups:build (17s)
✔ layout_editor:build (12s)
✔ @embeddedchat/react:build (37s)
✔ @embeddedchat/htmlembed:build (9s)
✔ e2e-react:build (9s)
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> Lerna (powered by Nx) Successfully ran target build for 9 projects (1m)
gitpod /workspace/EmbeddedChat (develop) $ yars dev
bash: yars: command not found
gitpod /workspace/EmbeddedChat (develop) $ yarn dev
lerna notice cli v6.6.2
> Lerna (powered by Nx) Running target dev for 4 projects:
- @embeddedchat/api
- @embeddedchat/auth
- e2e-react
- layout_editor
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> @embeddedchat/auth:dev
> layout_editor:dev
VITE v5.1.3 ready in 180 ms
➜ Local: http://localhost:5173/EmbeddedChat/layout_editor
➜ Network: use --host to expose
➜ press h + enter to show help
Server running at http://localhost:1234
✨ Built in 5ms
but port 3000 isnt started, also there was no dev command in package.json so I manually added "dev": "lerna run dev" similar to build,lint.
please let me now what i am missing to start server.
Noo @Sahil-Gupta584, you don't have to setup Embedded chat on Gitpod, I said you to setup Rocketchat on Gitpod. Now follow this instructions carefully
curl https://install.meteor.com/\?release\=2.8 | sh
.curl -fsSL https://deno.land/install.sh | sh
Now open EmbeddedChat in your local(not gitpod one)
go to packages/react and create a file .env
and add environment variable STORYBOOK_RC_HOST=<paste that copied url from gitpod>
then use node version 16.19.0 in your local Embedded chat repo (not gitpod one) and go to packages/react dir and run yarn install and after yarn storybook. to run
I hope now you will understood this
@devanshkansagra I followed your steps and now able to setup roucketchat server but still encountering same error after clicking on login
server>
client storybook>
https://github.com/user-attachments/assets/757dd6b9-873b-46c4-8ec7-96b85edd26aa
you have to enable cors in the settings
You can find it under Administration > Settings > General > REST API > Enable CORS. This setting must be enabled to access the app's functionality.
Hey @Sahil-Gupta584 I have said you to set it up on GitPod, the Rocket chat is so huge for development, even in my case if I run locally the(Development build) it consumes 6.5GB out of 8gb ram and + EmbeddedChat's. to reduce ram usage I suggested you to run it on gitpod
@devanshkansagra I have fixed issue upto certain extend users can mention not in file description but like normal message the background of mentioned texts changes but it doesnt happen for file description >
https://github.com/user-attachments/assets/02d69a05-7674-4e45-98f4-39428ebda84b
There are separate functions for sending message and sending attachement>
and in both calback functions endpoints are different issues is that request is going to croketChat server and therefor i am unable debug more .If I get to know how new message are added to chat body then I may fix the issue but I am unable to find code from where new messages are added to chat body
Hey @devanshkansagra could you review my PR and let me know of any changes required
Description:
If you try to mention users in the file description, the user does not get mentioned instead it gets in the normal text form
Steps to reproduce:
@
in the file descriptionExpected behavior:
User should get mentioned in the file description
Actual behavior:
Screencast from 15-09-24 10:24:39 PM IST.webm
This is a similar issue I found on Rocket chat main repo as well, check out here: #32151
Any help from other contributors would be really helpful.