Skip to content

Preview NASA-TLX and SMEQ slider values on hover - #1441

Merged
jaykim1213 merged 8 commits into
devfrom
jay/sliderHover
Sep 8, 2026
Merged

Preview NASA-TLX and SMEQ slider values on hover#1441
jaykim1213 merged 8 commits into
devfrom
jay/sliderHover

Conversation

@jaykim1213

@jaykim1213 jaykim1213 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Does this PR close any open issues?

Closes #1089

Give a longer description of what this PR addresses and why it's needed

Hover effect for the sliders

  • NASA-TLX
  • SMEQ

Provide pictures/videos of the behavior before and after these changes (optional)

  • NASA-TLX
image
  • SMEQ
Screenshot 2026-08-24 at 11 25 37 AM

Are there any additional TODOs before this PR is ready to go?

TODOs:

  • Update relevant documentation
  • ...

@jaykim1213
jaykim1213 changed the base branch from main to dev August 24, 2026 15:26
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🪓 PR closed, deleted preview.

@jaykim1213

Copy link
Copy Markdown
Contributor Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f38b4f9113

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

generateSliderBreakValues: vi.fn(() => []),
}));
vi.mock('../sliderBreaks', async (importOriginal) => {
const actual = await importOriginal<typeof import('../sliderBreaks')>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Hoist the sliderBreaks type import

This new typeof import('../sliderBreaks') type query is inside the mock callback, directly violating the repository requirement that imports—including type imports—be declared at the top of the file. Add a top-level type import and use its alias with importOriginal instead.

AGENTS.md reference: AGENTS.md:L53-L54

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Comment thread src/components/response/sliderBreaks.ts Outdated
@jaykim1213 jaykim1213 changed the title Preview slider value on hover Preview NASA-TLX and SMEQ slider values on hover Aug 24, 2026
@jaykim1213
jaykim1213 marked this pull request as ready for review August 24, 2026 22:13
@jaykim1213
jaykim1213 requested a review from JackWilb August 24, 2026 22:14

@JackWilb JackWilb left a comment

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.

Verified the exact current head manually: NASA-TLX sliders use step=5, pointer selection resolves to five-point increments, and keyboard movement advances by five. The existing head already implements the requested behavior; no code change was needed.

@jaykim1213
jaykim1213 merged commit ef61089 into dev Sep 8, 2026
13 of 14 checks passed
@jaykim1213
jaykim1213 deleted the jay/sliderHover branch September 8, 2026 17:50
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.

Hover effect for linear scale (TLX and SMEQ libraries)

2 participants