Add tabbed workbench inspector
This commit is contained in:
+70
-54
@@ -1,11 +1,11 @@
|
||||
import { useMemo, useState } from 'react'
|
||||
import './styles/app.css'
|
||||
import { ChangeDetectionPanel } from './components/analysis/ChangeDetectionPanel'
|
||||
import { DatasetDetailPanel } from './components/datasets/DatasetDetailPanel'
|
||||
import { DatasetPanel } from './components/datasets/DatasetPanel'
|
||||
import { DetectionLab } from './components/detection/DetectionLab'
|
||||
import { ExportCenter } from './components/exports/ExportCenter'
|
||||
import { ExportPreview } from './components/exports/ExportPreview'
|
||||
import { WorkbenchInspector } from './components/inspector/WorkbenchInspector'
|
||||
import { MapWorkspace } from './components/map/MapWorkspace'
|
||||
import { AreaPanel } from './components/project/AreaPanel'
|
||||
import { ProjectPanel } from './components/project/ProjectPanel'
|
||||
@@ -690,60 +690,76 @@ function App(): JSX.Element {
|
||||
</main>
|
||||
|
||||
<aside className="workbench-inspector" aria-label="Current selection inspector">
|
||||
<DatasetDetailPanel
|
||||
<WorkbenchInspector
|
||||
selectedProject={selectedProject}
|
||||
selectedArea={selectedArea}
|
||||
selectedMapFeature={selectedMapFeature}
|
||||
areas={areas}
|
||||
availableVectorTargets={availableVectorTargets}
|
||||
selectedDatasetId={selectedDatasetId}
|
||||
selectedDataset={selectedDataset}
|
||||
selectedDatasetSummary={selectedDatasetSummary}
|
||||
selectedRasterMetadata={selectedRasterMetadata}
|
||||
selectedRasterStats={selectedRasterStats}
|
||||
rasterPreview={rasterPreview}
|
||||
rasterUnavailableMessage={rasterUnavailableMessage}
|
||||
selectedClipAreaId={selectedClipAreaId}
|
||||
selectedIntersectTargetId={selectedIntersectTargetId}
|
||||
rasterTileSize={rasterTileSize}
|
||||
rasterTileOverlap={rasterTileOverlap}
|
||||
rasterTileOutputName={rasterTileOutputName}
|
||||
rasterReprojectCrs={rasterReprojectCrs}
|
||||
rasterReprojectResampling={rasterReprojectResampling}
|
||||
ndviNirBand={ndviNirBand}
|
||||
ndviRedBand={ndviRedBand}
|
||||
ndwiGreenBand={ndwiGreenBand}
|
||||
ndwiNirBand={ndwiNirBand}
|
||||
ndbiSwirBand={ndbiSwirBand}
|
||||
ndbiNirBand={ndbiNirBand}
|
||||
isRasterTileInputValid={isRasterTileInputValid}
|
||||
jobs={jobs}
|
||||
loadingDatasetDetails={loadingDatasetDetails}
|
||||
datasetDetailError={datasetDetailError}
|
||||
isVectorDatasetType={isVectorDatasetType}
|
||||
onSetSelectedClipAreaId={setSelectedClipAreaId}
|
||||
onSetSelectedIntersectTargetId={setSelectedIntersectTargetId}
|
||||
onSetRasterTileSize={setRasterTileSize}
|
||||
onSetRasterTileOverlap={setRasterTileOverlap}
|
||||
onSetRasterTileOutputName={setRasterTileOutputName}
|
||||
onSetRasterReprojectCrs={setRasterReprojectCrs}
|
||||
onSetRasterReprojectResampling={setRasterReprojectResampling}
|
||||
onSetNdviNirBand={setNdviNirBand}
|
||||
onSetNdviRedBand={setNdviRedBand}
|
||||
onSetNdwiGreenBand={setNdwiGreenBand}
|
||||
onSetNdwiNirBand={setNdwiNirBand}
|
||||
onSetNdbiSwirBand={setNdbiSwirBand}
|
||||
onSetNdbiNirBand={setNdbiNirBand}
|
||||
onRunRasterInspect={runRasterInspect}
|
||||
onRunRasterPreview={runRasterPreview}
|
||||
onRunRasterStats={runRasterStats}
|
||||
onRunRasterReproject={runRasterReproject}
|
||||
onRunRasterClip={runRasterClip}
|
||||
onRunRasterTile={runRasterTile}
|
||||
onRunRasterNdvi={runRasterNdvi}
|
||||
onRunRasterNdwi={runRasterNdwi}
|
||||
onRunRasterNdbi={runRasterNdbi}
|
||||
onRunVectorClip={runVectorClip}
|
||||
onRunVectorBuffer={runVectorBuffer}
|
||||
onRunVectorIntersect={() => runVectorIntersect(availableVectorTargets)}
|
||||
onPickDerivedDataset={pickDerivedDataset}
|
||||
datasetsCount={datasets.length}
|
||||
qualityChecks={qualityChecks}
|
||||
exports={exports}
|
||||
latestExport={latestExport}
|
||||
detectionRuns={detectionRuns}
|
||||
selectedDetectionRunId={selectedDetectionRunId}
|
||||
detectionItems={detectionItems}
|
||||
segmentationRuns={segmentationRuns}
|
||||
selectedSegmentationRunId={selectedSegmentationRunId}
|
||||
segmentationItems={segmentationItems}
|
||||
datasetDetailProps={{
|
||||
areas,
|
||||
availableVectorTargets,
|
||||
selectedDatasetId,
|
||||
selectedDataset,
|
||||
selectedDatasetSummary,
|
||||
selectedRasterMetadata,
|
||||
selectedRasterStats,
|
||||
rasterPreview,
|
||||
rasterUnavailableMessage,
|
||||
selectedClipAreaId,
|
||||
selectedIntersectTargetId,
|
||||
rasterTileSize,
|
||||
rasterTileOverlap,
|
||||
rasterTileOutputName,
|
||||
rasterReprojectCrs,
|
||||
rasterReprojectResampling,
|
||||
ndviNirBand,
|
||||
ndviRedBand,
|
||||
ndwiGreenBand,
|
||||
ndwiNirBand,
|
||||
ndbiSwirBand,
|
||||
ndbiNirBand,
|
||||
isRasterTileInputValid,
|
||||
jobs,
|
||||
loadingDatasetDetails,
|
||||
datasetDetailError,
|
||||
isVectorDatasetType,
|
||||
onSetSelectedClipAreaId: setSelectedClipAreaId,
|
||||
onSetSelectedIntersectTargetId: setSelectedIntersectTargetId,
|
||||
onSetRasterTileSize: setRasterTileSize,
|
||||
onSetRasterTileOverlap: setRasterTileOverlap,
|
||||
onSetRasterTileOutputName: setRasterTileOutputName,
|
||||
onSetRasterReprojectCrs: setRasterReprojectCrs,
|
||||
onSetRasterReprojectResampling: setRasterReprojectResampling,
|
||||
onSetNdviNirBand: setNdviNirBand,
|
||||
onSetNdviRedBand: setNdviRedBand,
|
||||
onSetNdwiGreenBand: setNdwiGreenBand,
|
||||
onSetNdwiNirBand: setNdwiNirBand,
|
||||
onSetNdbiSwirBand: setNdbiSwirBand,
|
||||
onSetNdbiNirBand: setNdbiNirBand,
|
||||
onRunRasterInspect: runRasterInspect,
|
||||
onRunRasterPreview: runRasterPreview,
|
||||
onRunRasterStats: runRasterStats,
|
||||
onRunRasterReproject: runRasterReproject,
|
||||
onRunRasterClip: runRasterClip,
|
||||
onRunRasterTile: runRasterTile,
|
||||
onRunRasterNdvi: runRasterNdvi,
|
||||
onRunRasterNdwi: runRasterNdwi,
|
||||
onRunRasterNdbi: runRasterNdbi,
|
||||
onRunVectorClip: runVectorClip,
|
||||
onRunVectorBuffer: runVectorBuffer,
|
||||
onRunVectorIntersect: () => runVectorIntersect(availableVectorTargets),
|
||||
onPickDerivedDataset: pickDerivedDataset,
|
||||
}}
|
||||
/>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user