Add Registration Questions domain (per-offering intake forms) #11
Reference in New Issue
Block a user
Delete Branch "feature/registration-questions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #5 (Registration Questions). Builds on the Offerings foundation (#1).
What's included
src/Registration/domain —Question+Answervalue objects,QuestionRepository+AnswerRepository,QuestionEndpoint(REST),QuestionController+templates/admin/questions.phpSchema.php—us_questionsandus_question_answers(polymorphicregistration_type/registration_id, shared with policies later)text/textarea/select/checkbox;selectoptions stored as JSONPlugin,RestRegistrar,AdminMenuREST API
/offerings/{id}/questions/questionsmanage_questions+ offering owner/studio-admin/questions/{id}manage_questions+ offering owner/studio-admin/questions/{id}manage_questions+ offering owner/studio-adminNotes
AnswerRepository(insert/insertMany/findByRegistration) is built here and will be consumed by the booking/enrolment flow in #3/#4.Tests
tests/Unit/Registration/— Question, Answer, QuestionRepository, AnswerRepository (19 tests)composer test(63 total),composer cs, and PHPStan level 6 all passRefs #5
🤖 Generated with Claude Code