diff --git a/desktop/app/src/ui/components/data-inspector/DataDescription.tsx b/desktop/app/src/ui/components/data-inspector/DataDescription.tsx index 6ab04233f..c5c54b60f 100644 --- a/desktop/app/src/ui/components/data-inspector/DataDescription.tsx +++ b/desktop/app/src/ui/components/data-inspector/DataDescription.tsx @@ -18,6 +18,7 @@ import Input from '../Input'; import React, {KeyboardEvent} from 'react'; import Glyph from '../Glyph'; import {HighlightContext} from '../Highlight'; +import Select from '../Select'; const NullValue = styled.span({ color: 'rgb(128, 128, 128)', @@ -540,6 +541,11 @@ function parseColor( const pencilStyle = {cursor: 'pointer', marginLeft: 8}; +type Picker = { + values: Set; + selected: string; +}; + class DataDescriptionContainer extends PureComponent<{ type: string; value: any; @@ -610,6 +616,27 @@ class DataDescriptionContainer extends PureComponent<{ } } + case 'picker': { + const picker: Picker = JSON.parse(val); + const options = [...picker.values].reduce((obj, value) => { + return {...obj, [value]: value}; + }, {}); + return ( +