tasks: when task-create lands in the webapp, emit ["event-type", "task"] on kind 31922 #56
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The webapp tasks module today is read-only — it subscribes to kind 31922 calendar events and kind 31925 RSVPs, publishes its own 31925 completions and kind 5 deletions, but has no publishing path for kind 31922 itself. Tasks shown in the UI come from external publishers (in our setup, the LNbits
tasksextension atgit.atitlan.io/aiolabs/tasks).When the webapp grows a "Create Task" flow (i.e. publishes its own 31922), it MUST emit
["event-type", "task"]in the tag list. The lnbits tasks extension already requires this tag on every inbound 31922 to disambiguate tasks from activities on shared relays — without it, lnbits silently drops the event from its local cache (a webapp-authored task would appear in webapp-land but not federate back to the lnbits-extension-backed view).What needs to happen
When
webappintroduces 31922 publishing for tasks (likely insrc/modules/tasks/services/TaskService.tsor a newCreateTaskDialog):["event-type", "task"]to the tag list, alongsided,title,start, etc.["event-type", "activity"]so the convention is two-sided rather than tasks-only — otherwise the activities filter atActivitiesNostrService.ts:141-143(which stripsevent-type: task) remains the only enforcement and we drift back into the #25 problem.Why now
Filing this as a heads-up rather than a bug because:
Lnbits ext side reference
["event-type", "task"].Related