Bot-Rakshit / bm_frontend

Frontend repository of Samay Raina's chess community website
https://www.bmsamay.com/
MIT License
72 stars 44 forks source link

Open Chess.com profile on user name click #52

Closed ARSHIL1804 closed 1 month ago

ARSHIL1804 commented 1 month ago

How about adding a clickable link in the user name that will open the chess.com profile of that user on a new tab?

image

Bot-Rakshit commented 1 month ago

yes adding backend routes for the same

ARSHIL1804 commented 1 month ago

@Bot-Rakshit we can directly add the link in frontend no?

Bot-Rakshit commented 1 month ago

True we can add, chess.com/member/{chessUsername} for now, I'll make a backend route to add more information when hovered for later. You can go ahead and make a pr to make the usernames clickables for now

ARSHIL1804 commented 1 month ago

I'll make a backend route to add more information when hovered for later. Ohh, that would be cool 👍

You can go ahead and make a pr to make the usernames clickables for now Sure 👍

Prathamesh-B commented 1 month ago

How do we work on the community page in development mode? Whenever I try to open it, it doesn't load due to CORS errors. I would like to know a workaround for this issue.

Bot-Rakshit commented 1 month ago

@Prathamesh-B i'll add the localhost routes to the the cors. Things will get better post this weekend once i sort out the backend, but yes this is an issue for now. A workaround can be hit the dashboard endpoint copy the data , and create a mock api using the same data to work around it for now?

Prathamesh-B commented 1 month ago

Thanks for the suggestion. I’ll check out the backend too. @Bot-Rakshit

ARSHIL1804 commented 1 month ago

@Prathamesh-B Or go to the original website and in localhost storage, you can find dahsboardData. image Copy this and paste it into your vite localhost storage? Also in community.tsx file update UPDATE_INTERVAL value to 600000000(some random high value) CC: @Bot-Rakshit