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

Review and Enhance Contact.js Mongoose Schema #1878

Closed
smog-root opened this issue Nov 2, 2024 · 3 comments
Closed

Review and Enhance Contact.js Mongoose Schema #1878

smog-root opened this issue Nov 2, 2024 · 3 comments

Comments

@smog-root
Copy link
Contributor

The current Contact.js file defines a Mongoose schema for handling contact form submissions. While it covers basic fields like name, email, and message, there are opportunities for improvement to enhance validation and functionality.

Suggested Improvements:

1. Email Validation:

  • Enhance the email validation regex to ensure better format checking.

2. Message Length:

  • Consider adding a character limit for the message field to prevent excessively long submissions.

3. Additional Fields:

  • Discuss the potential addition of optional fields like subject or phone number for better context in contact messages.

4. Error Handling:

  • Ensure proper error handling is implemented in the route/controller that utilizes this schema.

I'm expecting a gssoc-ext with level labels! @PriyaGhosal

Copy link
Contributor

github-actions bot commented Nov 2, 2024

Thank you for creating this issue! 🎉 Your issue will soon be reviewed by either the PA or a mentor. Please note that Level 1 is temporary and can be changed during the review. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

Copy link
Contributor

github-actions bot commented Nov 2, 2024

Thanks for creating the issue in BuddyTrail!
Before you start working on your PR, please make sure to:

  • ⭐ Star the repository if you haven't already.
  • Pull the latest changes to avoid any merge conflicts.
  • Attach before & after screenshots in your PR for clarity.
  • Include the issue number in your PR description for better tracking.
    Don't forget to follow @PriyaGhosal – Project Admin – for more updates!

We're excited to see your contribution as part of GSSOC Extended Edition 2024 and Hacktoberfest! 🎉
Happy open-source contributing!

Copy link
Contributor

github-actions bot commented Jan 5, 2025

Hello @smog-root! Your issue #1878 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant