Skip to content

Commit

Permalink
Hotfix Quiz (#33)
Browse files Browse the repository at this point in the history
* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove commented out code and unused Azure-related fields (#15)

* chore: Remove unused Azure-related fields and code

* Dev (#16)

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* chore: Update @azure/storage-blob dependency to version 12.17.0

* fix: fetch api with env

* Dev (#19)

* Update and rename master_splaceclassroom.yml to educlass.yml

* chore: Remove commented out code and unused Azure-related fields

* Dev (#14)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* chore: Remove unused Azure-related fields and code

* Dev (#17)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* Update educlass.yml

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* chore: Update @azure/storage-blob dependency to version 12.17.0

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* fix: reply comments

* add: loading skeleton discuss

* feat: Add status and error message to course API response

This commit adds the `status` and `error_message` fields to the course API response. This will provide additional information about the status and any error messages associated with the course.

* chore: Update deployment directory to educlass_v2

* fix: logo-brand and try catch discuss

* chore: update tailwindcss version

* chore: update postcss version

* feat: add status uploud rag & alert start quiz

* chore: change header to general app

* Update educlass.yml

* fix: header and color

* fix: no modules in courses

* refactor: Improve user quiz retrieval and scoring logic

* Dev (#21)

* Update and rename master_splaceclassroom.yml to educlass.yml

* chore: Remove commented out code and unused Azure-related fields

* Dev (#14)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* chore: Remove unused Azure-related fields and code

* Dev (#17)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* Update educlass.yml

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* Dev (#18)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* chore: Update @azure/storage-blob dependency to version 12.17.0

* fix: fetch api with env

* Dev (#20)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove commented out code and unused Azure-related fields (#15)

* chore: Remove unused Azure-related fields and code

* Dev (#16)

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* chore: Update @azure/storage-blob dependency to version 12.17.0

* fix: fetch api with env

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* Dev (#22)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove commented out code and unused Azure-related fields (#15)

* chore: Remove unused Azure-related fields and code

* Dev (#16)

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* chore: Update @azure/storage-blob dependency to version 12.17.0

* fix: fetch api with env

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* fix: reply comments

* add: loading skeleton discuss

* feat: Add status and error message to course API response

This commit adds the `status` and `error_message` fields to the course API response. This will provide additional information about the status and any error messages associated with the course.

* chore: Update deployment directory to educlass_v2

* Dev (#23)

* delete workflow

* add: component user card

* add: component label

* add: moleculs discussItem

* add: page discuss and update userCard

* add: filter discuss

* add: component add discuss

* refactor: integrate to backend add discuss

* refactor: integrate to backend discussItem

* refactor: add mutate add discuss

* refactor: integrate discuss item to backend and fix vote

* ref: filter discuss

* Feature/discustions (#4)

* feature:create discustions :sprakles:

* feature: vote and update status discustion :sprakles:

* feature: comments ✨

* feature: bookmark :sprakles:

* feat:filter and sort discustion ✨

* bug:fix bug filter use 🐛

* fix: file change upi

* fix: useSWR

* feat: add comment

* feat: Reply Comments

* fix: discuss item & add discuss

* feat: bookmark discussion

* refactor : change filterby

* fix: fix bookmark & ux in interact discuss

* feat: share discussion

* feat: create mutateSWRPartialKey

* feat: add duration and deadline of quiz :sprakles:

* feat: filter discussion & fix useSWR

* feat: add photo in comments

* add seeder

* feat: quiz duration, quiz deadline, quiz navigation, quiz per page

* feat: landing page welcome

* feat: Login Page

* feat: re-design header & sidebar

* feature:setting project ✨

* feat:add contact ✨

* Feat/review quiz user (#7)

* feat:review quiz ✨

* feat: add start at on quiz created ✨

* feat: change color by settings

* feat: header footer for settings

* feat: uploud drag & drop

* feat: page settings

* feat: Add Zustand dependency for state management

* feat: Update all components to set by settings

* fix: update settings

* fix: default components

* Ref/quiz schema (#8)

* ref:Quiz Schema ♻️

* remove console.log

* feat: Update site name to "EduClass.AI"

* bugfix:question format update 🐛 (#10)

* ref:remove class and add import for datamaster

* feat: add import with excel

* feat: Add file upload component for importing data

* chore: Refactor create course page

* fix: button NextLink

* fix: create quest performance

* fix: choice input form

* fix: fix input lag choice input

* fix: multiple and choice answer

* fix: bug discussion

* bugfix import data master

* cleanup

* feat: create quiz

* ref: add questions on quiz detail

* fix: remove quiz type on create

* handle error

* post data

* feat: slicing quiz review

* feat: setup user quiz fetcher

* refactor: Update course and user routes to handle new data structure

* fix: create quiz choice and type not expected

* feat: do a quiz

* fix: link

* feat: Calculate total points for quiz submission

* fix: uploud document import

* refactor: Add file upload functionality to route.ts

* fix: fix object title for quiz item essay

* setup quiz generator

* feat: setup generate quiz fetch

* feat: generate quiz

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove commented out code and unused Azure-related fields (#15)

* chore: Remove unused Azure-related fields and code

* Dev (#16)

* chore: Remove commented out code and unused Azure-related fields

* chore: Remove unused Azure-related fields and code

* fix: chatbot features

* chore: dynamic course class

* feat: Update resource upload process

The resource upload process has been updated to use the file URL instead of the file itself. This change improves the efficiency of the upload process and reduces unnecessary file handling.

* chore: Update resource upload process to include callback URL

* fix: disable button non used

* chore: Update @azure/storage-blob dependency to version 12.17.0

* fix: fetch api with env

* fix: reply comments

* feat: Add status and error message to course API response

This commit adds the `status` and `error_message` fields to the course API response. This will provide additional information about the status and any error messages associated with the course.

* chore: Update deployment directory to educlass_v2

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* fix: logo-brand and try catch discuss

* refactor: Update resource upload process to improve efficiency and reduce file handling

* change callbackurl

* chore: update tailwindcss version

* chore: update postcss version

* feat: add status uploud rag & alert start quiz

* chore: change header to general app

* Update educlass.yml

* fix: header and color

* refactor: Improve user quiz retrieval and scoring logic

---------

Co-authored-by: FajarWG <[email protected]>
Co-authored-by: FajarWG <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>

* fix: first modules status

* chore: Update Azure Web App deployment workflow

* fix: bug no module

* feat: quiz review detail

* chore: change branding website

* chore: update nextui version

* Quiz generator review (#28)

* quiz generator review

* feat: quiz generator

---------

Co-authored-by: ichsnn <[email protected]>

* fix: eslint nextjs rules

* chore: change placeholder

* hot fix

* chore: change name username

* fix: quiz generator

---------

Co-authored-by: lutfianRhdn <[email protected]>
Co-authored-by: ichsnn <[email protected]>
Co-authored-by: “FajarWG” <“[email protected]“>
Co-authored-by: “Reymunda” <“[email protected]“>
Co-authored-by: Ichsan Nulmuhlis <[email protected]>
  • Loading branch information
6 people authored Jul 29, 2024
1 parent 081a017 commit 1a8f53c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions app/quiz/generator/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export default function page() {
const [quizDeadlineDate, setQuizDeadlineDate] = useState<CalendarDate | null>(
null
);
const [quizDeadlineHours, setQuizDeadlineHours] = useState("");
const [quizDeadlineMinutes, setQuizDeadlineMinutes] = useState("");
const [quizDurationHours, setQuizDurationHours] = useState("");
const [quizDurationMinutes, setQuizDurationMinutes] = useState("");
const [quizDeadlineHours, setQuizDeadlineHours] = useState("00");
const [quizDeadlineMinutes, setQuizDeadlineMinutes] = useState("00");
const [quizDurationHours, setQuizDurationHours] = useState("1");
const [quizDurationMinutes, setQuizDurationMinutes] = useState("00");
const [questionType, setQuestionType] = useState<string[]>([]);
const [numberOfQuestionChoice, setNumberOfQuestionChoice] = useState("");
const [numberOfQuestionMultiple, setNumberOfQuestionMultiple] = useState("");
Expand Down Expand Up @@ -250,7 +250,7 @@ export default function page() {
value={quizQuery}
variant="bordered"
onChange={(e) => setQuizQuery(e.target.value)}
placeholder="Enter the title of the material that will be used as a quiz"
placeholder="Enter the title of the material that will be used as a quiz, separate with ',' if more than one material"
/>
</FormQuizGroup>
<FormQuizGroup>
Expand Down
8 changes: 4 additions & 4 deletions components/quiz/QuizCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { faPlus, faTrashCan, faXmark } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Button } from "@nextui-org/button";
import { Card, CardBody, CardFooter, CardHeader } from "@nextui-org/card";
import { Input } from "@nextui-org/input";
import { Input, Textarea } from "@nextui-org/input";
import {
Checkbox,
CheckboxGroup,
Expand Down Expand Up @@ -200,7 +200,7 @@ const QuestionMultiple = ({
variant="bordered"
radius="sm"
size="sm"
className="w-fit question-choice"
className=" w-full question-choice"
value={choice}
onChange={(e) => onChoiceValueChange(e, choiceIndex)}
/>
Expand Down Expand Up @@ -245,7 +245,7 @@ const QuestionEssay = ({
onRemoveQuestion: any;
}) => {
const [questionTitle, setQuestionTitle] = useState(question.title);
const [questionAnswer, setQuestionAnswer] = useState(question.answer[0]);
const [questionAnswer, setQuestionAnswer] = useState(question.answer);

useEffect(() => {
console.log(question);
Expand Down Expand Up @@ -303,7 +303,7 @@ const QuestionEssay = ({
size="sm"
variant="bordered"
placeholder="Write A Answer Here"
className="question-answer"
className="question-answer w-full leading-5"
required
/>
</CardBody>
Expand Down
2 changes: 1 addition & 1 deletion core/entity/Question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface Question {
title: string;
choices: string[];
point?: number;
answer: string[];
answer: any;
type: QuestionType;
true_answer?: string;
}
8 changes: 4 additions & 4 deletions core/usecase/generateQuizRAGUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export const generateQuizRAGUseCase = async (
const json = {
query: request.query,
course_id: request.course_id,
module_id: [request.module_id],
module_id: request.module_id,
threshold: 0.1,
limit: 3,
question_type: `'Multiple Choice with One Answer', 'Multiple Choice with Multiple Answer', and 'Essay'`,
number_of_question: `'${request.count_types.multiple} for Multiple Choice with One Answer', '${request.count_types.choices} for Multiple Choice with Multiple Answer', and '${request.count_types.essay} for Essay'`,
limit: 4,
question_type: `Multiple Choice with One Answer, Multiple Choice with Multiple Answer, Essay`,
number_of_question: `${request.count_types.multiple} for Multiple Choice with One Answer, ${request.count_types.choices} for Multiple Choice with Multiple Answer, ${request.count_types.essay} for Essay`,
};
const response = fetch("https://rag-classroom.unikomcodelabs.id/quiz", {
method: "POST",
Expand Down

0 comments on commit 1a8f53c

Please sign in to comment.