Skip to content

Feat/contact us integration#3

Open
DeFiFoFum wants to merge 3 commits into
mainfrom
feat/contact-us_integration
Open

Feat/contact us integration#3
DeFiFoFum wants to merge 3 commits into
mainfrom
feat/contact-us_integration

Conversation

@DeFiFoFum
Copy link
Copy Markdown

@DeFiFoFum DeFiFoFum commented Mar 9, 2025

This pull request introduces significant changes to the Soul Solidity website, including a new contact form integration with Discord, updates to the README, and the addition of various supporting files and documentation. The most important changes include the implementation of the contact form's backend service, updates to the README for the new project, and the introduction of architecture decision records (ADRs).

Contact Form Integration:

  • Added environment variables for Discord webhook URL and optional role ID for contact form notifications in .env.example.
  • Implemented a rate-limited API route in app/api/contact/route.ts to handle contact form submissions, validate data, and send notifications via the contact service.
  • Created ContactServiceFactory to provide the appropriate contact service implementation based on configuration.
  • Developed DiscordContactService to send contact form submissions to a Discord channel via webhooks.
  • Defined IContactService and ContactFormData interfaces to standardize the contact service implementations.

Documentation and Project Setup:

  • Updated README.md to reflect the new project name, technology stack, features, setup instructions, and documentation links.
  • Added a new docs/README.md to provide an overview of the documentation structure and contents.
  • Created ADRs to document significant architectural decisions, starting with 0001-contact-service-interface.md to explain the contact service interface and dependency injection pattern.
  • Added a template for future ADRs in docs/adr/template.md.
  • Included a contact service architecture diagram in docs/architecture/diagrams/contact-service.md to visualize the system components and data flow.

These changes collectively enhance the functionality, maintainability, and documentation of the Soul Solidity website.

…idation

- Implement contact form API route with server-side validation
- Create Discord contact service for sending form submissions via webhooks
- Add rate limiting to prevent abuse of contact form
- Implement dependency injection pattern for contact services
- Update contact form component to handle API responses and display toast notifications
- Add .env.example for Discord webhook configuration
…ntact service

- Create README.md for documentation directory
- Add ADR for contact service interface and dependency injection
- Create ADR template for future architectural decisions
- Add architecture overview document
- Include contact service architecture diagram
- Create Discord webhook integration guide
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
soul-solidity-landing-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2025 9:23pm

- Create navigation test suite for desktop and mobile viewports
- Verify "Soul Solidity" logo is visible across different screen sizes
- Implement Playwright tests with viewport configuration and network idle wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant