-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitlog.txt
More file actions
954 lines (651 loc) · 33.4 KB
/
Copy pathgitlog.txt
File metadata and controls
954 lines (651 loc) · 33.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
commit 5f9ce881a4be715df8a6aa33d8bce7074d272bac
Author: Bin <bhe03@qub.ac.uk>
Date: Wed Apr 29 15:36:09 2026 +0100
Add files via upload
commit 2cbc01674e32de4181a5fe761668813fa23ceff2
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Apr 29 13:48:17 2026 +0100
Video improvement
commit 1e7aaecf5e1cb35a5d95c75a15a0854b6a3d33d7
Author: BINGGAN135 <mxw1069@student.bham.ac.uk>
Date: Tue Apr 28 18:30:06 2026 +0100
Update script.js
Fix login error message
commit 775a4ff7cdab6bcae4a5508536df8207f79d7183
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Tue Apr 28 15:27:50 2026 +0100
Completed the video
commit e2f892df90ea7df461707291e69961edb0772d2f
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Apr 28 11:31:05 2026 +0100
feat(backend+tests): enhance BP reading seeding and add note author to carer tests
commit f20dcad6b8658cc4514990b92261ef4e4ab3b33b
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Mon Apr 27 20:09:25 2026 +0100
feat(s6+gp): fix GP danger count refresh, add carer note signature and reading history
GP dashboard:
- Auto-refresh every 10s when a patient is selected so danger count and chart stay current without manual reload
Carer note signature (S6):
- Add optional note_author field to BPReading model
- "Signed by" input pre-filled with logged-in user's name
- Signature stored and shown in Last Visit Record
Carer reading history (S6):
- Reading History table embedded inside Patient Info panel
- Loads all readings (Date/Time, BP, Status, Note, Signed by) when patient is selected; defaults to 10 rows with expand/collapse toggle
- social_care_worker can access full reading list via GET /bp-readings
Demo data:
- seed_demo.py: 28 readings for Jack (2026-04-01 to 2026-04-27) with carer notes and auto-linked relative + GP
Files: backend/models.py, crud/bp_readings.py, routers/patients.py, rontend/carer.html, script.js, style.css, seed_demo.py
Styling:
- Introduce CSS variables for colors, typography, spacing, shadows, and border-radius across all pages
- Redesign login page with full-screen gradient background and centered white card with logo and subtitle
- Update navbar with increased height, drop shadow, and outline logout button
- Redesign cards with white background, green top accent border, and shadow
- Add button transition animations (hover lift, click scale)
- Add green focus ring on all inputs and selects
- Add .badge-normal/high/danger status pills for BP readings (patient page)
- Add .advice-box with color variants for carer visit records
- Add .stat-grid for GP weekly summary (3-column stat display)
- Add .alert-item and .gp-advice-box styles for relative page
- Add user avatar circle (name initial) in navbar across all pages
- Add fadeUp/fadeIn animations for cards and panels
- Add toast slide-in animation
GP Chart:
- Sort readings ascending by timestamp before rendering so X-axis runs left (oldest) to right (newest)
- Change X-axis tick labels to "MMM DD HH:mm" format (e.g. Apr 21 14:30)
- Preserve full "YYYY-MM-DD HH:MM:SS" timestamp in hover tooltip via custom title callback
commit b29859f3fd953cd39a44b3753a5d8bda9313850a
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Apr 22 09:19:44 2026 +0100
feat(frontend): beautify UI with green design system and improve GP chart
Styling:
- Introduce CSS variables for colors, typography, spacing, shadows, and border-radius across all pages
- Redesign login page with full-screen gradient background and centered white card with logo and subtitle
- Update navbar with increased height, drop shadow, and outline logout button
- Redesign cards with white background, green top accent border, and shadow
- Add button transition animations (hover lift, click scale)
- Add green focus ring on all inputs and selects
- Add .badge-normal/high/danger status pills for BP readings (patient page)
- Add .advice-box with color variants for carer visit records
- Add .stat-grid for GP weekly summary (3-column stat display)
- Add .alert-item and .gp-advice-box styles for relative page
- Add user avatar circle (name initial) in navbar across all pages
- Add fadeUp/fadeIn animations for cards and panels
- Add toast slide-in animation
GP Chart:
- Sort readings ascending by timestamp before rendering so X-axis runs left (oldest) to right (newest)
- Change X-axis tick labels to "MMM DD HH:mm" format (e.g. Apr 21 14:30)
- Preserve full "YYYY-MM-DD HH:MM:SS" timestamp in hover tooltip via custom title callback
commit 68e4ea0baa7909132dc91e2b33e25753516f7055
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Tue Apr 21 23:32:17 2026 +0100
feat(frontend+backend): add user registration, GP binding, and sidebar navigation
commit d92a3680862e50715ded0e4f93c1fbc9ef924655
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Tue Apr 21 22:02:44 2026 +0100
feat(frontend): migrate API routes, fix alerts polling, implement S6/S7 for carer, update GP summary
commit 293e28f148eb76a134745cbbc160762e950cdaa2
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Apr 21 15:29:35 2026 +0100
feat(tests): add tests for carer note functionality and access restrictions(s6, s7)
commit 85270ab4e02155c26e7ba16e2a3f62b15d70f3cb
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Apr 21 13:37:46 2026 +0100
feat(backend): add social care worker BP reading access and note updates
Allow social care workers to view all patients and access the latest BP reading with note, reading id, and carer advice.
Add support for updating BP reading notes through a dedicated patient reading endpoint.
commit af52c0d22d8d5aa72dfce498afbdd3ca01266d43
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Apr 21 12:18:29 2026 +0100
feat(backend): add note field to BPReading model for S6 visit records
commit 83051fd6aa078beb4472b39c81cae67ac1a3e007
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 21:09:51 2026 +0100
feat(tests): add tests for GP patient dashboard history graph and summary
commit 4030c182a5e11cb49b8337b14a65b9e0b7ec3b20
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 20:53:47 2026 +0100
feat(backend): rename average_bp function to average_systolic and add average_diastolic function
commit 42f794afdb38eaf9b288b306b32debe4f3f34aec
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 19:38:33 2026 +0100
fix(seed): adjust random status index range to avoid zero for BP readings
commit 0b82c0377ccd5f09ced8b0a3b4e46f2accce7714
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 19:16:12 2026 +0100
feat(backend): enhance create_reading function to include timestamp and add seeding for last 7 days of readings
commit a06788d60afed53a4a492da4c25ba853abcd2737
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 17:56:40 2026 +0100
feat(tests): split S1 and S2 tests into separate files
commit 33bbf7235630deb7c660671f3170536af641c1e2
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 17:52:50 2026 +0100
feat(backend): enhance update delivery status to handle alert not found scenario
feat(tests): add tests for alert delivery status updates and handle missing alerts
commit 9be87c6d5679f2042b733e91d8acfbcd6e9ac10c
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 15:37:48 2026 +0100
feat(tests): refactor BP classification test to use parameterized inputs for better coverage
commit b01edda761a0f3724516f93abebfe3c2c4fac59e
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 15:29:26 2026 +0100
feat(tests): add user and record creation helpers for testing and implement normal BP classification test
commit 0b6f72e945abf52fdc395bf1756db6ad1a30cb8d
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Apr 16 14:42:26 2026 +0100
refactor(backend): update reading functions to use last 7 days of data
commit 13cc629b87fd00b8abb38a7097df1c34e0868dcf
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 15:54:13 2026 +0100
Clean up README and update project details
Removed detailed iteration history for frontend development and updated project name and welcome message.
commit 3ab7784617c765bfe96df3cac882a3258ab7b3b1
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 14:46:13 2026 +0000
Update sequence diagrams and class diagram for SmileCare project
commit 24521510b1cb97378fceeb957a11d533a076bc50
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Thu Mar 19 13:36:58 2026 +0000
Change the logic of the relative page to only display the latest alarm of the day.
commit 1eb6c9386286f0169f725a336cf0c98c5cc08de5
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Thu Mar 19 12:35:03 2026 +0000
Changed time format, access the new API interface
commit 80e2e73762e9619e5c804792f1fdcd389f2375e1
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 12:20:06 2026 +0000
feat(backend): add gp patient bp summary endpoint
- add average bp, highest systolic, highest diastolic, and danger count crud
- add GET /patients/{patient_id}/summary for gp users api
commit 09233518452419d22b3478889efc87e71dd4d4f6
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 11:40:01 2026 +0000
fix(backend): move relative lookup from patients router into crud
commit 64620808353f8c4628956319f98edd628d3f7c25
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 11:31:07 2026 +0000
fix(backend): move GP patient query into crud and fix patient routes
- Move the GP all-patients query out of the patients router into crud.users
- Update GET /patients to use the new CRUD helper for GP access
- Fix the patient history route path to /patients/{patient_id}/history
- Add the missing desc import used by BP reading history and latest-reading queries
commit aa23ed4b9ab92effb48defb4c15b877c0392069d
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 11:23:11 2026 +0000
fix(backend): Add patient history endpoint and updated crud imports
commit 18869aaf61b27aec4188acafb6821e8afea8896b
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 09:41:37 2026 +0000
chore(backend): deprecate manual relative linking code
commit a74d17b826aa2127f7505a7c017ac7f988a310ad
Merge: 1aae5db 8cb8be5
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 09:36:12 2026 +0000
Merge branch 'main' of github.com:QJl-leon/BUS-Coursework
commit 1aae5dbd85b2ca4e46706fc6b6c716a65587bf5d
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 09:30:06 2026 +0000
fix(backend): return latest alerts and readings first
- Order patient readings by newest timestamp in list and latest-reading queries
- Return the most recently created alert for each reading instead of the first matching record
- Apply descending sort to pending alerts so alert retrieval stays consistent
commit 8cb8be52f292f55593e05655ede6c0288dcbe0de
Merge: 439d1a8 e3282ef
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Thu Mar 19 09:27:44 2026 +0000
Merge remote-tracking branch 'origin/main' into main-merged
# Conflicts:
# backend/database.py
# backend/routers/bp_readings.py
# frontend/README.md
# frontend/carer.html
# frontend/patient.html
# frontend/relative.html
# frontend/script.js
commit e3282ef3319112ce020f53f32c35a8669ac2cf45
Merge: 0749bb7 c8b9e6e
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 09:16:03 2026 +0000
Merge pull request #8 from QJl-leon/frontend
Frontend to main
commit c8b9e6e29a715adbae520636b0dccdb3d008bc39
Merge: 6d03454 0749bb7
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 19 09:05:47 2026 +0000
Merge branch 'main' into frontend
commit 439d1a80c0e964a5a303965631f61f454c61b792
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Mar 18 22:33:18 2026 +0000
Completed relative.html and modify patient.html to add the function of binding relatives
commit 9950319d4084c4274c28066c81290df823a51591
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 18 15:00:53 2026 +0000
Merge frontend and backend (#5)
* Initial project setup and frontend scaffolding
* Update README for frontend-only scope
* Update UI and add button interation
* Add basic login interaction to MVP
* Improved form alignment and input styling
* Add logout functionality and UI state switching
* Added basic login input validation with alert for empty fields
* Added login input format validation
* Added login input format validation
* Added top navigation bar with project name and user info
* Added health survey form in main view and removed the redundant legacy code
* Added modular functions for login, input retrieval, and input validation
* Refactored buttons to use JS event listeners and added simulated submit
* Added top navigation bar for the login view
* Update gitignore
* Remove student ID requirement and update frontend for BP feature
* Update survey form to blood pressure input fields
* Update project name, refine welcome message, and fix some spelling errors
* Update BP input form and frontend validation
* Added HTML and JavaScript validation for BP inputs
* Improved BP form layout and fix CSS issues
* Implement login API integration
* Integrate BP reading API with header authentication
* Test
* `Updated user data in seed_users function`
* Rename the project and add basic structure for role-based page routing
* Cloned and ran backend locally, fixed HTML/JS bugs, and verified functionally
* Cloned and ran backend locally, fixed HTML/JS bugs, and verified functionally
* Optimized time display
* Applied changes for log out page
* Rename project from SeniorCare to SmileCare
* Completed gp.html and completed a test
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Mengze Wang <mxw1069@student.bham.ac.uk>
Co-authored-by: QJL-leon <leon_qiujialiang@outlook.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
commit 6d0345496acbd4cbdc85613d1f434b6810f1b6c7
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Mar 18 14:35:01 2026 +0000
Completed gp.html and completed a test
commit 0749bb76b41f19388a77aa64e87247bbc1652eaa
Author: Jeffrey689999 <jefftungst0124@gmail.com>
Date: Tue Mar 17 14:06:06 2026 +0000
Add files via upload
commit 95d1e580c1e2af7ce0f0e4b983309a48e27c11b2
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 17 13:06:31 2026 +0000
fix(backend): Update patients router to use 'alerts' instead of 'alert'
commit d20c228c1e82efee95a5398333adce677592c88f
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 17 13:05:17 2026 +0000
fix(backend): renamed import router alert to alerts
commit 350f4bfff9cee9ee363c24b62cd594e0d468d172
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 17 13:04:46 2026 +0000
fix(backend): Renamed router alert to alerts
commit 316f4c0ebbe87d2c396374df8f43a8e4561477fa
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 17 11:47:17 2026 +0000
feat(backend): add linked patients endpoint and enforce access checks on patient routes
- add GET /patients to return linked patient IDs
- add get_patients crud for retriving linked patients
- enforce patient record access on reading endpoints
commit 60ce159e97b25b4b07e94f21372fb11b93875948
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Mon Mar 16 23:37:23 2026 +0100
Rename project from SeniorCare to SmileCare
commit 12dea65837aa4aac350f3e59808604380f023633
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Mar 16 16:52:36 2026 +0000
Applied changes for log out page
commit 16634f6d5da6ed0daf7df50808e01bee4847804f
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Mon Mar 16 00:36:13 2026 +0000
fix(backend): add access and record checks for alert endpoints
- update can_access_patient_record to allow patient_user to access
- update alert delivery status response to use detail key
commit 6a30e91d50a2e2c2d54174735be661a8717aa3a1
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Mon Mar 16 00:15:07 2026 +0000
feat(backend): add S2 alert endpoints and relative notification
- store alert recipient when creating alert
- create alert for linked relatives on high and danger BP readings
- add GET /patients/{patient_id}/alerts with optional status filter
- add PUT /patients/{patient_id}/alerts/{alert_id} to mark as read
- enforce patient record access check on all alert routes
commit b70d629d76221febd4e022ca12243f59a1cd3ec4
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 15 23:04:45 2026 +0000
chore(backend): remove empty alerts router file
- alerts routes moved to patients router
commit adfe20271826a066317de63a4018c13c604626a8
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 15 23:02:26 2026 +0000
chore(backend): seed patient-relative access and fix BP alert import
- rename user helper to create_patient_record
- add crud for linking a relative to a patient record
- seed a default relative-to-patient access link
- fix BP reading alert import path
- add alerts router scaffold (empty for now)
commit 18417e7fc56887a62faf5b187fd0cf1d55a5690d
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 15 22:40:34 2026 +0000
feat(backend): trigger alert on high and danger BP reading
commit e9e58a09701ab71d741ba21459f76b5d29f98644
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 15 22:35:41 2026 +0000
feat(backend): add alerts crud
- add DeliveryStatus enum to models
- add create_alert with message generation per severity
- add get_alerts to fetch all alerts for a patient record
- add get_pending_alerts to fetch unread alerts only
- add update_delivery_status to mark alerts as read
commit 1413108636616961633dd335b3636632b86e8275
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 15 21:51:10 2026 +0000
refactor(backend): migrate bp-readings routes under patients router
- replace /bp/reading with /patients/{patient_id}/bp-readings
- add GET /patients/{patient_id}/bp-readings
- add GET /patients/{patient_id}/bp-readings/latest
- comment out old bp_readings router in main.py
commit 94f5fb922a9bbbe8690497be2f110a0a4a275ba9
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 15:57:20 2026 +0000
Optimized time display
commit 39d662937f3413ce0232471cb8d15e6610370d77
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 15:52:29 2026 +0000
Cloned and ran backend locally, fixed HTML/JS bugs, and verified functionally
commit c335b39c8db0979b439608ca53a18ee9a510df47
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 15:52:24 2026 +0000
Cloned and ran backend locally, fixed HTML/JS bugs, and verified functionally
commit bc8e91b85383104a5551bd39275241b80afc865f
Merge: 348a416 def3b5b
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 13:10:23 2026 +0000
Merge remote-tracking branch 'origin/frontend' into frontend
commit 348a416962b81612ec6e184051c346218f8dc48c
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 13:10:07 2026 +0000
Rename the project and add basic structure for role-based page routing
commit def3b5b382229b81fc8f5103321b7faa0cdfa0f8
Merge: 0037dfd ce24f54
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 12 11:58:26 2026 +0000
Merge branch 'frontend' of github.com:QJl-leon/BUS-Coursework into frontend
commit 0037dfd87953f4356b6dfe0054694af9d57b1df9
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 12 11:58:24 2026 +0000
`Updated user data in seed_users function`
commit ce24f544f76826fd3b1f4d8bf92e00f5a551d5c9
Merge: e3ea2c5 9f387e3
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 11:34:32 2026 +0000
Merge remote-tracking branch 'origin/frontend' into frontend
commit e3ea2c5bd2e1221a3baee394a52d230c9006fb09
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 11:34:14 2026 +0000
Test
commit 9f387e37d144d3fc13aa0d106a12c8b5df83b0c5
Merge: 76a3fb0 ceb5c79
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Mar 12 11:33:44 2026 +0000
Merge branch 'main-backup' into frontend
commit 76a3fb025cf556dfaba8b4f52ea4e71b7e8147a0
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 10:26:32 2026 +0000
Integrate BP reading API with header authentication
commit 16474ac57ee0bfbf5509664eb79420847fad4ded
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 09:41:55 2026 +0000
Implement login API integration
commit 51024a8938cfb63c5e1d9d54998719410d99a921
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 08:53:52 2026 +0000
Improved BP form layout and fix CSS issues
commit d0587b36dcd1955eb733ba6539a58e628f51639e
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 08:22:56 2026 +0000
Added HTML and JavaScript validation for BP inputs
commit 3ada91b36971a3dd14db4ff80ee20746cb3911a1
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 07:57:49 2026 +0000
Update BP input form and frontend validation
commit 64c4b6949dbdf6033fc1f8d4f581564d759591e0
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 07:49:13 2026 +0000
Update project name, refine welcome message, and fix some spelling errors
commit 06a7c722751d8c3d5eb84efb3e4b21236d4e3512
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 07:36:04 2026 +0000
Update survey form to blood pressure input fields
commit bb6c7b3642a579f0a8486bdc04cac4cc172db7fb
Merge: 1d24f94 6b471ba
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 07:23:29 2026 +0000
Merge remote-tracking branch 'origin/frontend' into frontend
commit 1d24f9471955f72e0b67d05e1674768140d56633
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Thu Mar 12 07:22:31 2026 +0000
Remove student ID requirement and update frontend for BP feature
commit ceb5c79fd6d1175bc725b8dfc77e21ed92556e12
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 22:40:19 2026 +0000
feat(backend): add POST /auth/login endpoint
- add auth router with login endpoint
- add get_user crud function to match by username
- return user_id, name and role on successful login
- return 404 if user not found
commit 3ea13c2de88e191789ec1eb0737a742f105e7886
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 22:11:34 2026 +0000
feat(backend): add CORS middleware and users router
commit 129839185388b429f2f77e6aa397de90e8c1b5ac
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 22:04:56 2026 +0000
fix(backend): Remove email field from User model and corresponding seed data
commit eeeb1b7ce55522015792063d79c30edf3392faae
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 23:00:13 2026 +0100
Add email field to User model
commit 6b471ba7c023bf6b36e55ca010a4a9a5c8040689
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 21:58:14 2026 +0000
Update gitignore
commit 2d81366f4d17ac02699565fc5080be0ab4139b07
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 21:53:25 2026 +0000
fix(backend): update S1 daily BP status after reading
- enforce patient-only role check on POST /bp/reading
- add Alert and PatientRecordAccess models
- add PatientRecord model with auto-create on patient registration
commit 76f61fca7ab83d9a9c61bfaa634e8841beb768e5
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Mar 11 21:16:33 2026 +0000
feat(backend): implement S1 daily BP status after reading
- add User and BPReading models with Role and BPStatus enums
- configure sqlite database engine and session management
- seed users with different Roles
- add BP threshold logic and rest advice in crud/bp_readings.py
- add get_current_user dependency via X-User-Id header
- add POST /bp/reading route returning status and advice
commit ce4880a9e8a817411bfcbf5b79b5b62410c3a75d
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 10 23:33:59 2026 +0000
Update class and sequence diagrams to use systolic and diastolic instead of bp_value
commit 825e6836f6325aea9e93b008b195ff00cc98085e
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 10 12:18:52 2026 +0000
chore(backend): add dependencies.py for request-level user context
commit 4c1dd5e6215273c198207c09f476b100e3bd36a6
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 10 12:07:59 2026 +0000
Added database files to .gitignore
commit 66468aecdca0b16b92961fb3e25e66407795865c
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 10 12:06:18 2026 +0000
chore(backend): scaffold project directory structure
- add models.py, database.py, seed.py, main.py
- add routers/ and crud/ subpackages with __init__.py files
commit 7cb3adaa049c685c71f15e1de1d6baca6a709e44
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Tue Mar 10 12:05:44 2026 +0000
chore(backend): add project dependencies
- sqlmodel for ORM (fuses SQLAlchemy + Pydantic)
- fastapi for API framework
- uvicorn for serving
commit 7c7b73308cfe5039da8f65bd376a9119f5c55049
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sat Mar 7 19:37:26 2026 +0000
moved backend stack from Flask to fastapi
commit 206b50f34234968f3a35d4eee61e6ae7871261d3
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sat Mar 7 19:26:54 2026 +0000
Restructured Code DIrectory
commit 64fe675eeb3758720bb24f2fd800a256da9c8227
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 21:21:39 2026 +0100
Update comments for clarity in main.py
commit e773fce397ad592e199195539f5746a96dbef742
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 21:18:16 2026 +0100
Update product backlog with new user stories
commit 1ae5de79e4c0717fa9b504bb55bc37c4335f3a30
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 18:45:41 2026 +0000
Added blood pressure check script
commit 982f206b710bc6ade36db1d7c79c659ce9ad9739
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 18:40:18 2026 +0000
"Added .idea/ to .gitignore"
commit 5ffda3eec7583682b6bf7e917b7b9198dd0097c9
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 17:43:47 2026 +0000
Updated README.md with new content and user stories for SmileCare project
commit caf38e844b7ff7d2fc329fe2059b220264ac00dd
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 17:37:28 2026 +0000
Updated SmileCare Class Diagram.pdf and Added Sequence Diagrams
commit b9ad9447fe9bdeb2a157c45ea3138ebfeea8ea6e
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 16:08:10 2026 +0000
Updated SmileCare Class Diagram
commit bfd03766f5495669b7d6d8f13ef42fe8e3233cc2
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Sun Mar 1 12:27:22 2026 +0000
Added SmileCare Class Diagram
commit 49ac501d03083c2af88e7a2f36b4e87135222a52
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Feb 25 20:53:14 2026 +0000
Add SmileCare use case Specification
commit 459ce82562e68751d862a4e41ea4ee555b8d2d2a
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Wed Feb 25 20:52:14 2026 +0000
Add SmileCare use case diagram
commit 3c9e9815a33d0b389e0d30f71b2d03c915f27aba
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Fri Feb 13 00:11:06 2026 +0000
Update the Agile Product Portfolio.docx, Subsequent changes will be made on OneDrive.
commit 295dca15e5d826946edf018104762a81b391fd86
Author: Bin <bhe03@qub.ac.uk>
Date: Wed Feb 11 20:44:14 2026 +0000
Update README.md
Jack3
Jack4
Jack5
Userstories Updates_11/02/2026
commit 3af9368c266cd3f8e85a4965b55eca345187d199
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Feb 11 16:05:45 2026 +0000
Update the README.md, add Product backlog and User Stories table(no content)
commit a63bee465bac483d56528a39366d540a7ad5bed7
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Wed Feb 11 15:51:41 2026 +0000
Persona added (not completed) to READAME.md and Agile Product Portfolio.docx
commit 9cac4c8fc172eacb7c6b6dff23dcaeae21516f58
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 15:46:29 2026 +0000
Added top navigation bar for the login view
commit 5bfae340ccac1dfa1fd967a3a4c201fa34744738
Author: QJL-leon <leon_qiujialiang@outlook.com>
Date: Mon Feb 2 10:39:47 2026 +0000
update the Agile Product Portfolio.docx and BUS_2025_2026_Coursework.pdf
commit 26a91d09f3e4270a937e25c60d179ff48fa1b003
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 08:52:15 2026 +0000
Refactored buttons to use JS event listeners and added simulated submit
commit 82cdfb3691cc975224322fb48183d5cca2e30a06
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 06:05:40 2026 +0000
Added modular functions for login, input retrieval, and input validation
commit 9f4da59f2de26a55e919af8dca94823d058f1c9f
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 05:38:34 2026 +0000
Added health survey form in main view and removed the redundant legacy code
commit 9ac69fb722322be7b72d9deccf9cd380b78085f8
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 01:34:06 2026 +0000
Added top navigation bar with project name and user info
commit 69805b5d5519e900dd79e8343e9527ec9edec27d
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 00:50:33 2026 +0000
Added login input format validation
commit 214147ea8fdf9abff961e520127cd53145a23efe
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 00:49:47 2026 +0000
Added login input format validation
commit 05e1e23288b97c5f0f243d5e27f114b2b71ab9d7
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Mon Feb 2 00:15:44 2026 +0000
Added basic login input validation with alert for empty fields
commit 0bc50eaf84050fd3adda3d2d618bbf003c182bea
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Sun Feb 1 02:13:20 2026 +0000
Add logout functionality and UI state switching
commit fd7857e7dab6a2168089ead698edcbb7137ec197
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Sun Feb 1 00:56:03 2026 +0000
Improved form alignment and input styling
commit aa2b47d6cc34531040c09853fba53a587f52302a
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Sun Feb 1 00:12:21 2026 +0000
Add basic login interaction to MVP
commit 8f31893dd99558649067aea19eb78fa04fba450b
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Sat Jan 31 23:26:04 2026 +0000
Update UI and add button interation
commit 04ccd1ed1e67f61aaeb350802ab95579705b948c
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Fri Jan 30 14:03:50 2026 +0000
Update README for frontend-only scope
commit 52b75e4f52d7ddba3be2807c4964a4fca156bf06
Author: Mengze Wang <mxw1069@student.bham.ac.uk>
Date: Fri Jan 30 13:44:35 2026 +0000
Initial project setup and frontend scaffolding
commit 11e33c360f6ef59e0759899537150d53cd6007bf
Author: E Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Jan 29 18:42:52 2026 +0100
Fix team member name formatting in README
commit b5cd11cba37cdf007c29cceb4e13527799b21172
Author: QJl-leon <leon_qiujialiang@outlook.com>
Date: Thu Jan 29 12:20:02 2026 +0000
Update README.md
Basic infotmation
commit 7bfdff2d746a6e814797a548fd09c91cd0ea24b0
Author: Emmanuel Omosebi <eoo589@student.bham.ac.uk>
Date: Thu Jan 29 11:14:10 2026 +0000
Added Agile Product Documentation file
commit d4da36a95767a37d4037d7034b5e42caa67ad6f8
Author: QJl-leon <leon_qiujialiang@outlook.com>
Date: Wed Jan 28 23:15:04 2026 +0000
Initial commit