Skip to content

Faculty dashboard stats and announcements; fix blank task counts - #14

Merged
anishmehta24 merged 2 commits into
mainfrom
feat/faculty-dashboard
Nov 17, 2026
Merged

anishmehta24 merged 2 commits into
mainfrom
feat/faculty-dashboard

Conversation

@anishmehta24

Copy link
Copy Markdown
Collaborator

Summary

  • Task stats bug: GET /api/v1/tasks/my/stats returned PENDING, IN_PROGRESS and so on, but the Admin, HOD and Faculty dashboards read pending, inProgress, submitted, approved, rework and total. So every task count was blank. The endpoint now returns those keys.
  • Faculty quick stats: the dashboard now shows the spec's list:
    • today's classes, and classes on today's timetable with no attendance yet;
    • teaching classes, and students taught (each section counted once);
    • active assignments, and submissions waiting for marks;
    • pending tasks.
      The two task cards that duplicated the task summary row were removed from this row.
  • Announcements: the static "Academic Notices & Reminders" card is replaced by the latest announcements. That card also said attendance must be logged within 24 hours, which no longer matches the 48-hour correction window from Fix creating attendance; add a 48-hour faculty correction window and history #12.

Validation

  • pnpm test (171 passed, 1 new), pnpm lint, pnpm typecheck, pnpm build, git diff --check.
  • Locally as faculty: the stats showed 2 classes today with 2 still to mark, 2 teaching classes, 2 students, 2 assignments and 0 to evaluate. The task summary row now shows numbers, and the announcements card showed the Everyone and Faculty notices but not the student one.

GET /tasks/my/stats returned PENDING, IN_PROGRESS and so on, but every
dashboard reads pending, inProgress, submitted, approved, rework and
total, so the task numbers were blank for admins, HODs and faculty. The
endpoint now returns those keys.
The faculty dashboard now shows today's classes, classes still to mark
today, teaching classes, students taught (each section once), active
assignments, submissions waiting for marks and pending tasks, as the
spec lists. The static notices card, which still said attendance must be
logged within 24 hours, is replaced by the latest announcements.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T21:57:45.641055Z c485365 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@anishmehta24
anishmehta24 merged commit 6b3ee6f into main Nov 17, 2026
@anishmehta24
anishmehta24 deleted the feat/faculty-dashboard branch November 17, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant