@@ -63,7 +63,7 @@ export function FormPage(props: { yAxisSize: number; adminMode: boolean }) {
6363 to,
6464 } ) )
6565 : [ ] ,
66- isRaw : tag . raw ,
66+ isRaw : tag . raw || tag . raw_kind != null ,
6767 raw_kind : tag . raw_kind ,
6868 } ) ) ,
6969 tags_draft,
@@ -74,6 +74,9 @@ export function FormPage(props: { yAxisSize: number; adminMode: boolean }) {
7474 version : metric . version ,
7575 group_id : metric . group_id ,
7676 fair_key_tag_ids : metric . fair_key_tag_ids ,
77+ skip_max_host : ! ! metric . skip_max_host ,
78+ skip_min_host : ! ! metric . skip_min_host ,
79+ skip_sum_square : ! ! metric . skip_sum_square ,
7780 } ) ;
7881 } ) ;
7982 } , [ metricName ] ) ;
@@ -712,7 +715,12 @@ function AliasField(props: {
712715 className = "form-check-input"
713716 type = "checkbox"
714717 disabled = { tagNumber <= 0 || disabled }
715- onChange = { ( e ) => onChange ( { isRaw : e . target . checked } ) }
718+ onChange = { ( e ) =>
719+ onChange ( {
720+ isRaw : e . target . checked ,
721+ raw_kind : e . target . checked ? ( value . raw_kind ?? 'int' ) : undefined ,
722+ } )
723+ }
716724 />
717725 < label className = "form-check-label" htmlFor = { `roSelect_${ tagNumber } ` } >
718726 Raw
@@ -722,10 +730,10 @@ function AliasField(props: {
722730 { ! ! value . isRaw && (
723731 < select
724732 className = "form-control form-select"
725- value = { value . raw_kind ?? '' }
726- onChange = { ( e ) => onChange ( { raw_kind : e . target . value as RawValueKind } ) }
733+ value = { value . raw_kind ?? 'int ' }
734+ onChange = { ( e ) => onChange ( { raw_kind : e . target . value as RawValueKind } ) }
727735 >
728- < option value = "" > int</ option >
736+ < option value = "int " > int</ option >
729737 < option value = "uint" > uint</ option >
730738 < option value = "hex" > hex</ option >
731739 < option value = "hex_bswap" > hex_bswap</ option >
@@ -736,6 +744,8 @@ function AliasField(props: {
736744 < option value = "lexenc_float" > lexenc_float</ option >
737745 < option value = "int64" > int64</ option >
738746 < option value = "uint64" > uint64</ option >
747+ < option value = "hex64" > hex64</ option >
748+ < option value = "hex64_bswap" > hex64_bswap</ option >
739749 </ select >
740750 ) }
741751 </ div >
0 commit comments