From 7f91e2e557e0174964b2d501dcaf954b887ad63f Mon Sep 17 00:00:00 2001 From: ivan-pelly Date: Wed, 11 Mar 2026 19:48:16 -0700 Subject: [PATCH] Changed grad date to next iep date --- api/api.http | 2 +- .../DataTransferObjects/CreateStudentDto.cs | 2 +- .../DataTransferObjects/UpdateStudentDto.cs | 2 +- .../Models/DatabaseObjects/dbStudent.cs | 2 +- .../DataAccess/Repositories/StudentRepository.cs | 4 ++-- api/src/Models/ResponseTypes/StudentResponse.cs | 2 +- db/Objects/procedures/sp_SeedData_1.sql | 2 +- db/Objects/procedures/sp_Student_GetAll.sql | 2 +- db/Objects/procedures/sp_Student_GetById.sql | 2 +- .../procedures/sp_Student_GetWithAssignments.sql | 2 +- db/Objects/procedures/sp_Student_Insert.sql | 8 ++++---- db/Objects/procedures/sp_Student_Update.sql | 4 ++-- db/Objects/tables/student.sql | 2 +- db/Objects/views/v_student_card.sql | 4 ++-- docs/db.html | 2 +- .../add-student-modal/add-student-modal.html | 8 ++++---- .../add-student-modal/add-student-modal.ts | 2 +- .../student-card-full/student-card-full.html | 4 ++-- .../student-card-full/student-card-full.ts | 16 ++++++++-------- .../components/student-card/student-card.html | 2 +- .../components/student-card/student-card.html | 2 +- .../src/app/shared/classes/create-student.dto.ts | 2 +- .../src/app/shared/classes/student-card.dto.ts | 2 +- .../app/shared/services/dummy-student.service.ts | 6 +++--- .../src/app/shared/services/student.service.ts | 2 +- 25 files changed, 44 insertions(+), 44 deletions(-) diff --git a/api/api.http b/api/api.http index d040041..76bcaf1 100644 --- a/api/api.http +++ b/api/api.http @@ -19,7 +19,7 @@ Content-Type: application/json "identifier": "WIN-1001", "programYear": 2026, "enrollmentDate": "2026-01-15", - "expectedGrad": "2028-06-01" + "nextIepDate": "2028-06-01" } ### diff --git a/api/src/DataAccess/Models/DataTransferObjects/CreateStudentDto.cs b/api/src/DataAccess/Models/DataTransferObjects/CreateStudentDto.cs index c4b5e7c..36a4e53 100644 --- a/api/src/DataAccess/Models/DataTransferObjects/CreateStudentDto.cs +++ b/api/src/DataAccess/Models/DataTransferObjects/CreateStudentDto.cs @@ -5,5 +5,5 @@ public class CreateStudentDto public string? Identifier { get; set; } public int? ProgramYear { get; set; } public DateTime? EnrollmentDate { get; set; } - public DateTime? ExpectedGrad { get; set; } + public DateTime? NextIepDate { get; set; } } diff --git a/api/src/DataAccess/Models/DataTransferObjects/UpdateStudentDto.cs b/api/src/DataAccess/Models/DataTransferObjects/UpdateStudentDto.cs index 744151b..3712e3e 100644 --- a/api/src/DataAccess/Models/DataTransferObjects/UpdateStudentDto.cs +++ b/api/src/DataAccess/Models/DataTransferObjects/UpdateStudentDto.cs @@ -5,5 +5,5 @@ public class UpdateStudentDto public string? Identifier { get; set; } public int? ProgramYear { get; set; } public DateTime? EnrollmentDate { get; set; } - public DateTime? ExpectedGrad { get; set; } + public DateTime? NextIepDate { get; set; } } diff --git a/api/src/DataAccess/Models/DatabaseObjects/dbStudent.cs b/api/src/DataAccess/Models/DatabaseObjects/dbStudent.cs index 0f87a9b..3c1f785 100644 --- a/api/src/DataAccess/Models/DatabaseObjects/dbStudent.cs +++ b/api/src/DataAccess/Models/DatabaseObjects/dbStudent.cs @@ -7,6 +7,6 @@ public class dbStudent public string? Identifier { get; set; } public int? ProgramYear { get; set; } public DateTime? EnrollmentDate { get; set; } - public DateTime? ExpectedGrad { get; set; } + public DateTime? NextIepDate { get; set; } public DateTime? CreatedAt { get; set; } } diff --git a/api/src/DataAccess/Repositories/StudentRepository.cs b/api/src/DataAccess/Repositories/StudentRepository.cs index f4f42d6..e440017 100644 --- a/api/src/DataAccess/Repositories/StudentRepository.cs +++ b/api/src/DataAccess/Repositories/StudentRepository.cs @@ -50,7 +50,7 @@ public class StudentRepository p_identifier = dto.Identifier, p_program_year = dto.ProgramYear, p_enrollment_date = dto.EnrollmentDate, - p_expected_grad = dto.ExpectedGrad + p_next_iep_date = dto.NextIepDate }, commandType: CommandType.StoredProcedure); @@ -68,7 +68,7 @@ public class StudentRepository p_identifier = dto.Identifier, p_program_year = dto.ProgramYear, p_enrollment_date = dto.EnrollmentDate, - p_expected_grad = dto.ExpectedGrad + p_next_iep_date = dto.NextIepDate }, commandType: CommandType.StoredProcedure); return rowsAffected > 0; diff --git a/api/src/Models/ResponseTypes/StudentResponse.cs b/api/src/Models/ResponseTypes/StudentResponse.cs index 9111d2c..47c3822 100644 --- a/api/src/Models/ResponseTypes/StudentResponse.cs +++ b/api/src/Models/ResponseTypes/StudentResponse.cs @@ -4,7 +4,7 @@ public class StudentResponse { public Guid StudentId { get; set; } public string? Identifier { get; set; } - public DateTime? ExpectedGradDate { get; set; } + public DateTime? NextIepDate { get; set; } public DateTime? LastEntryDate { get; set; } public int GoalCount { get; set; } public int ProgressEventCount { get; set; } diff --git a/db/Objects/procedures/sp_SeedData_1.sql b/db/Objects/procedures/sp_SeedData_1.sql index 57d0c6f..9719110 100644 --- a/db/Objects/procedures/sp_SeedData_1.sql +++ b/db/Objects/procedures/sp_SeedData_1.sql @@ -28,7 +28,7 @@ BEGIN ('e5f6a7b8-0002-4000-a000-000000000001', 'd4e5f6a7-0002-4000-a000-000000000001', 'b2c3d4e5-0001-4000-a000-000000000001', 'c3d4e5f6-0004-4000-a000-000000000001', 1, 'active', UTC_TIMESTAMP()), ('e5f6a7b8-0003-4000-a000-000000000001', 'd4e5f6a7-0003-4000-a000-000000000001', 'b2c3d4e5-0001-4000-a000-000000000001', 'c3d4e5f6-0005-4000-a000-000000000001', 1, 'active', UTC_TIMESTAMP()); -- 6. STUDENTS - INSERT INTO student (id_student, id_program, identifier, program_year, enrollment_date, expected_grad, created_at) VALUES + INSERT INTO student (id_student, id_program, identifier, program_year, enrollment_date, next_iep_date, created_at) VALUES ('f6a7b8c9-0001-4000-a000-000000000001', 'b2c3d4e5-0001-4000-a000-000000000001', 'STU-001', 1, '2025-09-01', '2029-06-15', UTC_TIMESTAMP()), ('f6a7b8c9-0002-4000-a000-000000000001', 'b2c3d4e5-0001-4000-a000-000000000001', 'STU-002', 1, '2025-09-01', '2029-06-15', UTC_TIMESTAMP()), ('f6a7b8c9-0003-4000-a000-000000000001', 'b2c3d4e5-0001-4000-a000-000000000001', 'STU-003', 2, '2024-09-01', '2028-06-15', UTC_TIMESTAMP()), diff --git a/db/Objects/procedures/sp_Student_GetAll.sql b/db/Objects/procedures/sp_Student_GetAll.sql index af0d66c..59269f8 100644 --- a/db/Objects/procedures/sp_Student_GetAll.sql +++ b/db/Objects/procedures/sp_Student_GetAll.sql @@ -4,7 +4,7 @@ BEGIN SELECT studentId, identifier, - expectedGradDate, + nextIepDate, lastEntryDate, goalCount, progressEventCount diff --git a/db/Objects/procedures/sp_Student_GetById.sql b/db/Objects/procedures/sp_Student_GetById.sql index 8ff9d8d..9e75526 100644 --- a/db/Objects/procedures/sp_Student_GetById.sql +++ b/db/Objects/procedures/sp_Student_GetById.sql @@ -4,7 +4,7 @@ BEGIN SELECT studentId, identifier, - expectedGradDate, + nextIepDate, lastEntryDate, goalCount, progressEventCount diff --git a/db/Objects/procedures/sp_Student_GetWithAssignments.sql b/db/Objects/procedures/sp_Student_GetWithAssignments.sql index abf28b1..6a942ea 100644 --- a/db/Objects/procedures/sp_Student_GetWithAssignments.sql +++ b/db/Objects/procedures/sp_Student_GetWithAssignments.sql @@ -8,7 +8,7 @@ BEGIN SELECT vc.studentId, vc.identifier, - vc.expectedGradDate, + vc.nextIepDate, vc.lastEntryDate, vc.goalCount, vc.progressEventCount diff --git a/db/Objects/procedures/sp_Student_Insert.sql b/db/Objects/procedures/sp_Student_Insert.sql index 2e06e6b..111c93f 100644 --- a/db/Objects/procedures/sp_Student_Insert.sql +++ b/db/Objects/procedures/sp_Student_Insert.sql @@ -6,7 +6,7 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_Insert`( IN p_identifier VARCHAR(50), IN p_program_year INT, IN p_enrollment_date DATE, - IN p_expected_grad DATE + IN p_next_iep_date DATE ) BEGIN INSERT INTO student @@ -16,7 +16,7 @@ BEGIN identifier, program_year, enrollment_date, - expected_grad, + next_iep_date, created_at ) VALUES @@ -26,7 +26,7 @@ BEGIN p_identifier, p_program_year, p_enrollment_date, - p_expected_grad, + p_next_iep_date, UTC_TIMESTAMP() ); INSERT INTO user_student (id_user_student, id_user, id_student, is_primary) @@ -37,7 +37,7 @@ BEGIN identifier, program_year, enrollment_date, - expected_grad, + next_iep_date, created_at FROM student WHERE id_student = p_id_student diff --git a/db/Objects/procedures/sp_Student_Update.sql b/db/Objects/procedures/sp_Student_Update.sql index 6552808..9eb89ea 100644 --- a/db/Objects/procedures/sp_Student_Update.sql +++ b/db/Objects/procedures/sp_Student_Update.sql @@ -4,7 +4,7 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_Update`( IN p_identifier VARCHAR(50), IN p_program_year INT, IN p_enrollment_date DATE, - IN p_expected_grad DATE + IN p_next_iep_date DATE ) BEGIN UPDATE student @@ -12,7 +12,7 @@ BEGIN identifier = COALESCE(p_identifier, identifier), program_year = COALESCE(p_program_year, program_year), enrollment_date = COALESCE(p_enrollment_date, enrollment_date), - expected_grad = COALESCE(p_expected_grad, expected_grad) + next_iep_date = COALESCE(p_next_iep_date, next_iep_date) WHERE id_student = p_id_student; SELECT ROW_COUNT() AS rows_affected; END;; diff --git a/db/Objects/tables/student.sql b/db/Objects/tables/student.sql index 44c4d76..44eebd8 100644 --- a/db/Objects/tables/student.sql +++ b/db/Objects/tables/student.sql @@ -4,7 +4,7 @@ CREATE TABLE `student` ( `identifier` varchar(50) DEFAULT NULL, `program_year` int DEFAULT NULL, `enrollment_date` date DEFAULT NULL, - `expected_grad` date DEFAULT NULL, + `next_iep_date` date DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id_student`), KEY `student_ibfk_1` (`id_program`), diff --git a/db/Objects/views/v_student_card.sql b/db/Objects/views/v_student_card.sql index 4a1647c..1a686b5 100644 --- a/db/Objects/views/v_student_card.sql +++ b/db/Objects/views/v_student_card.sql @@ -1,7 +1,7 @@ CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`%` SQL SECURITY DEFINER VIEW `winstudentgoaltracker`.`v_student_card` AS -select `s`.`id_student` AS `studentId`,`s`.`identifier` AS `identifier`,`s`.`expected_grad` AS `expectedGradDate`,max(`pe`.`created_at`) AS `lastEntryDate`,count(distinct `g`.`id_goal`) AS `goalCount`,count(distinct `pe`.`id_progress_event`) AS `progressEventCount` +select `s`.`id_student` AS `studentId`,`s`.`identifier` AS `identifier`,`s`.`next_iep_date` AS `nextIepDate`,max(`pe`.`created_at`) AS `lastEntryDate`,count(distinct `g`.`id_goal`) AS `goalCount`,count(distinct `pe`.`id_progress_event`) AS `progressEventCount` from ((`winstudentgoaltracker`.`student` `s` left join `winstudentgoaltracker`.`goal` `g` on((`g`.`id_student` = `s`.`id_student`))) left -join `winstudentgoaltracker`.`progress_event` `pe` on((`pe`.`id_goal` = `g`.`id_goal`))) group by `s`.`id_student`,`s`.`identifier`,`s`.`expected_grad`; +join `winstudentgoaltracker`.`progress_event` `pe` on((`pe`.`id_goal` = `g`.`id_goal`))) group by `s`.`id_student`,`s`.`identifier`,`s`.`next_iep_date`; diff --git a/docs/db.html b/docs/db.html index 95d8fbe..dc07804 100644 --- a/docs/db.html +++ b/docs/db.html @@ -1264,7 +1264,7 @@ — - expected_grad + next_iep_date date NULL NULL diff --git a/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.html b/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.html index ab309bb..cd3a03b 100644 --- a/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.html +++ b/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.html @@ -42,12 +42,12 @@ -->
- +
diff --git a/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.ts b/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.ts index 5054058..992116a 100644 --- a/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.ts +++ b/ui/winstudentgoaltracker/src/app/desktop/components/add-student-modal/add-student-modal.ts @@ -28,7 +28,7 @@ export class AddStudentModal { identifier: '', programYear: null, enrollmentDate: null, - expectedGrad: null, + nextIepDate: null, }; // ************************** Properties *************************** diff --git a/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.html b/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.html index 2457a98..f98094c 100644 --- a/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.html +++ b/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.html @@ -17,8 +17,8 @@
- - + +
diff --git a/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.ts b/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.ts index d1ffd35..a0f85d3 100644 --- a/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.ts +++ b/ui/winstudentgoaltracker/src/app/desktop/components/student-card-full/student-card-full.ts @@ -40,11 +40,11 @@ export class StudentCardFull implements OnDestroy { // Form fields — always editable protected identifier = ''; - protected expectedGradDate = ''; + protected nextIepDate = ''; // Snapshot of last-saved values for cancel private savedIdentifier = ''; - private savedExpectedGradDate = ''; + private savedNextIepDate = ''; // ************************** Properties *************************** @@ -53,7 +53,7 @@ export class StudentCardFull implements OnDestroy { // ***************************************************************** hasChanges(): boolean { return this.identifier !== this.savedIdentifier - || this.expectedGradDate !== this.savedExpectedGradDate; + || this.nextIepDate !== this.savedNextIepDate; } // ************************ Public Methods ************************* @@ -70,14 +70,14 @@ export class StudentCardFull implements OnDestroy { const result = await this.studentService.updateStudent(this.studentId, { identifier: this.identifier, - expectedGrad: this.expectedGradDate || null, + nextIepDate: this.nextIepDate || null, }); this.saving.set(false); if (result.success) { this.savedIdentifier = this.identifier; - this.savedExpectedGradDate = this.expectedGradDate; + this.savedNextIepDate = this.nextIepDate; this.showSuccessTemporarily('Changes saved.'); this.studentService.notifyDataChanged(); } else { @@ -90,7 +90,7 @@ export class StudentCardFull implements OnDestroy { // ***************************************************************** onCancel() { this.identifier = this.savedIdentifier; - this.expectedGradDate = this.savedExpectedGradDate; + this.nextIepDate = this.savedNextIepDate; this.errorMessage.set(null); this.successMessage.set(null); } @@ -138,10 +138,10 @@ export class StudentCardFull implements OnDestroy { if (result.success && result.payload) { const s = result.payload; this.identifier = s.identifier; - this.expectedGradDate = this.toDateInput(s.expectedGradDate); + this.nextIepDate = this.toDateInput(s.nextIepDate); this.savedIdentifier = this.identifier; - this.savedExpectedGradDate = this.expectedGradDate; + this.savedNextIepDate = this.nextIepDate; this.loaded.set(true); } else { this.errorMessage.set(result.message); diff --git a/ui/winstudentgoaltracker/src/app/desktop/components/student-card/student-card.html b/ui/winstudentgoaltracker/src/app/desktop/components/student-card/student-card.html index 902437c..61850e6 100644 --- a/ui/winstudentgoaltracker/src/app/desktop/components/student-card/student-card.html +++ b/ui/winstudentgoaltracker/src/app/desktop/components/student-card/student-card.html @@ -2,7 +2,7 @@

🎓 {{ student().identifier }}

- Grad Date: {{ student().expectedGradDate | date:'M/d/yy'}} + IEP Date: {{ student().nextIepDate | date:'M/d/yy'}} @if (student().lastEntryDate) { Last entry: {{ student().lastEntryDate | date:'M/d/yy' }} diff --git a/ui/winstudentgoaltracker/src/app/mobile/components/student-card/student-card.html b/ui/winstudentgoaltracker/src/app/mobile/components/student-card/student-card.html index cb092c2..f565e69 100644 --- a/ui/winstudentgoaltracker/src/app/mobile/components/student-card/student-card.html +++ b/ui/winstudentgoaltracker/src/app/mobile/components/student-card/student-card.html @@ -1,6 +1,6 @@

{{ student().identifier }}

- Grad Date: {{ student().expectedGradDate | date:'M/d/yy' }} + IEP Date: {{ student().nextIepDate | date:'M/d/yy' }}
{{ student().goalCount }} goals {{ student().progressEventCount }} events diff --git a/ui/winstudentgoaltracker/src/app/shared/classes/create-student.dto.ts b/ui/winstudentgoaltracker/src/app/shared/classes/create-student.dto.ts index d1416ab..945aa76 100644 --- a/ui/winstudentgoaltracker/src/app/shared/classes/create-student.dto.ts +++ b/ui/winstudentgoaltracker/src/app/shared/classes/create-student.dto.ts @@ -2,5 +2,5 @@ export interface CreateStudentDto { identifier: string; programYear: number | null; enrollmentDate: Date | null; - expectedGrad: Date | null; + nextIepDate: Date | null; } diff --git a/ui/winstudentgoaltracker/src/app/shared/classes/student-card.dto.ts b/ui/winstudentgoaltracker/src/app/shared/classes/student-card.dto.ts index 05784d1..73441c2 100644 --- a/ui/winstudentgoaltracker/src/app/shared/classes/student-card.dto.ts +++ b/ui/winstudentgoaltracker/src/app/shared/classes/student-card.dto.ts @@ -1,7 +1,7 @@ export interface StudentCardDto { studentId: string; identifier: string; - expectedGradDate: Date; + nextIepDate: Date; lastEntryDate: Date | null; goalCount: number; progressEventCount: number; diff --git a/ui/winstudentgoaltracker/src/app/shared/services/dummy-student.service.ts b/ui/winstudentgoaltracker/src/app/shared/services/dummy-student.service.ts index ff066de..5e9297e 100644 --- a/ui/winstudentgoaltracker/src/app/shared/services/dummy-student.service.ts +++ b/ui/winstudentgoaltracker/src/app/shared/services/dummy-student.service.ts @@ -71,7 +71,7 @@ export class DummyStudentService { { studentId: '1', identifier: 'J.B', - expectedGradDate: new Date('2027-02-27'), + nextIepDate: new Date('2027-02-27'), lastEntryDate: new Date('2026-02-21'), goalCount: 3, progressEventCount: 5, @@ -79,7 +79,7 @@ export class DummyStudentService { { studentId: '2', identifier: 'M.K', - expectedGradDate: new Date('2027-02-27'), + nextIepDate: new Date('2027-02-27'), lastEntryDate: new Date('2026-02-25'), goalCount: 4, progressEventCount: 8, @@ -87,7 +87,7 @@ export class DummyStudentService { { studentId: '3', identifier: 'A.R', - expectedGradDate: new Date('2027-02-27'), + nextIepDate: new Date('2027-02-27'), lastEntryDate: null, goalCount: 2, progressEventCount: 0, diff --git a/ui/winstudentgoaltracker/src/app/shared/services/student.service.ts b/ui/winstudentgoaltracker/src/app/shared/services/student.service.ts index 8e0366b..7831e10 100644 --- a/ui/winstudentgoaltracker/src/app/shared/services/student.service.ts +++ b/ui/winstudentgoaltracker/src/app/shared/services/student.service.ts @@ -154,7 +154,7 @@ export class StudentService { // ***************************************************************** // Updates a student and returns the refreshed student data. // ***************************************************************** - async updateStudent(studentId: string, data: { identifier?: string; programYear?: number | null; enrollmentDate?: string | null; expectedGrad?: string | null }): Promise> { + async updateStudent(studentId: string, data: { identifier?: string; programYear?: number | null; enrollmentDate?: string | null; nextIepDate?: string | null }): Promise> { try { const result = await firstValueFrom( this.http.put>(`${this.base}/api/Student/${studentId}`, data)