super-productivity/packages/plugin-api/src
Johannes Millan 9176fa5238 feat(plugins): work-context header buttons, embed slot, and WORK_CONTEXT_CHANGE hook
Add the host-side plugin API for work-context-scoped UI:

- registerWorkContextHeaderButton — context-filtered (PROJECT/TAG/TODAY)
  header buttons, with toggled-state support on the active button
- a work-view embed slot so a plugin can replace the task list with its
  own UI for the active context (showInWorkContext / closeWorkContextView)
- the WORK_CONTEXT_CHANGE hook and getActiveWorkContext() pull API,
  sharing one toActiveWorkContext() projection helper as the single
  source of truth
- selectTask API plus the plugin-bridge / plugin-hooks wiring and specs

Squashed from the feat/doc-mode-v4 work. The full per-step history —
including the earlier in-tree (non-plugin) Angular document-mode feature
that was prototyped and then removed on the same branch — is preserved
in the archive/doc-mode-v4-full-history branch and the
doc-mode-v4-pre-squash tag.
2026-05-22 17:33:12 +02:00
..
index.ts feat(plugins): add plugin issue provider system with GitHub migration 2026-03-03 20:14:54 +01:00
issue-provider-types.ts feat(calendar): add CalDAV Calendar plugin with time-blocking support 2026-03-28 23:10:08 +01:00
types.ts feat(plugins): work-context header buttons, embed slot, and WORK_CONTEXT_CHANGE hook 2026-05-22 17:33:12 +02:00