Rajat2024 / NoteBook

Here notebook is created using React as a frontend and NodeJS as a backend. Here you can add , delete and update notes in your Mongoose database. You create a password using express validation , authentication using JWT Token and salting. An easy way to sign up and log in a notebook, context for data passing through the component.
https://mern-notebook.onrender.com/
0 stars 1 forks source link

[Bug 🐛 ]: Creating Notes Without Title and Description #106

Closed Kalyan-velu closed 1 year ago

Kalyan-velu commented 1 year ago

Description

The current bug in the project allows users to create notes without filling in the Title and Description fields. This leads to an error when attempting to view the created note by clicking the "Your Notes" button. The error message displayed is: "Properties of undefined (reading 'toLowerCase') at Notes.js:73:1 at Arr". As a result, the production version of the site shows a blank screen.

Reproduction Steps

  1. Open the NoteBook project.
  2. Create a new note without filling in the Title and Description fields.
  3. Save the note.
  4. Click the "Your Notes" button to view the created note.

Expected Behavior

The project should validate and require the Title and Description fields when creating a note. Users should not be able to create notes without filling in these fields.

Actual Behavior

Currently, the project allows users to create notes without providing the Title and Description. This leads to an error when attempting to view the note, resulting in a blank screen.

Screenshots

N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Impact

This bug affects the usability and functionality of the project by allowing incomplete notes to be created and causing an error when trying to view them. Resolving this issue will improve the overall user experience and prevent errors in the production version.

Contribution and Availability

I am interested in contributing to open-source projects, and I am available to fix this issue as part of my contribution to the GirlScript Summer of Code 2023 program. Kindly assign this issue to me so that I can start working on it.

Additional Information

If there are any specific guidelines, requirements, or deadlines for resolving this issue, please let me know. I am eager to help improve the project and provide a solution for this bug.

Apreksha commented 1 year ago

Hey @Rajat2024, I'm a GSSoC'23 contributor and a full stack developer. I wish to fix the issue of notes being created without title or description. We could raise an alert to inform the user. Could you please assign this task to me?