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

Add editing snippets functionality #10

Closed
mohsenkhosroanjam opened this issue Jan 3, 2025 · 2 comments
Closed

Add editing snippets functionality #10

mohsenkhosroanjam opened this issue Jan 3, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mohsenkhosroanjam
Copy link

mohsenkhosroanjam commented Jan 3, 2025

Description:
As a user, I would be happy if I could edit the snippets that I have created.

Actual result:
There is no edit functionality for the created snippets.

Expected result:
When the user clicks on the edit button, they should be able to edit the snippet.

Steps to reproduce:
1- Go to https://codecandy.suraniharsh.codes/
2- Press the "Create Snippet" button
3- Fill out the form and save the snippet
4- Press the home button on the side menu
5- Open the snippet you have created

Screenshot:
edit

@suraniharsh suraniharsh added the enhancement New feature or request label Jan 3, 2025
@suraniharsh
Copy link
Owner

Combined Message

Hi @mohsenkhosroanjam ,

Thank you for highlighting this issue! I agree that adding an edit functionality for created snippets would enhance the usability of the platform and provide users with more flexibility. Here’s the detailed plan for implementing this feature:

"Edit Snippets: Enhancing Flexibility and Usability"

Description:
Currently, users can create snippets, but there is no way to edit them after creation. Let’s address this limitation by adding an edit feature. This functionality will allow users to modify their snippets as needed, improving the overall user experience.

Expected Outcome:

  • Add an edit button to each snippet that allows users to modify the content.
  • Ensure the editing interface is intuitive and integrates seamlessly with the existing design.
  • Persist changes to the database so they are reflected across sessions.

Tasks:

  1. Analyze the current snippet creation and display flow to identify integration points for editing functionality.
  2. Add the following features:
    • An edit button for each snippet.
    • A modal or form for editing snippet content.
    • Update the database with the modified snippet upon saving changes.
  3. Ensure the edit functionality works across all pages where snippets are displayed.
  4. Test the feature thoroughly to ensure it works as expected and maintains data integrity.
  5. Create a separate branch for this feature and submit a pull request upon completion.
    • Branch Name:
      • feature/edit-snippets
  6. Address any feedback provided by code reviewers.

Screenshot of the Issue:
[Attach a screenshot of the current snippet display and a mockup of the edit button and interface.]

Deployed Link:
[Provide the live link to the website where the feature will be implemented.]

I’ve created a branch named feature/edit-snippets for this enhancement. Work is underway, and I’ll ensure the implementation aligns with the requirements. If you have additional input or suggestions, feel free to share them!

@suraniharsh
Copy link
Owner

The issue has been fully addressed and the changes have been tested for compatibility.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants