TeachKit project

TeachKit / Design system

Documentation v0.1 · Released product

Design system contents

Components

Feedback entry and acknowledgement

Let a person describe an issue with a named topic, message and optional mood.

On this page

Purpose and usage

Let a person describe an issue with a named topic, message and optional mood.

Anatomy

Anatomy
PartContract
TopicRequired native select
MessageTextareaField
MoodOptional icon-based choice
AcknowledgementLocal thanks after submit

Variants and configuration

Variants and configuration
Input or variantBehavior
onSubmittedOptional delayed parent callback
SubmissionPOST /api/feedback with topic, feedback, mood and current URL

State coverage

State coverage
StateImplemented behavior
DraftTopic/message required before submit
SentThanks message and reset fields
DelayReset/callback after 1500ms

Interaction and composition

  • Keep user feedback out of public portfolio fixtures.
  • Do not send an actual feedback message during capture.
  • Make failures distinguishable from successful acknowledgement.

Accessibility and readiness

The current submit flow does not inspect res.ok before showing Thanks. Topic, message and mood naming, busy feedback and visible network failure need review. No outgoing feedback is sent by the harness.

Source references

Source references
FileResponsibility
src/components/FeedbackForm.tsxTopic, message, mood and POST acknowledgement

Source audit: 2026-10-07 · Revision d8cf23d0a329 · Documentation v0.1