krishnaacharyaa / wanderlust

WanderLust is a MERN travel blog website 🚀 This project is aimed to help people to contribute in open source, upskill in react and master git.
https://wanderlust-beta.vercel.app/
MIT License
174 stars 826 forks source link

[ENHANCEMENT] Add post editing functionality to the frontend. #419

Open devsharmagit opened 2 weeks ago

devsharmagit commented 2 weeks ago

Description

There should be a way for the user to edit their post. Backend API is done for this. Now just the frontend part is remaining.

Current Behavior

There is no way to edit user posts on the frontend

Proposed Enhancement

Screenshot 2024-05-27 093737

take reference from the above and make separate components make separate route for edit the post also check if user own the post or not (if not then redirect them with error message)

Use Case

this will allow the user to edit their own posts

Blockers

No response

Additional Information/ Attachments

No response

Aradhyajha commented 1 week ago

Hii @krishnaacharyaa sir, please assign me this issue no .#419 i will solve this issue as soon as possible.. To add post editing functionality to the frontend, include an "Edit" button for each post that toggles an edit form containing input fields for the post's title and content. Use JavaScript to handle form submissions, sending the updated data to the server via a PUT or PATCH request. Ensure the backend processes the update and returns a success response. Upon successful update, use JavaScript to update the post content on the frontend without reloading the page, providing a seamless editing experience edit1

krishnaacharyaa commented 1 week ago

You are violating code of conduct @Aradhyajha , and it is being worked by @devsharmagit

github-actions[bot] commented 1 week ago

Hey @devsharmagit 🎉! Thanks for jumping on this issue. Before you dive in, please check out our contributing guidelines to ensure we're all on the same page. Happy coding! 🚀

Aradhyajha commented 1 week ago

Ok sir

krishnaacharyaa commented 1 week ago

@Aradhyajha violating conduct by using ai to write the answers for you ! And if you actually are interested in learning join discord server, lets see what best we can do :)

Aradhyajha commented 1 week ago

Yes sir I have actually interested in to work on this project if any work for me please assign it to me and really sorry sir if I did something wrong

On Wed, Jun 19, 2024, 5:14 PM Krishna R Acharya @.***> wrote:

@Aradhyajha https://github.com/Aradhyajha violating conduct by using ai to write the answers for you ! And if you actually are interested in learning join discord server, lets see what best we can do :)

— Reply to this email directly, view it on GitHub https://github.com/krishnaacharyaa/wanderlust/issues/419#issuecomment-2178490674, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7CBBU7IATSM57WROPA37PTZIFVKRAVCNFSM6AAAAABJNL423GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGQ4TANRXGQ . You are receiving this because you were mentioned.Message ID: @.***>