Save tiles to the database to make empty tile load faster

This commit is contained in:
Eli Ribble 2026-03-11 17:01:47 +00:00
parent a1e6f930cb
commit 3ccc05d4c5
No known key found for this signature in database
10 changed files with 559 additions and 98 deletions

View file

@ -205,8 +205,8 @@
try {
const payload = {
taskId: this.selectedTask.id,
action: action, // 'reviewed' or 'discarded'
task_id: this.selectedTask.id,
status: action, // 'reviewed' or 'discarded'
updates: {},
};
@ -219,7 +219,7 @@
});
}
const response = await fetch("/api/review-task", {
const response = await fetch(`/api/review/`, {
method: "POST",
headers: {
"Content-Type": "application/json",
@ -559,7 +559,7 @@
:disabled="!selectedTask || submitting"
>
<span x-show="!submitting">
<i class="bi bi-check-circle"></i> Mark Reviewed
<i class="bi bi-check-circle"></i> Complete Review
</span>
<span x-show="submitting">
<span class="spinner-border spinner-border-sm" role="status"></span>