1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src/component
Gastón Fournier 29be130757
fix: enforce weight precision to 1 decimal (#2749)
## About the changes
According to our docs, we only support up to 1 decimal place for
weights. This is to use integers to represent the percentages (we divide
them by 10) and supporting more decimals results in bad maths due to
floating point arithmetics.

This PRs adds Frontend and Backend validations to enforce this
restriction

Closes #2222

## Discussion points
Should we reconsider supporting more decimal places, that door remains
open, but for now we'll just adhere to our documentation because that
change would require some development.
2023-01-05 12:39:18 +01:00
..
addons POC: integration tests (#2422) 2022-12-06 15:28:33 +01:00
admin feat: service accounts (UI) (#2734) 2023-01-05 08:11:28 +00:00
application Fix crashing search bars (#2765) 2022-12-28 12:35:27 +02:00
archive Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
changeRequest fix: archived feature layout (#2713) 2023-01-04 09:24:39 +00:00
common Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
context Styled components batch4.1 (#2812) 2023-01-05 09:45:39 +01:00
environments Styled components batch4.1 (#2812) 2023-01-05 09:45:39 +01:00
events visual changes representation (#2583) 2022-12-01 14:44:33 +01:00
feature fix: enforce weight precision to 1 decimal (#2749) 2023-01-05 12:39:18 +01:00
feedback refactor: extract styled components (#2798) 2023-01-03 12:41:48 +01:00
layout fix: archived feature layout (#2713) 2023-01-04 09:24:39 +00:00
maintenance Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
menu Styled components batch4.1 (#2812) 2023-01-05 09:45:39 +01:00
playground/Playground Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
project Refactor/make styles batch 6 part 3 (#2823) 2023-01-05 09:45:17 +01:00
providers feat: allows creation of PATs for other users (#2718) 2023-01-02 10:49:57 +00:00
segments Refactor/make styles batch 6 part 3 (#2823) 2023-01-05 09:45:17 +01:00
splash Makestyles refactor #7/1 (#2805) 2023-01-03 16:30:59 +02:00
strategies Makestyles refactor #7/1 (#2805) 2023-01-03 16:30:59 +02:00
tags Makestyles refactor #7/1 (#2805) 2023-01-03 16:30:59 +02:00
user feat: service accounts (UI - extract PAT form) (#2733) 2023-01-04 14:51:30 +00:00
App.styles.ts Suggest changes - initial frontend (#2213) 2022-10-20 14:00:48 +02:00
App.tsx Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00