The websoc enrollment fields are currently copy-pasted across multiple files in the enrollment history feature. Any change to these fields (e.g. adding a new field, etc) requires updating all three locations independently, which is error-prone and inconsistent.
Possible Solution
Maybe extract shared enrollment field definitions into a single source (e.g. a shared Zod schema or typed helper) that the service, REST schema, and GraphQL schema all derive from.
Context
Surfaced during PR #300 review by @laggycomputer
The websoc enrollment fields are currently copy-pasted across multiple files in the enrollment history feature. Any change to these fields (e.g. adding a new field, etc) requires updating all three locations independently, which is error-prone and inconsistent.
Possible Solution
Maybe extract shared enrollment field definitions into a single source (e.g. a shared Zod schema or typed helper) that the service, REST schema, and GraphQL schema all derive from.
Context
Surfaced during PR #300 review by @laggycomputer