dataquantals's picture
Add a "Schedule" button (Primary) and a "Cancel" button (Secondary) at the bottom of the modal. 4. On clicking "Schedule": → Validate that required fields are filled. → Save the interview data to a local database or server-side route as a new Interview record. Use this object structure for each saved interview: { id: auto_generated, participantId: selected_participant_id, projectId: selected_project_id, interviewerId: selected_user_id, datetime: ISO8601 format, mode: "in-person" | "online" | "phone", location: string, notes: optional string, status: "scheduled" } 5. After saving: - Close the modal. - Refresh or update the Upcoming Interviews panel to include the newly scheduled interview. - Show a toast notification: "Interview successfully scheduled." 6. (Optional Enhancement) - Allow document attachment (e.g., Interview Guide, Consent Form). - Add toggle: “Send notification to participant/interviewer”. - Auto-link participant and project fields so that this interview is accessible from both modules. 7. Accessibility: - Modal must be keyboard accessible (Tab to move, Enter to submit, Esc to close). - Include aria-labels on all fields and modal header. 8. Design: - Use Tailwind UI or ShadCN components (like Dialog, Input, Select, Textarea). - Follow the app’s primary colors from Quantals Collect branding. 9. File: Interviews.html - Keep all modal and event-handler code scoped to this file. - Use React component state to manage modal visibility and form state. - Follow Up Deployment
e5d24f0 verified