-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved UX for selecting scene generation during Ingestion (#584)
(new) dropdown for more intuitive selection of voyager scene options (new) tooltip describing conditions for auto-generation of scenes (fix) front-end always generating scenes for master models
- Loading branch information
1 parent
c16a72b
commit 98ffec3
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
client/src/pages/Ingestion/components/Metadata/Control/SceneGenerateWorkflowControl.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,32 @@ | ||
import React from 'react'; | ||
import { Box, Checkbox, Typography } from '@material-ui/core'; | ||
|
||
|
||
interface SceneGenerateWorkflowControlProps { | ||
disabled: boolean; | ||
selected: boolean; | ||
setCheckboxField: ({ target }: { target: EventTarget }) => void; | ||
} | ||
|
||
function SceneGenerateWorkflowControl(props: SceneGenerateWorkflowControlProps): React.ReactElement { | ||
const { disabled, selected, setCheckboxField } = props; | ||
return ( | ||
<Box style={{ display: 'flex', alignItems: 'center', width: 'fit-content', borderRadius: 5, backgroundColor: '#FFFCD1', outline: '1px solid rgba(141, 171, 196, 0.4)', paddingRight: '9px' }}> | ||
<Checkbox | ||
disabled={disabled} | ||
checked={!selected} | ||
onChange={setCheckboxField} | ||
title='skipSceneGenerate-input' | ||
size='small' | ||
color='primary' | ||
name='skipSceneGenerate' | ||
/> | ||
<span> | ||
<Typography style={{ fontSize: '0.8rem' }}>Generate Voyager Scene</Typography> | ||
<em style={{ fontSize: '0.7rem', fontWeight: 300 }}>(X) To enable, <b>Units</b> must be set to mm, cm, m, in, ft, or yd, <b>Purpose</b> must be set to Master, and <b>Model File Type</b> must be set to obj, ply, stl, x3d, wrl, dae, or fbx</em> | ||
</span> | ||
</Box> | ||
); | ||
} | ||
|
||
export default SceneGenerateWorkflowControl; |