Skip to content
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

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

Closed
devsharmagit opened this issue Jun 17, 2024 · 7 comments · Fixed by #443
Closed

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

devsharmagit opened this issue Jun 17, 2024 · 7 comments · Fixed by #443
Assignees
Labels
enhancement Enhancement to the existing code

Comments

@devsharmagit
Copy link
Contributor

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

@devsharmagit devsharmagit added the enhancement Enhancement to the existing code label Jun 17, 2024
@Aradhyajha
Copy link

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
Copy link
Owner

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

Copy link

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
Copy link

Ok sir

@krishnaacharyaa
Copy link
Owner

@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
Copy link

Aradhyajha commented Jun 19, 2024 via email

@krishnaacharyaa
Copy link
Owner

@devsharmagit by when can we expect this to be raised?

devsharmagit added a commit to devsharmagit/wanderlust-dev-sharma that referenced this issue Jul 8, 2024
devsharmagit added a commit to devsharmagit/wanderlust-dev-sharma that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to the existing code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants