learlab / itell-strapi-demo

https://itell-rmp.vercel.app
1 stars 1 forks source link

Suggested fix for chunks that have constructed response items in final chunk #5

Closed jchoi92k closed 9 months ago

jchoi92k commented 9 months ago

I don't have the necessary env vars for the newest strapi branch so I have not been able to test this. Needs to be verified if this works before merging


Currently, if the last chunk spawns a constructed response item, users can just proceed to writing the summary without having to answer it. Like so:

image

The suggested fix that involves minimal changes is to add a boolean, "finishedReading" state to the useQA context, and to add a button in the final chunk that needs to be clicked for user to switch this value to true and to enable summary. The "continue reading" button will serve this function if the final chunk has an accompanying constructed response item.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
itell-strapi-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2024 9:09pm
qiushiyan commented 9 months ago

closing as this is now fixed with an alternative