Skip to content

Comments

Add Test Scheduling with Dashboard Integration and Fix Study Creation#1685

Open
abhaygoudannavar wants to merge 4 commits intoruxailab:developfrom
abhaygoudannavar:feature/test-scheduling
Open

Add Test Scheduling with Dashboard Integration and Fix Study Creation#1685
abhaygoudannavar wants to merge 4 commits intoruxailab:developfrom
abhaygoudannavar:feature/test-scheduling

Conversation

@abhaygoudannavar
Copy link

closes #1684

Feature Description

Implemented a comprehensive test scheduling system that allows researchers to set specific dates, times, and notes for usability studies. This scheduled information is then surfaced on the researcher's dashboard for easy tracking. Additionally, fixed critical bugs related to study creation persistence and dashboard visibility.
Key Components:

  1. Study Model: Extended to support scheduledDate, scheduledTime, scheduledNotes, and notification preferences.
  2. Settings UI: Added a new "Schedule" card in study settings.
  3. Dashboard UI: Replaced the static "Next Session" card with a dynamic "Scheduled Tests" list.
  4. Backend Integration: Updated StudyController and UserController ensuring seamless data persistence and immediate UI updates upon creation.

Motivation

Researchers needed a way to plan studies in advance and see a consolidated view of upcoming sessions. The previous system lacked a dedicated scheduling field (relying only on generic start/end dates) and had issues where newly created studies would not appear in the dashboard until a manual reload/creation would fail due to serialization errors.

Expected Behaviour

  1. Scheduling: Users can select a date AND time in Study Settings.
  2. Dashboard: The "Scheduled Tests" card displays all future tests, sorted by date/time.
  3. Creation: Clicking "Create Study" immediately adds the study to the "Active Studies" list and redirects the user, without hanging or requiring a reload.
  4. Visibility: Studies scheduled for "Today" but at a later time are correctly shown as upcoming.

Additional Info (Technical Implementation)

  • Fix for "Create Study" Hang: UserController.addStudyToUser now properly serializes the StudyAdmin class instance to a plain object before saving to Firestore.
  • Fix for Dashboard Visibility: Updated getTestsAdminByUser flow in Vuex to optimistically add the new study to the state.
  • Date/Time Handling: Combined scheduledDate and scheduledTime fields for precise Date object sorting.

Result

image image

@sonarqubecloud
Copy link

@abhaygoudannavar
Copy link
Author

@marcgc21 is the feature good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[✨ FEATURE]: Add Test Scheduling with Dashboard Integration and Fix Study Creation

1 participant