-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Implement quiz API with enhanced functionality and UI #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nto backend/member-quiz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 17 changed files in this pull request and generated 3 comments.
Files not reviewed (11)
- .env.example: Language not supported
- package.json: Language not supported
- app/(user)/quiz/[slug]/QuizClient.tsx: Evaluated as low risk
- app/(user)/quiz/[slug]/page.tsx: Evaluated as low risk
- next.config.ts: Evaluated as low risk
- components/ArticleCard.tsx: Evaluated as low risk
- pnpm-lock.yaml: Evaluated as low risk
- lib/utils.ts: Evaluated as low risk
- app/(user)/quiz/page.tsx: Evaluated as low risk
- app/(user)/quiz/history/page.tsx: Evaluated as low risk
- app/(user)/quiz/[id]/QuizClient.tsx: Evaluated as low risk
Comments suppressed due to low confidence (3)
app/api/user/quizzes/history/route.ts:0
- The new API route for fetching quiz history should have corresponding tests to ensure its functionality is validated.
export const GET = async (req: NextRequest) => {
app/api/user/quizzes/[id]/route.ts:8
- The 'params' property should not be a Promise. It should be resolved before being used. Change the type to '{ id: string; }' and ensure it is resolved before usage.
params: Promise<{ id: string; }>;
app/api/user/quizzes/[id]/submit/route.ts:7
- The
paramsproperty should not be aPromise. It should be an object directly containing theid. Change it toparams: { id: string; };.
params: Promise<{ id: string; }>;
vzrenggamani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please seeks the commented file, especially in the secret key and functions modularism
Ahh okay, i completely forgot about the logging and the secret key. I will resolve the issues tomorrow morning |
…nto backend/member-quiz
vzrenggamani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…/gdsc-um/homesite-refactor into backend/member-quiz
Introduce a quiz API, improve quiz functionality and UI components, and add features for result saving and quiz history. Refactor data structure and implement encryption for secure quiz retrieval.