Skip to content

1210 story prompt builder#1451

Open
fangkristen wants to merge 5 commits intodevelopment/lab15from
1210-story-prompt-builder
Open

1210 story prompt builder#1451
fangkristen wants to merge 5 commits intodevelopment/lab15from
1210-story-prompt-builder

Conversation

@fangkristen
Copy link
Copy Markdown
Collaborator

  • No discrepancies across browsers (ex: chrome vs safari)
  • Accessibility functions
  • Pages can scale without distorting page
  • No dead links
  • Navbar is consistent across the site
  • Pages are screen-reader accessible
  • Contrast meets standards for accessibility
  • Pages are keyboard accessible
  • Code is cleaned up and bug-free (ex: debug statements removed)

@fangkristen fangkristen added the AI Halucination Lab Lab 15 | AI Hallucinations label Apr 1, 2026
const activeOptions = STAGE_OPTIONS[currentStage] || [];
const isFinalStage = currentStageIndex === stages.length - 1;

const handleNext = () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is what's causing the non-green state when the sentence section locks.

the nextStage func and lockCurrentStage are happening almost simultaneously, then justLockedKey is cleared immediately.

Call lockCurrentStage first, then delay nextStage and clearJustLockedKey so the pop animation finishes before moving onto the next stage

{currentStage}
</h2>
<div className="tw-text-sm tw-font-semibold tw-text-darkGray">
Score: {totalScore}/{passingScore}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should Score: "n/6" be visible during selection? It may lead to students selecting choices for score rather than choosing the best answer. It'd be best to hide it until they click complete, allowing them to see the completion message popup under the quiz.

questionTotal={stages.length}
/>

{allStagesAnswered && (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allStagesAnswered is currently based on selections so the second user clicks an option on phase 4, it completes before the user clicks the complete button., removing the point of the complete button. You can use lockedStages instead so completion happens only after all stages are locked (complete button is clicked/all sentence sections are green)

Copy link
Copy Markdown
Contributor

@DarlynGomez DarlynGomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The selection and scoring works well! The main fix needed it the locked stage behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Halucination Lab Lab 15 | AI Hallucinations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants