Skip to content

Add Feedback page and API endpoint storing submissions in a new Feedback table#11

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/create-feedback-page-and-form
Draft

Add Feedback page and API endpoint storing submissions in a new Feedback table#11
Copilot wants to merge 3 commits into
mainfrom
copilot/create-feedback-page-and-form

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

Adds a user-facing Feedback form (Name, Email, Comments) in the web app and a POST /api/feedback endpoint in the API, both backed by a new Feedback table.

Data layer (KulaHub.Data)

  • New Feedback entity — FeedbackId, Name, Email, Comments, standard audit columns; no ClientId (not tenant-owned)
  • KulaHubDbContext: added Feedbacks DbSet with EF Core column/length config
  • IKulaHubCrmService: added SubmitFeedbackAsync(SubmitFeedbackCommand) — validates required fields, saves in a transaction

API (KulaHub.Api)

  • FeedbackEndpoints.cs: POST /api/feedback — validates body, delegates to service, returns 201 Created
  • Registered via app.MapFeedbackEndpoints() in Program.cs

Web (KulaHub.Web)

  • Pages/Feedback.cshtml + .cshtml.cs: form with client- and server-side validation; shows inline success message on submission
  • "Feedback" nav link added to _Layout.cshtml

Database

  • Database/Feedback.sql: DDL for the new dbo.Feedback table
  • docs/data-model.md: Feedback table documented

No IntegrationInbox entry is created on feedback submission — the table requires ClientId, which feedback submissions do not have.

Copilot AI and others added 2 commits April 24, 2026 13:40
Copilot AI changed the title [WIP] Add feedback page with form and storage for submissions Add Feedback page and API endpoint storing submissions in a new Feedback table Apr 24, 2026
Copilot AI requested a review from timmetcalfe April 24, 2026 13:47
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.

Create a feedback page with a feedback form and store the contents of the submitted form in a new table called Feedback

2 participants