Handle deleted SP project with active binding + lastSyncedAt timestamp per binding #16

Closed
opened 2026-06-10 18:26:40 +02:00 by fpindado · 1 comment
Owner

Two related improvements to the binding lifecycle:

1. Deleted project with active binding
When a Super Productivity project that has an active binding is deleted, the plugin should:

  • Detect the orphaned binding
  • Notify the user via `PluginAPI.showSnack`
  • Automatically remove the binding from the configuration

2. `lastSyncedAt` timestamp per binding

  • Store the timestamp of the last successful sync per binding in `persistDataSynced` under `_syncStats`
  • Display it as relative time (e.g. "3 minutes ago") in the configuration panel next to each binding
  • Can also be used to detect bindings that have not synced for an unexpectedly long time
Two related improvements to the binding lifecycle: **1. Deleted project with active binding** When a Super Productivity project that has an active binding is deleted, the plugin should: - Detect the orphaned binding - Notify the user via \`PluginAPI.showSnack\` - Automatically remove the binding from the configuration **2. \`lastSyncedAt\` timestamp per binding** - Store the timestamp of the last successful sync per binding in \`persistDataSynced\` under \`_syncStats\` - Display it as relative time (e.g. \"3 minutes ago\") in the configuration panel next to each binding - Can also be used to detect bindings that have not synced for an unexpectedly long time
Author
Owner

Solved in v0.2.0

Solved in v0.2.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fpindado/sync-md-multi#16
No description provided.