From f5216ba3e74daf09c11456e285900afdec2b1cac Mon Sep 17 00:00:00 2001 From: Carolina Capetillo Date: Tue, 24 Feb 2026 09:53:47 -0800 Subject: [PATCH 1/7] updates min character length of datasession name to 1 --- src/components/Project/CreateSessionDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Project/CreateSessionDialog.vue b/src/components/Project/CreateSessionDialog.vue index b85b8b7..68f5408 100644 --- a/src/components/Project/CreateSessionDialog.vue +++ b/src/components/Project/CreateSessionDialog.vue @@ -85,8 +85,8 @@ function validateSessionName(){ if (dataSessionsList.value.some(session => session.name === newSessionName.value)) { alertsStore.setAlert('error', `${newSessionName.value} already exists`) return false - } else if (newSessionName.value.length < 5) { - alertsStore.setAlert('warning', 'Data Session Name should be at least 5 characters long') + } else if (newSessionName.value.length < 1) { + alertsStore.setAlert('warning', 'Data Session Name should be at least 1 character long') return false } else if (newSessionName.value.length > 25) { alertsStore.setAlert('warning', `Data Session Name ${newSessionName.value} exceeds 25 characters`) From 7c251d7ebfb89e29409d1dc4f937ab050ff23f05 Mon Sep 17 00:00:00 2001 From: Carolina Capetillo Date: Tue, 24 Feb 2026 13:32:08 -0800 Subject: [PATCH 2/7] updates style --- src/components/Analysis/LightCurvePlot.vue | 17 +++++++++-------- src/components/Analysis/PeriodogramPlot.vue | 16 +++++++--------- .../Analysis/PhasedLightCurvePlot.vue | 16 +++++++--------- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/src/components/Analysis/LightCurvePlot.vue b/src/components/Analysis/LightCurvePlot.vue index b89e3e3..f822572 100644 --- a/src/components/Analysis/LightCurvePlot.vue +++ b/src/components/Analysis/LightCurvePlot.vue @@ -124,6 +124,7 @@ function createChart() { border: { color: text, width: 2 }, ticks: { color: text }, grid: { color: background, tickColor: text}, + reverse: true } }, plugins: { @@ -145,18 +146,20 @@ onMounted(() => { @@ -180,8 +183,6 @@ onMounted(() => { height: 100% !important; } .download-btn { - margin-left: 1rem; - margin-bottom: 1rem; align-self: flex-end; } diff --git a/src/components/Analysis/PeriodogramPlot.vue b/src/components/Analysis/PeriodogramPlot.vue index c73ebf7..fac53eb 100644 --- a/src/components/Analysis/PeriodogramPlot.vue +++ b/src/components/Analysis/PeriodogramPlot.vue @@ -186,20 +186,20 @@ onMounted(() => { @@ -223,8 +223,6 @@ onMounted(() => { height: 100% !important; } .download-btn { - margin-left: 1rem; - margin-bottom: 1rem; align-self: flex-end; } diff --git a/src/components/Analysis/PhasedLightCurvePlot.vue b/src/components/Analysis/PhasedLightCurvePlot.vue index 1e43254..ac26852 100644 --- a/src/components/Analysis/PhasedLightCurvePlot.vue +++ b/src/components/Analysis/PhasedLightCurvePlot.vue @@ -132,20 +132,20 @@ onMounted(() => { From e0d38da35f3544244b85d7cfcaa6b1341a9265be Mon Sep 17 00:00:00 2001 From: Carolina Capetillo Date: Tue, 24 Feb 2026 17:03:40 -0800 Subject: [PATCH 6/7] adds logic to check if best period is the same as selected period and display false alarm probability if so --- src/components/Analysis/PeriodogramPlot.vue | 9 +++++---- .../Analysis/PhasedLightCurvePlot.vue | 20 ++++++++++++++++++- src/views/DataAnalysisView.vue | 10 ++++++++-- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/src/components/Analysis/PeriodogramPlot.vue b/src/components/Analysis/PeriodogramPlot.vue index fac53eb..923c878 100644 --- a/src/components/Analysis/PeriodogramPlot.vue +++ b/src/components/Analysis/PeriodogramPlot.vue @@ -18,6 +18,7 @@ const props = defineProps({ const canvasEl = ref(null) let chart = null +const bestPeriod = ref(null) // Build an array of {x,y} points from store (x = frequency, y = power) function getXYPoints() { @@ -43,12 +44,12 @@ function createChart() { const background = style.getPropertyValue('--secondary-background') const points = getXYPoints() - let selected = [] if ( props.periodogramData.peakIndex != null && points[props.periodogramData.peakIndex] ) { - selected = [points[props.periodogramData.peakIndex]] + bestPeriod.value = points[props.periodogramData.peakIndex] + console.log('Best period point:', bestPeriod.value) } if (!points.length) { chart = new Chart(canvasEl.value, { @@ -79,7 +80,7 @@ function createChart() { }, { label: 'Selected', - data: selected, + data: bestPeriod.value ? [bestPeriod.value] : [], type: 'scatter', pointBackgroundColor: secondary, pointBorderColor: secondary, @@ -170,7 +171,7 @@ function handlePointClick(freq, pow) { if (!freq || Number.isNaN(freq) || freq <= 0) return const period = 1.0 / freq - emit('periodSelected', period) + emit('periodSelected', period, freq, pow, bestPeriod.value) } watch( diff --git a/src/components/Analysis/PhasedLightCurvePlot.vue b/src/components/Analysis/PhasedLightCurvePlot.vue index ac26852..ee7bf0b 100644 --- a/src/components/Analysis/PhasedLightCurvePlot.vue +++ b/src/components/Analysis/PhasedLightCurvePlot.vue @@ -1,3 +1,4 @@ +