Skip to content

Fix/slider issues#216

Open
meganrm wants to merge 3 commits into
fix/update-kd-quiz-questionfrom
fix/slider-issues
Open

Fix/slider issues#216
meganrm wants to merge 3 commits into
fix/update-kd-quiz-questionfrom
fix/slider-issues

Conversation

@meganrm
Copy link
Copy Markdown
Contributor

@meganrm meganrm commented May 28, 2026

Problem

Estimated review size: small

closes #214
and there was a small bug were a slider was double labeling the zero value.

Solution

changed the prop name to formID instead of just id
don't add a label if the value is zero

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Screenshots (optional):

before:
Screenshot 2026-05-28 at 1 10 30 PM

Screenshot 2026-05-28 at 12 59 54 PM

@meganrm meganrm requested a review from a team as a code owner May 28, 2026 20:10
@meganrm meganrm requested review from ShrimpCryptid, Copilot and tyler-foster and removed request for a team May 28, 2026 20:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment on lines 84 to 88
<InputNumber
aria-labelledby="ki-question"
value={selectedAnswer || ""}
value={selectedAnswer ?? ""}
onChange={handleAnswerSelection}
placeholder="Type value..."
Comment on lines 105 to 109
<InputNumber
aria-labelledby="kd question"
value={selectedAnswer || ""}
value={selectedAnswer ?? ""}
onChange={handleAnswerSelection}
placeholder="Type value..."
const isFormMaximized = lastOpened === id;
const minimizedTitle = `Q:${id}`;
const isFormMaximized = lastOpened === formID;
const minimizedTitle = `Q:${formID}`;
Copy link
Copy Markdown
Contributor

@ShrimpCryptid ShrimpCryptid May 29, 2026

Choose a reason for hiding this comment

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

I do like the rename, but I don't think the variable name formId is descriptive enough for its use case-- it's used as both a unique identifier and as a minimized title, but the name only really implies the first. We talked about making these two different props in #214, would you still want to make that change?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants