security fix and fix parent pages
API CI/CD / Validate (composer + pint) (push) Successful in 3m7s
API CI/CD / Test (PHPUnit) (push) Failing after 5m46s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-07-06 02:14:16 -04:00
parent 39228168c8
commit 90f9857b06
43 changed files with 4323 additions and 132 deletions
@@ -12,11 +12,19 @@ class ProgressGroupResource extends JsonResource
$reports = $this['reports'] ?? [];
return [
'id' => $this['id'] ?? $this['report_id'] ?? null,
'report_id' => $this['report_id'] ?? $this['id'] ?? null,
'view_url' => $this['view_url'] ?? null,
'parent_view_url' => $this['parent_view_url'] ?? null,
'week_start' => $this['week_start'] ?? null,
'week_end' => $this['week_end'] ?? null,
'class_section_id' => $this['class_section_id'] ?? null,
'class_section_name' => $this['class_section_name'] ?? '',
'reports' => $reports, // keyed by subject for compatibility
'weekly_reports' => $this['weekly_reports'] ?? [],
'reports_array' => $this['reports_array'] ?? [],
'report_list' => $this['report_list'] ?? [],
'subjects' => $this['subjects'] ?? array_keys($reports),
];
}
}