super-productivity/docs/plans
Johannes Millan e3ce1fcdd9 feat(plugins): work-context buttons, embed slot, and WORK_CONTEXT_CHANGE hook
Add the API surface needed for plugins that want to attach UI to a specific
work context (project or TODAY tag) and embed their iframe inside the
work-view body in place of the task list.

- New PluginAPI methods: getActiveWorkContext, registerWorkContextHeaderButton
  (with showFor filter), showInWorkContext, closeWorkContextView.
- New WORK_CONTEXT_CHANGE hook, fired once per navigation off
  activeWorkContext$ with a full {id, type, title, taskIds} snapshot.
- Iframe Hooks enum now exposes ANY_TASK_UPDATE, PROJECT_LIST_UPDATE,
  TASK_CREATED, WORK_CONTEXT_CHANGE.
- Iframe message handler verifies event.source so embedded iframes
  don't cross-talk with the side-panel iframe.
- PluginIndexComponent gets a skipCleanupOnDestroy input so context
  switches don't tear down a plugin's hook/button registrations.
- Callback proxy for registerWorkContextHeaderButton mirrors the
  existing registerHook IFRAME_HANDLER pattern.
- New plugin-work-context-header-btns component rendered in main-header
  next to plugin-header-btns; filtered by current ctx + showFor.
- Work-view branches on pluginBridge.workContextEmbedPluginId(): when set
  AND ctx is project or TODAY tag, render <plugin-index> in place of the
  task list, suppress the work-view header (mirroring the in-tree
  document-mode flow).

Includes the multi-review design plan as docs/plans/2026-05-21-...md.
2026-05-21 17:21:27 +02:00
..
2026-03-22-advanced-onboarding-design.md feat(onboarding): add lightweight onboarding hints 2026-03-22 19:50:24 +01:00
2026-04-21-schedule-week-range-header.md feat(schedule): add week number and date range to nav header 2026-04-21 21:50:52 +02:00
2026-04-29-focus-mode-time-tracking-sync.md New focus mode rework (#7411) 2026-05-06 21:11:02 +02:00
2026-05-12-pr5-dropbox-slice.md refactor(sync-providers): move provider error classes 2026-05-12 20:32:08 +02:00
2026-05-12-pr5-webdav-slice.md docs(sync-core-plan): fold Gemini review dissent into consensus 2026-05-12 22:22:41 +02:00
2026-05-12-pr7-super-sync-slice.md refactor(sync-providers): move SuperSync provider into package 2026-05-13 00:30:19 +02:00
2026-05-13-extract-encryption-to-sync-core.md refactor(sync): remove encryption test mocks 2026-05-13 17:26:55 +02:00
2026-05-21-document-mode-tiptap-plugin.md feat(plugins): work-context buttons, embed slot, and WORK_CONTEXT_CHANGE hook 2026-05-21 17:21:27 +02:00