Skip to content

InputScientificNumber: add support for up/down buttons#472

Merged
agarny merged 3 commits intoopencor:mainfrom
agarny:issue467
Mar 23, 2026
Merged

InputScientificNumber: add support for up/down buttons#472
agarny merged 3 commits intoopencor:mainfrom
agarny:issue467

Conversation

@agarny
Copy link
Contributor

@agarny agarny commented Mar 23, 2026

Fixes #467.

Copilot AI review requested due to automatic review settings March 23, 2026 01:41
Copy link

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

Adds “spin” (up/down) controls to InputScientificNumber so scalar simulation inputs can be incremented/decremented by the configured step value (Fixes #467).

Changes:

  • Pass min, max, and step from InputWidget into InputScientificNumber.
  • Extend InputScientificNumber with increment/decrement buttons, keyboard handling (ArrowUp/ArrowDown/Home/End), and press-and-hold repeat.
  • Introduce shared spin timing constants.

Reviewed changes

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

File Description
src/renderer/src/components/widgets/InputWidget.vue Wires min/max/step into InputScientificNumber to enable bounded stepping.
src/renderer/src/components/widgets/InputScientificNumber.vue Implements the spinner UI/logic, focus styling, and repeat-spin behavior.
src/renderer/src/common/constants.ts Adds repeat-spin timing constants used by the new spinner behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny force-pushed the issue467 branch 2 times, most recently from dcb91a3 to 6becb8f Compare March 23, 2026 05:07
@agarny agarny requested a review from Copilot March 23, 2026 05:07
Copy link

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 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny force-pushed the issue467 branch 3 times, most recently from 0e85444 to 898d45a Compare March 23, 2026 06:14
@agarny agarny requested a review from Copilot March 23, 2026 07:08
Copy link

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 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny force-pushed the issue467 branch 2 times, most recently from b395072 to 5881bab Compare March 23, 2026 08:19
@agarny agarny requested a review from Copilot March 23, 2026 08:19
Copy link

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 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny merged commit cea6bb0 into opencor:main Mar 23, 2026
13 checks passed
@agarny agarny deleted the issue467 branch March 23, 2026 11:23
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.

InputScientificNumber: add support for up/down buttons

2 participants