Skip to content

P3: Vue recurring edit scopes → update/deleteRepeatingTask (this|future|all) - #28

Merged
sandervonk merged 1 commit into
mainfrom
cursor/p3-repeating-edit-scope-81b2
Sep 3, 2026
Merged

P3: Vue recurring edit scopes → update/deleteRepeatingTask (this|future|all)#28
sandervonk merged 1 commit into
mainfrom
cursor/p3-repeating-edit-scope-81b2

Conversation

@sandervonk

@sandervonk sandervonk commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

Wires EditTask series scopes to the live mvtt-server callables (deployed 97ba53f): series instances always use updateRepeatingTask / deleteRepeatingTask, including scope: "this" (so date changes go through the callable). Non-repeating tasks keep the direct update_task / ArchiveTask route.

Scope mapping

UI label Callable scope Behavior
This one this Edit/archive one instance; may set date
This and future future Series from this date forward; server strips date
Whole series all Entire series; server strips date

Files

File Change
src/common/repeatingScope.ts Scope type + optimistic match helpers + singular toast copy
src/store/index.ts Widen scope to "this" | "future" | "all"; pass through; touch only matching instance for this
src/views/Portal/EditTask.vue Clear labels; always use repeating callables when repetition_group_id set; archive confirm for all three scopes
scripts/test-repeating-scope.mjs Unit tests for match / optimistic filter / toasts
package.json / .github/workflows/ci.yml test:repeating-scope in CI

Notes

  • Optimistic updates for this match by preferredRef / classId+taskId / task_date (not the whole series).
  • Toast prefers “Updated/Archived this task” when scope === "this" and count === 1.
  • CreateTask untouched (already uses createRepeatingTask).
  • Out of scope: server, nested delete, P4, Canvas.

Test plan

  • CI green (lint, existing tests, test:repeating-scope, build)
  • Local lint + unit tests + production build
  • Manual: series edit “This one” → callable scope: "this" (date change allowed)
  • Manual: “This and future” → future; “Whole series” → all
  • Manual: Archive each scope shows confirm + deleteRepeatingTask
Open in Web Open in Cursor 

Route series This one / This and future / Whole series through
updateRepeatingTask and deleteRepeatingTask (including scope this),
narrow optimistic local updates to the matched instance, and add
scope matching unit tests.

Co-authored-by: Sander Vonk <sandervonk@users.noreply.github.com>
@sandervonk
sandervonk marked this pull request as ready for review September 3, 2026 01:21
@sandervonk
sandervonk merged commit e5a19d6 into main Sep 3, 2026
1 check passed
@sandervonk
sandervonk deleted the cursor/p3-repeating-edit-scope-81b2 branch September 3, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants