-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SKFP-1246 add system for data imaging column preset (#4119)
- Loading branch information
1 parent
ae8c355
commit 6dd4a03
Showing
13 changed files
with
306 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...taExploration/components/PageContent/tabs/DataFiles/ColumnSelectorHeader/index.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.presetSelectorContainer { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-bottom: 0 | ||
} |
38 changes: 38 additions & 0 deletions
38
...iews/DataExploration/components/PageContent/tabs/DataFiles/ColumnSelectorHeader/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import intl from 'react-intl-universal'; | ||
import { Select } from 'antd'; | ||
|
||
import SearchLabel from 'components/uiKit/search/SearchLabel'; | ||
|
||
import { PresetOptions } from '../index'; | ||
|
||
import styles from './index.module.css'; | ||
|
||
type OwnProps = { | ||
activePreset: PresetOptions; | ||
handlePresetSelection: (preset: PresetOptions) => void; | ||
}; | ||
|
||
const ColumnSelectorHeader = ({ activePreset, handlePresetSelection }: OwnProps) => { | ||
const options: Record<PresetOptions, string> = { | ||
datafiles: 'Data Files', | ||
imaging: 'Imaging', | ||
}; | ||
|
||
return ( | ||
<div className={styles.presetSelectorContainer}> | ||
<SearchLabel title={intl.get('global.proTable.columnPreset')} /> | ||
<Select | ||
value={activePreset} | ||
onChange={(value) => handlePresetSelection(value as PresetOptions)} | ||
options={Object.keys(options).map((key) => ({ | ||
value: key, | ||
label: options[key as PresetOptions], | ||
}))} | ||
size="small" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ColumnSelectorHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.