Skip to content

Feat/subreview - #24

Merged
R3Nexe merged 3 commits into
sky-ruler:mainfrom
R3Nexe:feat/subreview
May 13, 2026
Merged

Feat/subreview#24
R3Nexe merged 3 commits into
sky-ruler:mainfrom
R3Nexe:feat/subreview

Conversation

@R3Nexe

@R3Nexe R3Nexe commented May 13, 2026

Copy link
Copy Markdown
Collaborator

📦 Overview

Implemented a fully‑functional Pending Tasks feature, replacing the previous mock‑data implementation with a live backend integration. The changes include a new API endpoint, backend logic to compute pending tasks, and a refactored frontend page that fetches and displays real data with priority handling and deadline indicators.

🗂️ Files Modified

Path Change
server/src/features/dashboard/dashboard.controller.js Added getPendingTasks controller: identifies active question sets, fetches unsolved challenges, flags rejected submissions, calculates priority, sorts by priority & deadline, and returns a clean task payload.
server/src/features/dashboard/dashboard.routes.js Imported getPendingTasks and registered the GET /pending-tasks route (protected).
client/src/pages/PendingTasks.jsx Replaced mock data with react-query call to /api/dashboard/pending-tasks. Added loading skeletons, empty state, and UI elements for priority, rejection badge, and deadline countdown.
client/src/pages/PendingTasks.jsx Fixed imports (React, routing, motion, icons, PageHeader).
client/src/pages/PendingTasks.jsx Added a lightweight getRelativeTime helper to display human‑readable remaining time without external deps.
client/src/pages/PendingTasks.jsx Updated deadline rendering to use the new helper.
client/src/pages/PendingTasks.jsx Minor UI tweaks: retry button label, progress bar color based on rejection status.

🎯 Functional Impact

  • Real Data: Users now see genuine pending tasks derived from the database, respecting their solved/rejected submissions.
  • Priority System: Tasks are auto‑ranked (High → Medium → Low) based on difficulty and rejection status.
  • Deadline Awareness: Shows relative time until the question set deadline (e.g., “2d 4h left”).
  • Retry Flow: Rejected tasks are highlighted with a pulsing badge and a “Retry” button.
  • Loading & Empty States: Provides smooth UX while data loads or when no pending tasks exist.

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

@R3Nexe is attempting to deploy a commit to the Sky Ruler's projects Team on Vercel.

A member of the Team first needs to authorize it.

@R3Nexe
R3Nexe merged commit da597e1 into sky-ruler:main May 13, 2026
0 of 3 checks passed
R3Nexe referenced this pull request in R3Nexe/Algorithm-Arena-V2 Jun 12, 2026
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