Skip to content

Commit

Permalink
disable auto-selection on user uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-eyes committed Jan 4, 2025
1 parent 8ca9518 commit d1291aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ <h2>Selected Data Points</h2>

// Add newExperiments to selectedPoints
if (newExperiments.length > 0) {
selectedPoints = selectedPoints.concat(newExperiments);
{{/* selectedPoints = selectedPoints.concat(newExperiments); */}}
operationsLog.push(`Added ${newExperiments.length} new experiments to selected points.`);
console.log('Selected Points after append:', selectedPoints);
} else {
Expand All @@ -718,8 +718,11 @@ <h2>Selected Data Points</h2>
const plotId = `plot-${i}`;
updatePlot(plotId);
}
/*
UNCOMMENT TO AUTO-HIGHLIGHT NEW POINTS
updateTable();
highlightSelectedPoints();
*/

// Show notification with cumulative upload statistics
displayDataStatistics();
Expand Down Expand Up @@ -959,7 +962,8 @@ <h2>Selected Data Points</h2>
integrateUserData(userDataArray);

// Select user data points
selectedPoints = userDataArray.slice();
// UNCOMMENT TO AUTO-HIGHLIGHT SELECTED POINTS
// selectedPoints = userDataArray.slice();

// Set up the dashboard elements
plotsContainer = document.getElementById('plots-container');
Expand All @@ -980,9 +984,12 @@ <h2>Selected Data Points</h2>
document.getElementById('add-view-container').style.display = 'block';

// Update the table and highlight selected points
/*
UNCOMMENT TO AUTO-HIGHLIGHT SELECTED POINTS
updateTable();
highlightSelectedPoints();

*/

// Hide the loading modal and show a success notification
document.getElementById('loading-modal').style.display = 'none';
showNotification('User data loaded successfully.');
Expand Down
3 changes: 1 addition & 2 deletions scripts/snipe-explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1102,5 +1102,4 @@ function exportPlot(plotId) {
link.href = dataUrl;
link.click();
});
}

}

0 comments on commit d1291aa

Please sign in to comment.