[ Feature ] Contact Page with Supabase Integration #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces enhancements designed to elevate the application's functionality and streamline user interaction, ensuring seamless integration with backend services and a more engaging user experience.
What's Included:
Contact Page Addition: A new contact page enables users to easily submit their contact information, establishing a direct communication channel between the users and the application team.
Supabase Client Integration: The application now utilizes the Supabase client to manage and store user contact information efficiently. This integration ensures that user data is handled securely and effectively.
Direct Submission to Supabase: The contact form supports direct data submission to Supabase, simplifying the process of capturing and securely storing user contact details.
Introduction of Essential Environment Variables:
NEXT_PUBLIC_SUPABASE_URL
: Specifies the API URL for Supabase services.NEXT_PUBLIC_SUPABASE_ANON_KEY
: Provides the anonymous key required for Supabase request authentication.These variables are critical for a successful integration with Supabase. You'll need to set up a proper configuration within your environment.
User Feedback Mechanisms: Upon submission of the contact form, users are now greeted with success or error toasts, offering immediate feedback on their submission status. This feature enhances the interactivity of the contact page by acknowledging user actions.
Environment Variable Validation Utility: A new utility function has been implemented on the client side to ensure the presence of necessary environment variables. This safeguard throws an error if any required variable is missing, promoting a reliable and correctly configured application environment.
Simplification of the Footer: The footer has been streamlined by removing unnecessary links, focusing the user's attention on the most relevant information and features.
New
Contact
type Interface: A newContact
interface has been added to ensure data consistency and facilitate type safety. This interface is defined as follows: