- {timeCompareTimeDescription && (
-
{timeCompareTimeDescription}
- )}
- {Object.entries(featureByCategory)?.map(([featureCategory, features]) => {
- switch (featureCategory) {
- // TODO: deck restore this popup
- // case DataviewCategory.Comparison:
- // return (
- //
- // )
- case DataviewCategory.Activity:
- return (features as SliceExtendedFourwingsFeature[])?.map((feature, i) => {
- return feature.sublayers.map((sublayer, j) => (
-
- ))
- })
- case DataviewCategory.Detections:
- return (features as FourwingsPickingObject[])?.map((feature, i) => {
- return feature.sublayers.map((sublayer, j) => (
-
- ))
- })
- case DataviewCategory.Events:
- return (
-
+ {timeCompareTimeDescription && (
+ {timeCompareTimeDescription}
+ )}
+ {Object.entries(featureByCategory)?.map(([featureCategory, features]) => {
+ switch (featureCategory) {
+ // TODO: deck restore this popup
+ // case DataviewCategory.Comparison:
+ // return (
+ //
+ // )
+ case DataviewCategory.Activity: {
+ return (features as SliceExtendedFourwingsFeature[])?.map((feature, i) => {
+ return feature.sublayers.map((sublayer, j) => (
+
- )
- // TODO: deck restore this popup
- // case DataviewCategory.Environment: {
- // const contextEnvironmentalFeatures = features.filter(
- // (feature) =>
- // feature.type === DataviewType.Context ||
- // feature.type === DataviewType.UserContext
- // )
- // const environmentalFeatures = features.filter(
- // (feature) =>
- // feature.type !== DataviewType.Context &&
- // feature.type !== DataviewType.UserContext
- // )
- // return (
- //
- //
- //
- //
- // )
- // }
- case DataviewCategory.Context: {
- // const defaultContextFeatures = features.filter(
- // (feature) => feature.type === DataviewType.Context
- // )
- // const workspacePointsFeatures = features.filter(
- // (feature) => feature.source === WORKSPACE_GENERATOR_ID
- // )
- // const areaBufferFeatures = features.filter(
- // (feature) => feature.source === REPORT_BUFFER_GENERATOR_ID
- // )
- // const annotationFeatures = features.filter(
- // (feature) => feature.type === DataviewType.Annotation
- // )
- // const rulersFeatures = features.filter(
- // (feature) => feature.type === DataviewType.Rulers
- // )
- // const userPointFeatures = features.filter(
- // (feature) => feature.type === DataviewType.UserPoints
- // )
+ ))
+ })
+ }
+ case DataviewCategory.Detections: {
+ return (features as FourwingsPickingObject[])?.map((feature, i) => {
+ return feature.sublayers.map((sublayer, j) => (
+
+ ))
+ })
+ }
+ case DataviewCategory.Events: {
+ if (apiEventStatus === AsyncReducerStatus.Loading) {
return (
-
- {/*
+
+
+
+ )
+ }
+ return (
+
+ )
+ }
+ // TODO: deck restore this popup
+ // case DataviewCategory.Environment: {
+ // const contextEnvironmentalFeatures = features.filter(
+ // (feature) =>
+ // feature.type === DataviewType.Context ||
+ // feature.type === DataviewType.UserContext
+ // )
+ // const environmentalFeatures = features.filter(
+ // (feature) =>
+ // feature.type !== DataviewType.Context &&
+ // feature.type !== DataviewType.UserContext
+ // )
+ // return (
+ //
+ //
+ //
+ //
+ // )
+ // }
+ case DataviewCategory.Context: {
+ // const defaultContextFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.Context
+ // )
+ // const workspacePointsFeatures = features.filter(
+ // (feature) => feature.source === WORKSPACE_GENERATOR_ID
+ // )
+ // const areaBufferFeatures = features.filter(
+ // (feature) => feature.source === REPORT_BUFFER_GENERATOR_ID
+ // )
+ // const annotationFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.Annotation
+ // )
+ // const rulersFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.Rulers
+ // )
+ // const userPointFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.UserPoints
+ // )
+ return (
+
+ {/*
// TODO: deck restore this popup
*/}
-
-
- )
- }
- // TODO: deck restore this popup
- // case DataviewCategory.User: {
- // const userPointFeatures = features.filter(
- // (feature) => feature.type === DataviewType.UserPoints
- // )
- // const userContextFeatures = features.filter(
- // (feature) => feature.type === DataviewType.UserContext
- // )
- // return (
- //
- //
- //
- //
- // )
- // }
+
+
+ )
+ }
+ // TODO: deck restore this popup
+ // case DataviewCategory.User: {
+ // const userPointFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.UserPoints
+ // )
+ // const userContextFeatures = features.filter(
+ // (feature) => feature.type === DataviewType.UserContext
+ // )
+ // return (
+ //
+ //
+ //
+ //
+ // )
+ // }
- // case DataviewCategory.Vessels:
- // return (
- //
- // )
+ // case DataviewCategory.Vessels:
+ // return (
+ //
+ // )
- default:
- return null
- }
- })}
-
+ default:
+ return null
+ }
+ })}