Skip to content

Conversation

@julien-nc
Copy link
Member

If the field's default value is under 10, we render it like that:

image

refs #215

@julien-nc julien-nc added enhancement New feature or request 3. to review labels May 7, 2025
Copy link
Contributor

@edward-ly edward-ly left a comment

Choose a reason for hiding this comment

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

Some possible design improvements:

  • Add an "active" attribute highlighting the button that was last clicked (or the default value when the form is opened).
  • Add a "Custom" button which toggles the visibility of the input field (which would be hidden by default to avoid mixing input types). Clicking on one of the 1-5 buttons would also hide the input field.

@julien-nc julien-nc force-pushed the enh/noid/small-number-field branch from 43e7a08 to e49ba51 Compare May 15, 2025 09:45
@julien-nc
Copy link
Member Author

@edward-ly Thanks for the feedback and suggestions. Both are implemented.

It was a bit tricky to make the state reactive to outside changes, especially when typing into the "custom" input field. If you wanna type "11", you start by typing "1" and the value changes immediately and 1 is considered as not custom so the 1 button is highlighted and the input field disappears. Simple solution is to debounce the number input update event.

Kooha-2025-05-15-11-42-04.webm

@julien-nc julien-nc requested a review from edward-ly May 15, 2025 09:49
Copy link
Member

@janepie janepie left a comment

Choose a reason for hiding this comment

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

Looks good! Cannot test with >4 pictures right now, because OpenAI has a max of 4 I think. Maybe something we could chunk in the future?

@marcelklehr
Copy link
Member

Looks good!

@julien-nc julien-nc merged commit e7dca80 into main May 15, 2025
9 checks passed
@julien-nc julien-nc deleted the enh/noid/small-number-field branch May 15, 2025 13:29
@julien-nc julien-nc mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants