2023-08-21 01:51:35 -04:00
|
|
|
<script setup lang="ts">
|
2025-01-03 18:50:25 -05:00
|
|
|
import PvSelect, { type SelectItem } from "@/components/common/pv-select.vue";
|
2023-08-21 01:51:35 -04:00
|
|
|
import { useStateStore } from "@/stores/StateStore";
|
|
|
|
|
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
|
|
|
|
|
import { WebsocketPipelineType } from "@/types/WebsocketDataTypes";
|
|
|
|
|
import { computed, ref } from "vue";
|
2023-10-17 16:32:59 -04:00
|
|
|
import PvIcon from "@/components/common/pv-icon.vue";
|
|
|
|
|
import PvInput from "@/components/common/pv-input.vue";
|
2023-08-21 01:51:35 -04:00
|
|
|
import { PipelineType } from "@/types/PipelineTypes";
|
2024-01-15 22:28:34 -05:00
|
|
|
import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore";
|
2025-08-04 01:15:33 -04:00
|
|
|
import { useTheme } from "vuetify";
|
|
|
|
|
|
|
|
|
|
const theme = useTheme();
|
2023-08-21 01:51:35 -04:00
|
|
|
|
2025-01-03 18:50:25 -05:00
|
|
|
const changeCurrentCameraUniqueName = (cameraUniqueName: string) => {
|
|
|
|
|
useCameraSettingsStore().setCurrentCameraUniqueName(cameraUniqueName, true);
|
2023-08-21 01:51:35 -04:00
|
|
|
|
2025-01-03 18:50:25 -05:00
|
|
|
switch (useCameraSettingsStore().cameras[cameraUniqueName].pipelineSettings.pipelineType) {
|
2023-08-21 01:51:35 -04:00
|
|
|
case PipelineType.Reflective:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.Reflective;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.ColoredShape:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.ColoredShape;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.AprilTag:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.AprilTag;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.Aruco:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.Aruco;
|
|
|
|
|
break;
|
2024-01-15 22:28:34 -05:00
|
|
|
case PipelineType.ObjectDetection:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.ObjectDetection;
|
2024-01-16 22:23:05 -05:00
|
|
|
break;
|
2023-08-21 01:51:35 -04:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Common RegEx used for naming both pipelines and cameras
|
|
|
|
|
const nameChangeRegex = /^[A-Za-z0-9_ \-)(]*[A-Za-z0-9][A-Za-z0-9_ \-)(.]*$/;
|
|
|
|
|
|
|
|
|
|
// Camera Name Edit
|
|
|
|
|
const isCameraNameEdit = ref(false);
|
|
|
|
|
const currentCameraName = ref(useCameraSettingsStore().currentCameraSettings.nickname);
|
|
|
|
|
const startCameraNameEdit = () => {
|
|
|
|
|
currentCameraName.value = useCameraSettingsStore().currentCameraSettings.nickname;
|
|
|
|
|
isCameraNameEdit.value = true;
|
|
|
|
|
};
|
|
|
|
|
const checkCameraName = (name: string): string | boolean => {
|
2023-08-31 16:56:58 -04:00
|
|
|
if (!nameChangeRegex.test(name))
|
|
|
|
|
return "A camera name can only contain letters, numbers, spaces, underscores, hyphens, parenthesis, and periods";
|
|
|
|
|
if (useCameraSettingsStore().cameraNames.some((cameraName) => cameraName === name))
|
|
|
|
|
return "This camera name has already been used";
|
2023-08-21 01:51:35 -04:00
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
const saveCameraNameEdit = (newName: string) => {
|
2023-08-31 16:56:58 -04:00
|
|
|
useCameraSettingsStore()
|
|
|
|
|
.changeCameraNickname(newName, false)
|
|
|
|
|
.then((response) => {
|
2025-08-04 01:15:33 -04:00
|
|
|
useStateStore().showSnackbarMessage({ color: "success", message: response.data.text || response.data });
|
2023-08-31 16:56:58 -04:00
|
|
|
useCameraSettingsStore().currentCameraSettings.nickname = newName;
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
if (error.response) {
|
2023-08-21 01:51:35 -04:00
|
|
|
useStateStore().showSnackbarMessage({
|
2023-08-31 16:56:58 -04:00
|
|
|
color: "error",
|
|
|
|
|
message: error.response.data.text || error.response.data
|
2023-08-21 01:51:35 -04:00
|
|
|
});
|
2023-08-31 16:56:58 -04:00
|
|
|
} else if (error.request) {
|
|
|
|
|
useStateStore().showSnackbarMessage({
|
|
|
|
|
color: "error",
|
|
|
|
|
message: "Error while trying to process the request! The backend didn't respond."
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
useStateStore().showSnackbarMessage({
|
|
|
|
|
color: "error",
|
|
|
|
|
message: "An error occurred while trying to process the request."
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
currentCameraName.value = useCameraSettingsStore().currentCameraSettings.nickname;
|
|
|
|
|
})
|
|
|
|
|
.finally(() => (isCameraNameEdit.value = false));
|
2023-08-21 01:51:35 -04:00
|
|
|
};
|
|
|
|
|
const cancelCameraNameEdit = () => {
|
|
|
|
|
isCameraNameEdit.value = false;
|
|
|
|
|
currentCameraName.value = useCameraSettingsStore().currentCameraSettings.nickname;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Pipeline Name Edit
|
2025-01-03 18:50:25 -05:00
|
|
|
const pipelineNamesWrapper = computed<SelectItem[]>(() => {
|
2023-08-21 01:51:35 -04:00
|
|
|
const pipelineNames = useCameraSettingsStore().pipelineNames.map((name, index) => ({ name: name, value: index }));
|
|
|
|
|
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isDriverMode) {
|
2023-08-21 01:51:35 -04:00
|
|
|
pipelineNames.push({ name: "Driver Mode", value: WebsocketPipelineType.DriverMode });
|
|
|
|
|
}
|
2025-11-16 18:15:42 -06:00
|
|
|
if (useCameraSettingsStore().isFocusMode) {
|
|
|
|
|
pipelineNames.push({ name: "Focus Mode", value: WebsocketPipelineType.FocusCamera });
|
|
|
|
|
}
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isCalibrationMode) {
|
2023-08-21 01:51:35 -04:00
|
|
|
pipelineNames.push({ name: "3D Calibration Mode", value: WebsocketPipelineType.Calib3d });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pipelineNames;
|
|
|
|
|
});
|
|
|
|
|
const isPipelineNameEdit = ref(false);
|
|
|
|
|
const currentPipelineName = ref(useCameraSettingsStore().currentPipelineSettings.pipelineNickname);
|
|
|
|
|
const startPipelineNameEdit = () => {
|
|
|
|
|
currentPipelineName.value = useCameraSettingsStore().currentPipelineSettings.pipelineNickname;
|
|
|
|
|
isPipelineNameEdit.value = true;
|
|
|
|
|
};
|
|
|
|
|
const checkPipelineName = (name: string): string | boolean => {
|
2023-08-31 16:56:58 -04:00
|
|
|
if (!nameChangeRegex.test(name))
|
|
|
|
|
return "A pipeline name can only contain letters, numbers, spaces, underscores, hyphens, parenthesis, and periods";
|
|
|
|
|
if (useCameraSettingsStore().pipelineNames.some((pipelineName) => pipelineName === name))
|
|
|
|
|
return "This pipeline name has already been used";
|
2023-08-21 01:51:35 -04:00
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
const savePipelineNameEdit = (name: string) => {
|
|
|
|
|
useCameraSettingsStore().changeCurrentPipelineNickname(name);
|
|
|
|
|
isPipelineNameEdit.value = false;
|
|
|
|
|
};
|
|
|
|
|
const cancelPipelineNameEdit = () => {
|
|
|
|
|
isPipelineNameEdit.value = false;
|
|
|
|
|
currentPipelineName.value = useCameraSettingsStore().currentPipelineSettings.pipelineNickname;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Pipeline Creation
|
|
|
|
|
const showPipelineCreationDialog = ref(false);
|
|
|
|
|
const newPipelineName = ref("");
|
|
|
|
|
const newPipelineType = ref<WebsocketPipelineType>(useCameraSettingsStore().currentWebsocketPipelineType);
|
2024-01-16 22:23:05 -05:00
|
|
|
const validNewPipelineTypes = computed(() => {
|
|
|
|
|
const pipelineTypes = [
|
|
|
|
|
{ name: "Reflective", value: WebsocketPipelineType.Reflective },
|
|
|
|
|
{ name: "Colored Shape", value: WebsocketPipelineType.ColoredShape },
|
|
|
|
|
{ name: "AprilTag", value: WebsocketPipelineType.AprilTag },
|
2025-11-13 23:07:33 +02:00
|
|
|
{ name: "ArUco", value: WebsocketPipelineType.Aruco }
|
2024-01-16 22:23:05 -05:00
|
|
|
];
|
2024-09-21 16:08:00 -04:00
|
|
|
if (useSettingsStore().general.supportedBackends.length > 0) {
|
2024-01-16 22:23:05 -05:00
|
|
|
pipelineTypes.push({ name: "Object Detection", value: WebsocketPipelineType.ObjectDetection });
|
|
|
|
|
}
|
|
|
|
|
return pipelineTypes;
|
|
|
|
|
});
|
2023-08-21 01:51:35 -04:00
|
|
|
const showCreatePipelineDialog = () => {
|
|
|
|
|
newPipelineName.value = "";
|
|
|
|
|
newPipelineType.value = useCameraSettingsStore().currentWebsocketPipelineType;
|
|
|
|
|
showPipelineCreationDialog.value = true;
|
|
|
|
|
};
|
|
|
|
|
const createNewPipeline = () => {
|
|
|
|
|
const type = newPipelineType.value;
|
2023-08-31 16:56:58 -04:00
|
|
|
if (type === WebsocketPipelineType.DriverMode || type === WebsocketPipelineType.Calib3d) return;
|
2023-08-21 01:51:35 -04:00
|
|
|
useCameraSettingsStore().createNewPipeline(newPipelineName.value, type);
|
|
|
|
|
showPipelineCreationDialog.value = false;
|
|
|
|
|
};
|
|
|
|
|
const cancelPipelineCreation = () => {
|
|
|
|
|
showPipelineCreationDialog.value = false;
|
|
|
|
|
newPipelineName.value = "";
|
|
|
|
|
newPipelineType.value = useCameraSettingsStore().currentWebsocketPipelineType;
|
|
|
|
|
};
|
|
|
|
|
|
2023-10-21 10:46:53 -04:00
|
|
|
// Pipeline Deletion
|
2023-08-21 01:51:35 -04:00
|
|
|
const showPipelineDeletionConfirmationDialog = ref(false);
|
|
|
|
|
const confirmDeleteCurrentPipeline = () => {
|
|
|
|
|
useCameraSettingsStore().deleteCurrentPipeline();
|
|
|
|
|
showPipelineDeletionConfirmationDialog.value = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Pipeline Type Change
|
|
|
|
|
const showPipelineTypeChangeDialog = ref(false);
|
2023-08-31 16:56:58 -04:00
|
|
|
const pipelineTypesWrapper = computed<{ name: string; value: number }[]>(() => {
|
|
|
|
|
const pipelineTypes = [
|
2023-08-21 01:51:35 -04:00
|
|
|
{ name: "Reflective", value: WebsocketPipelineType.Reflective },
|
|
|
|
|
{ name: "Colored Shape", value: WebsocketPipelineType.ColoredShape },
|
2023-10-24 19:39:38 -07:00
|
|
|
{ name: "AprilTag", value: WebsocketPipelineType.AprilTag },
|
2025-11-13 23:07:33 +02:00
|
|
|
{ name: "ArUco", value: WebsocketPipelineType.Aruco }
|
2023-08-21 01:51:35 -04:00
|
|
|
];
|
2024-09-21 16:08:00 -04:00
|
|
|
if (useSettingsStore().general.supportedBackends.length > 0) {
|
2024-01-15 22:28:34 -05:00
|
|
|
pipelineTypes.push({ name: "Object Detection", value: WebsocketPipelineType.ObjectDetection });
|
|
|
|
|
}
|
2023-08-21 01:51:35 -04:00
|
|
|
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isDriverMode) {
|
2023-08-21 01:51:35 -04:00
|
|
|
pipelineTypes.push({ name: "Driver Mode", value: WebsocketPipelineType.DriverMode });
|
|
|
|
|
}
|
2025-11-16 18:15:42 -06:00
|
|
|
if (useCameraSettingsStore().isFocusMode) {
|
|
|
|
|
pipelineTypes.push({ name: "Focus Mode", value: WebsocketPipelineType.FocusCamera });
|
|
|
|
|
}
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isCalibrationMode) {
|
2023-08-21 01:51:35 -04:00
|
|
|
pipelineTypes.push({ name: "3D Calibration Mode", value: WebsocketPipelineType.Calib3d });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pipelineTypes;
|
|
|
|
|
});
|
|
|
|
|
const pipelineType = ref<WebsocketPipelineType>(useCameraSettingsStore().currentWebsocketPipelineType);
|
|
|
|
|
const currentPipelineType = computed<WebsocketPipelineType>({
|
|
|
|
|
get: () => {
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isDriverMode) return WebsocketPipelineType.DriverMode;
|
2025-11-16 18:15:42 -06:00
|
|
|
if (useCameraSettingsStore().isFocusMode) return WebsocketPipelineType.FocusCamera;
|
2023-08-31 16:56:58 -04:00
|
|
|
if (useCameraSettingsStore().isCalibrationMode) return WebsocketPipelineType.Calib3d;
|
2023-08-21 01:51:35 -04:00
|
|
|
return pipelineType.value;
|
|
|
|
|
},
|
2023-08-31 16:56:58 -04:00
|
|
|
set: (v) => {
|
2023-08-21 01:51:35 -04:00
|
|
|
pipelineType.value = v;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const confirmChangePipelineType = () => {
|
|
|
|
|
const type = currentPipelineType.value;
|
2023-08-31 16:56:58 -04:00
|
|
|
if (type === WebsocketPipelineType.DriverMode || type === WebsocketPipelineType.Calib3d) return;
|
2023-08-21 01:51:35 -04:00
|
|
|
useCameraSettingsStore().changeCurrentPipelineType(type);
|
|
|
|
|
showPipelineTypeChangeDialog.value = false;
|
|
|
|
|
};
|
|
|
|
|
const cancelChangePipelineType = () => {
|
|
|
|
|
pipelineType.value = useCameraSettingsStore().currentWebsocketPipelineType;
|
|
|
|
|
showPipelineTypeChangeDialog.value = false;
|
|
|
|
|
};
|
|
|
|
|
|
2023-10-21 10:46:53 -04:00
|
|
|
// Pipeline duplication'
|
|
|
|
|
const duplicateCurrentPipeline = () => {
|
|
|
|
|
useCameraSettingsStore().duplicatePipeline(useCameraSettingsStore().currentCameraSettings.currentPipelineIndex);
|
|
|
|
|
};
|
|
|
|
|
|
2023-08-21 01:51:35 -04:00
|
|
|
// Change Props whenever the pipeline settings are changed
|
|
|
|
|
useCameraSettingsStore().$subscribe((mutation, state) => {
|
2025-01-03 18:50:25 -05:00
|
|
|
const currentCameraSettings = state.cameras[useStateStore().currentCameraUniqueName];
|
2023-08-21 01:51:35 -04:00
|
|
|
|
|
|
|
|
switch (currentCameraSettings.pipelineSettings.pipelineType) {
|
|
|
|
|
case PipelineType.Reflective:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.Reflective;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.ColoredShape:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.ColoredShape;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.AprilTag:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.AprilTag;
|
|
|
|
|
break;
|
|
|
|
|
case PipelineType.Aruco:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.Aruco;
|
|
|
|
|
break;
|
2024-01-15 22:28:34 -05:00
|
|
|
case PipelineType.ObjectDetection:
|
|
|
|
|
pipelineType.value = WebsocketPipelineType.ObjectDetection;
|
|
|
|
|
break;
|
2023-08-21 01:51:35 -04:00
|
|
|
}
|
|
|
|
|
});
|
2025-01-03 18:50:25 -05:00
|
|
|
const wrappedCameras = computed<SelectItem[]>(() =>
|
|
|
|
|
Object.keys(useCameraSettingsStore().cameras).map((cameraUniqueName) => ({
|
|
|
|
|
name: useCameraSettingsStore().cameras[cameraUniqueName].nickname,
|
|
|
|
|
value: cameraUniqueName
|
|
|
|
|
}))
|
|
|
|
|
);
|
2023-08-21 01:51:35 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-card color="surface" class="rounded-12">
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-row no-gutters class="pl-4 pt-2 pb-0">
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-col cols="10" class="pa-0">
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-select
|
2023-08-21 01:51:35 -04:00
|
|
|
v-if="!isCameraNameEdit"
|
2025-01-03 18:50:25 -05:00
|
|
|
v-model="useStateStore().currentCameraUniqueName"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Camera"
|
2025-01-03 18:50:25 -05:00
|
|
|
:items="wrappedCameras"
|
2025-05-06 18:21:41 -04:00
|
|
|
@update:modelValue="changeCurrentCameraUniqueName"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-input
|
2023-08-21 01:51:35 -04:00
|
|
|
v-else
|
|
|
|
|
v-model="currentCameraName"
|
|
|
|
|
class="pt-2"
|
2023-08-31 16:56:58 -04:00
|
|
|
:input-cols="12 - 3"
|
|
|
|
|
:rules="[(v) => checkCameraName(v)]"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Camera"
|
2023-10-21 10:46:53 -04:00
|
|
|
@onEnter="saveCameraNameEdit"
|
|
|
|
|
@onEscape="cancelCameraNameEdit"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
|
|
|
|
</v-col>
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-col cols="2" style="display: flex; align-items: center; justify-content: center">
|
2023-10-21 10:46:53 -04:00
|
|
|
<div v-if="isCameraNameEdit" style="display: flex; gap: 14px">
|
|
|
|
|
<pv-icon
|
|
|
|
|
icon-name="mdi-content-save"
|
|
|
|
|
color="#c5c5c5"
|
|
|
|
|
:disabled="checkCameraName(currentCameraName) !== true"
|
|
|
|
|
@click="() => saveCameraNameEdit(currentCameraName)"
|
|
|
|
|
/>
|
2025-05-06 18:21:41 -04:00
|
|
|
<pv-icon icon-name="mdi-cancel" color="red-darken-2" @click="cancelCameraNameEdit" />
|
2023-10-21 10:46:53 -04:00
|
|
|
</div>
|
|
|
|
|
<pv-icon
|
|
|
|
|
v-else
|
|
|
|
|
color="#c5c5c5"
|
|
|
|
|
icon-name="mdi-pencil"
|
|
|
|
|
tooltip="Edit Camera Name"
|
|
|
|
|
@click="startCameraNameEdit"
|
|
|
|
|
/>
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-row no-gutters class="pl-4 pb-0 pt-0">
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-col cols="10" class="pa-0">
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-select
|
2023-08-21 01:51:35 -04:00
|
|
|
v-if="!isPipelineNameEdit"
|
2025-05-06 18:21:41 -04:00
|
|
|
:model-value="useCameraSettingsStore().currentCameraSettings.currentPipelineIndex"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Pipeline"
|
|
|
|
|
tooltip="Each pipeline runs on a camera output and stores a unique set of processing settings"
|
2025-01-01 03:04:20 -05:00
|
|
|
:disabled="
|
|
|
|
|
useCameraSettingsStore().isDriverMode ||
|
2025-11-16 18:15:42 -06:00
|
|
|
useCameraSettingsStore().isFocusMode ||
|
2025-01-01 03:04:20 -05:00
|
|
|
useCameraSettingsStore().isCalibrationMode ||
|
|
|
|
|
!useCameraSettingsStore().hasConnected
|
|
|
|
|
"
|
2023-08-21 01:51:35 -04:00
|
|
|
:items="pipelineNamesWrapper"
|
2025-05-06 18:21:41 -04:00
|
|
|
@update:modelValue="(args) => useCameraSettingsStore().changeCurrentPipelineIndex(args, true)"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-input
|
2023-08-21 01:51:35 -04:00
|
|
|
v-else
|
|
|
|
|
v-model="currentPipelineName"
|
2023-08-31 16:56:58 -04:00
|
|
|
:input-cols="12 - 3"
|
|
|
|
|
:rules="[(v) => checkPipelineName(v)]"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Pipeline"
|
2023-10-21 10:46:53 -04:00
|
|
|
@onEnter="(v) => savePipelineNameEdit(v)"
|
|
|
|
|
@onEscape="cancelPipelineNameEdit"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
|
|
|
|
</v-col>
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-col cols="2" class="pa-0" style="display: flex; align-items: center; justify-content: center">
|
2023-10-21 10:46:53 -04:00
|
|
|
<div v-if="isPipelineNameEdit" style="display: flex; gap: 14px">
|
|
|
|
|
<pv-icon
|
|
|
|
|
icon-name="mdi-content-save"
|
|
|
|
|
color="#c5c5c5"
|
|
|
|
|
:disabled="checkPipelineName(currentPipelineName) !== true"
|
|
|
|
|
@click="() => savePipelineNameEdit(currentPipelineName)"
|
|
|
|
|
/>
|
2025-05-06 18:21:41 -04:00
|
|
|
<pv-icon icon-name="mdi-cancel" color="red-darken-2" @click="cancelPipelineNameEdit" />
|
2023-10-21 10:46:53 -04:00
|
|
|
</div>
|
2025-05-06 18:21:41 -04:00
|
|
|
<v-menu v-else-if="!useCameraSettingsStore().isDriverMode" offset="7">
|
|
|
|
|
<template #activator="{ props }">
|
|
|
|
|
<v-icon color="#c5c5c5" v-bind="props" @click="cancelPipelineNameEdit"> mdi-menu </v-icon>
|
2023-08-21 01:51:35 -04:00
|
|
|
</template>
|
2025-05-06 18:21:41 -04:00
|
|
|
<v-list density="compact" color="primary">
|
2023-08-21 01:51:35 -04:00
|
|
|
<v-list-item @click="startPipelineNameEdit">
|
|
|
|
|
<v-list-item-title>
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-icon color="#c5c5c5" :right="true" icon-name="mdi-pencil" tooltip="Edit pipeline name" />
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-list-item-title>
|
|
|
|
|
</v-list-item>
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-list-item @click="duplicateCurrentPipeline">
|
2023-08-21 01:51:35 -04:00
|
|
|
<v-list-item-title>
|
2025-08-04 01:15:33 -04:00
|
|
|
<pv-icon color="#c5c5c5" :right="true" icon-name="mdi-content-copy" tooltip="Duplicate pipeline" />
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-list-item-title>
|
|
|
|
|
</v-list-item>
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-list-item @click="showCreatePipelineDialog">
|
2023-08-21 01:51:35 -04:00
|
|
|
<v-list-item-title>
|
2025-08-04 01:15:33 -04:00
|
|
|
<pv-icon color="green" :right="true" icon-name="mdi-plus" tooltip="Add new pipeline" />
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-list-item-title>
|
|
|
|
|
</v-list-item>
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-list-item @click="showPipelineDeletionConfirmationDialog = true">
|
2023-08-21 01:51:35 -04:00
|
|
|
<v-list-item-title>
|
2025-08-04 01:15:33 -04:00
|
|
|
<pv-icon
|
|
|
|
|
color="red-darken-2"
|
|
|
|
|
:right="true"
|
|
|
|
|
icon-name="mdi-trash-can-outline"
|
|
|
|
|
tooltip="Delete pipeline"
|
|
|
|
|
/>
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-list-item-title>
|
|
|
|
|
</v-list-item>
|
|
|
|
|
</v-list>
|
|
|
|
|
</v-menu>
|
2023-10-21 10:46:53 -04:00
|
|
|
<pv-icon
|
|
|
|
|
v-else-if="useCameraSettingsStore().isDriverMode && useCameraSettingsStore().pipelineNames.length === 0"
|
|
|
|
|
color="#c5c5c5"
|
|
|
|
|
:right="true"
|
|
|
|
|
icon-name="mdi-plus"
|
|
|
|
|
tooltip="Add new pipeline"
|
|
|
|
|
@click="showCreatePipelineDialog"
|
|
|
|
|
/>
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-row no-gutters class="pl-4 pt-0 pb-4">
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-col cols="10" class="pa-0">
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-select
|
2023-08-21 01:51:35 -04:00
|
|
|
v-model="currentPipelineType"
|
|
|
|
|
label="Type"
|
|
|
|
|
tooltip="Changes the pipeline type, which changes the type of processing that will happen on input frames"
|
2025-01-01 03:04:20 -05:00
|
|
|
:disabled="
|
|
|
|
|
useCameraSettingsStore().isDriverMode ||
|
2025-11-16 18:15:42 -06:00
|
|
|
useCameraSettingsStore().isFocusMode ||
|
2025-01-01 03:04:20 -05:00
|
|
|
useCameraSettingsStore().isCalibrationMode ||
|
|
|
|
|
!useCameraSettingsStore().hasConnected
|
|
|
|
|
"
|
2023-08-21 01:51:35 -04:00
|
|
|
:items="pipelineTypesWrapper"
|
2025-05-06 18:21:41 -04:00
|
|
|
@update:modelValue="showPipelineTypeChangeDialog = true"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
|
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
2025-05-06 18:21:41 -04:00
|
|
|
<v-dialog v-model="showPipelineCreationDialog" persistent width="500">
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-card color="surface">
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-card-title class="pb-0"> Create New Pipeline </v-card-title>
|
|
|
|
|
<v-card-text class="pt-0 pb-0">
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-input
|
2023-08-21 01:51:35 -04:00
|
|
|
v-model="newPipelineName"
|
|
|
|
|
placeholder="Pipeline Name"
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
:label-cols="4"
|
|
|
|
|
:input-cols="12 - 4"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Pipeline Name"
|
2023-08-31 16:56:58 -04:00
|
|
|
:rules="[(v) => checkPipelineName(v)]"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
2023-10-17 16:32:59 -04:00
|
|
|
<pv-select
|
2023-08-21 01:51:35 -04:00
|
|
|
v-model="newPipelineType"
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
:select-cols="12 - 4"
|
2023-08-21 01:51:35 -04:00
|
|
|
label="Tracking Type"
|
|
|
|
|
tooltip="Pipeline type, which changes the type of processing that will happen on input frames"
|
2024-01-16 22:23:05 -05:00
|
|
|
:items="validNewPipelineTypes"
|
2023-08-21 01:51:35 -04:00
|
|
|
/>
|
|
|
|
|
</v-card-text>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-card-actions class="pr-5 pt-10px pb-5">
|
2025-01-07 08:45:39 -05:00
|
|
|
<v-btn
|
2025-08-04 01:15:33 -04:00
|
|
|
color="buttonPassive"
|
|
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
|
|
|
|
@click="cancelPipelineCreation"
|
|
|
|
|
>
|
|
|
|
|
Cancel
|
|
|
|
|
</v-btn>
|
|
|
|
|
<v-btn
|
|
|
|
|
color="buttonActive"
|
|
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
2025-01-07 08:45:39 -05:00
|
|
|
:disabled="checkPipelineName(newPipelineName) !== true"
|
|
|
|
|
@click="createNewPipeline"
|
|
|
|
|
>
|
2025-08-04 01:15:33 -04:00
|
|
|
Create
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-btn>
|
|
|
|
|
</v-card-actions>
|
|
|
|
|
</v-card>
|
|
|
|
|
</v-dialog>
|
2025-05-06 18:21:41 -04:00
|
|
|
<v-dialog v-model="showPipelineDeletionConfirmationDialog" width="500">
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-card color="surface">
|
|
|
|
|
<v-card-title class="pb-0">Delete Pipeline</v-card-title>
|
2023-10-21 11:09:55 -04:00
|
|
|
<v-card-text>
|
2025-08-04 01:15:33 -04:00
|
|
|
Are you sure you want to delete
|
|
|
|
|
<span style="color: white">"{{ useCameraSettingsStore().currentPipelineSettings.pipelineNickname }}"</span>?
|
|
|
|
|
This cannot be undone.
|
2023-10-21 11:09:55 -04:00
|
|
|
</v-card-text>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-card-actions class="pa-5 pt-0">
|
2025-05-06 18:21:41 -04:00
|
|
|
<v-btn
|
2025-08-04 01:15:33 -04:00
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
|
|
|
|
color="primary"
|
2025-05-06 18:21:41 -04:00
|
|
|
class="text-black"
|
|
|
|
|
@click="showPipelineDeletionConfirmationDialog = false"
|
|
|
|
|
>
|
2025-08-04 01:15:33 -04:00
|
|
|
Cancel
|
|
|
|
|
</v-btn>
|
|
|
|
|
<v-btn
|
|
|
|
|
color="error"
|
|
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
|
|
|
|
@click="confirmDeleteCurrentPipeline"
|
|
|
|
|
>
|
|
|
|
|
Delete
|
2025-01-07 08:45:39 -05:00
|
|
|
</v-btn>
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-card-actions>
|
|
|
|
|
</v-card>
|
|
|
|
|
</v-dialog>
|
2023-08-31 16:56:58 -04:00
|
|
|
<v-dialog v-model="showPipelineTypeChangeDialog" persistent width="600">
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-card color="surface" dark>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-card-title class="pb-0">Change Pipeline Type</v-card-title>
|
2023-08-21 01:51:35 -04:00
|
|
|
<v-card-text>
|
2023-08-31 16:56:58 -04:00
|
|
|
Are you sure you want to change the current pipeline type? This will cause all the pipeline settings to be
|
|
|
|
|
overwritten and they will be lost. If this isn't what you want, duplicate this pipeline first or export
|
|
|
|
|
settings.
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-card-text>
|
Clean up spacing and other things in various parts of the UI (#1972)
## Description
After the Vue 3 upgrade, the spacing for various UI elements was left
inconsistent in many places. Dialogs were hit especially hard and had
some very inconsistent spacing. Additionally, the 24 pixels of padding
around all cards was noted as a waste of space and unnecessary, so it
has been shrunk down to 20 pixels to make the UI a tiny bit more compact
and to make it visually closer to some parts of the UI that have 16
pixels of padding (the camera views are the most notable example).
Padding between input elements has also been reduced to 20 pixels (this
required some hackery to get consistent sizes on input elements, since
switches and sliders have different heights.)
Some other minor UI tweaks were made, such as removing the divider
between dialog contents and dialog buttons because it visually looks
better, shrinking the banner padding so it doesn't displace as much
content, making the banner background one uniform color instead of a
highlight around the icon, fixing the targets tab so that the columns
stop shifting around when the values change, preserving newlines in the
log view, cleaning up the object detection UI, and making the import
dialogs have consistently inset input elements.
Old dashboard:

New dashboard:

Old Camera tab:

New Camera tab:

Old Calibration Info:

New Calibration Info:

Old Log Viewer:

New Log Viewer:

Old Pipeline Creation Dialog:

New Pipeline Creation Dialog:

Old Factory Reset:

New Factory Reset:

Old Pipeline Change:

New Pipeline Change:

Old Import Dialog:

New Import Dialog:

## Meta
Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
2025-07-12 00:02:23 -04:00
|
|
|
<v-card-actions class="pa-5 pt-0">
|
2025-08-04 01:15:33 -04:00
|
|
|
<v-btn
|
|
|
|
|
color="buttonPassive"
|
|
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
|
|
|
|
class="text-black"
|
|
|
|
|
@click="cancelChangePipelineType"
|
|
|
|
|
>
|
|
|
|
|
Cancel
|
|
|
|
|
</v-btn>
|
|
|
|
|
<v-btn
|
|
|
|
|
color="buttonActive"
|
|
|
|
|
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
|
|
|
|
|
@click="confirmChangePipelineType"
|
|
|
|
|
>
|
|
|
|
|
Confirm
|
2025-05-06 18:21:41 -04:00
|
|
|
</v-btn>
|
2023-08-21 01:51:35 -04:00
|
|
|
</v-card-actions>
|
|
|
|
|
</v-card>
|
|
|
|
|
</v-dialog>
|
|
|
|
|
</v-card>
|
|
|
|
|
</template>
|