1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-22 11:18:20 +02:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint
Thomas Heartman cb4beb71ac
Chore(1 3895)/small input tweaks (#10316)
Doesn't clear the value from the constraint input value popover if you
close it and then re-open. In other words, if you accidentally click
out, you don't lose your progress. Instead, the popover will open again,
with the value you had when you closed it highlighted (so that it's easy
to type over if you want to):

<img width="452" alt="image"
src="https://github.com/user-attachments/assets/d86aa00e-4956-40a8-8fea-e75be5d5425b"
/>

The reason I'm changing this now is because I noticed that the error
wasn't cleared correctly when the popover was closed. If we do it this
way instead, then that makes sense, because you can still see the value.
This is also how the single-value popover has worked forever.

From some quick testing, the single value popover still works as
expected:
<img width="562" alt="image"
src="https://github.com/user-attachments/assets/9041a922-b055-4310-ab60-93ad219981a4"
/>


As a side note: I'm adding a comment to anyone coming after as to why
focus handling on escape doesn't work correctly on the single value
button. I was about to go down a rabbit hole on that before I read my
own comment on the previous PR. So I thought I'd put that here too.
2025-07-04 14:57:52 +02:00
..
useEditableConstraint feat(1-3873)/warn you when adding existing values (#10310) 2025-07-04 12:18:02 +00:00
AddSingleValueWidget.tsx Chore(1 3895)/small input tweaks (#10316) 2025-07-04 14:57:52 +02:00
AddValuesPopover.tsx Chore(1 3895)/small input tweaks (#10316) 2025-07-04 14:57:52 +02:00
AddValuesWidget.tsx chore: fix demo by adapting to new constraints flow (#10213) 2025-06-25 17:26:03 +01:00
ConstraintDateInput.tsx Chore(1 3829)/cleanup pt 3 (#10133) 2025-06-13 11:48:50 +02:00
ConstraintOperatorSelect.tsx delete legacy constraint accordion (#10110) 2025-06-11 12:22:55 +02:00
ConstraintValidatorOutput.ts Chore(1 3829)/cleanup pt 3 (#10133) 2025-06-13 11:48:50 +02:00
ConstraintValueSearch.tsx
EditableConstraint.tsx fix: case sensitive icon has wrong fill color in dark mode (#10068) 2025-06-02 08:36:59 +00:00
LegalValuesSelector.tsx Chore(1 3829)/cleanup pt 3 (#10133) 2025-06-13 11:48:50 +02:00
ValueList.tsx