-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(token): token duration update #19
base: main
Are you sure you want to change the base?
Conversation
@NarendranKT is attempting to deploy a commit to the lumel Team on Vercel. A member of the Team first needs to authorize it. |
PR Description updated to latest commit (827bd3c) |
PR Review 🔍
|
PR Code Suggestions ✨
|
User description
Added time duration to assessment and created candidate token based on assessment duration.
PR Type
Enhancement, Bug fix
Description
examId
in candidate creation data.QuestionsPage
.Timer
component.ExamDetail
.ExamSettings
to handle duration changes.Timer
component and handled assessment timeout inEditor
.examId
andduration
.createJWT
to accept custom duration.examId
and duration in candidate creation.Changes walkthrough 📝
11 files
CandidateAssessment.tsx
Include examId in candidate creation data.
src/Modules/CandidateAssessment/CandidateAssessment.tsx
examId
touserData
object.QuestionsPage.tsx
Handle assessment timeout and navigation.
src/Modules/CandidateAssessment/QuestionsPage.tsx
navigate
for navigation.handleTimeout
function to clear assessment and navigate toassessment over page.
handleTimeout
toTimer
component.Timer.tsx
Add timeout handling and warnings in Timer component.
src/Modules/CandidateAssessment/components/Timer.tsx
onTimeout
prop toTimer
component.onTimeout
and displayed success message when time is up.ExamDetail.tsx
Implement exam duration handling and saving.
src/Modules/Exam/ExamDetail.tsx
Time
interface for handling exam duration.handleSettingsChange
to update duration.saveDuration
function to save updated duration.duration
andhandleSettingsChange
toExamSettings
.ExamList.tsx
Display exam duration in exam list.
src/Modules/Exam/ExamList.tsx
ExamSettings.tsx
Update ExamSettings to handle duration changes.
src/Modules/Exam/components/ExamSettings.tsx
ExamSettings
to handle duration changes.duration
andaddDuration
toSelect
components.Editor.tsx
Add Timer component and handle assessment timeout.
src/Modules/common/CodeEditor/Editor.tsx
Timer
component to display remaining time.handleTimeout
to submit assessment on timeout.schema.ts
Update schema to include examId and duration.
src/types/schema.ts
examId
tocandidate
table schema.duration
toexam
table schema.jwt.ts
Modify createJWT to accept custom duration.
supabase/functions/_shared/jwt.ts
createJWT
to accept duration and set expiration accordingly.index.ts
Include examId and duration in candidate creation.
supabase/functions/create-candidate/index.ts
examId
to candidate creation request.createJWT
.Assessment.css
Update timer style to use brand color.
src/Modules/CandidateAssessment/styles/Assessment.css
.timer
class to use brand color.1 files
Exam.API.ts
Minor formatting change.
src/Modules/Exam/services/Exam.API.ts