mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-20 18:08:55 +00:00
* Implement task parsing with sub-tasks Added a new function to parse tasks with sub-tasks from a text input, improving task management capabilities. Updated the task addition logic to utilize this new parsing method. Should solve #7183 * Enhance task parsing and user information Key Changes Summary: ✅ Critical Fix #1 - 4-space indentation: Detects minimum indent and normalizes relative to it ✅ Critical Fix #2 - Mixed input: Plain-text lines no longer silently dropped; warning shown ✅ Critical Fix #3 - Deeply-nested items: Now flattened to sub-task level with user notification ✅ Minor - Sub-task dueDay: Documented that it inherits from parent (not passed independently) ✅ Suggestion - UI/UX: Updated placeholder text to show expected format with examples * fix indentation calculation and missing isBullet: true * fix(brain-dump-plugin): keep sub-tasks when plain-text lines interrupt Previously, a plain-text line between a bullet and its indented sub-task caused the sub-task to be silently dropped: the outer loop advanced past the plain-text entry but the inner look-ahead had already exited at indent 0, so the following indented bullet was never attached to the parent and was rejected by the outer loop's else branch. The sub-task scan now skips over plain-text lines while still breaking at the next top-level bullet, so indented bullets attach to the previous parent regardless of interleaved plain text. The plain-text line itself is still emitted as its own top-level task by the outer loop. Also drops dead code: - findMinimumIndent() was declared but never called. - dueDay on sub-task payload was forwarded but silently discarded by the plugin bridge (sub-tasks inherit the parent's date). And de-duplicates the "Note: ... Note: ..." prefix in the deeply-nested warning snack. --------- Co-authored-by: Adnoh <git@rotzefull.de> Co-authored-by: Johannes Millan <johannes.millan@gmail.com> |
||
|---|---|---|
| .. | ||
| plugin-api | ||
| plugin-dev | ||
| shared-schema | ||
| super-sync-server | ||
| vite-plugin | ||
| build-packages.js | ||
| README.md | ||
Super Productivity Packages
This directory contains plugin packages and the plugin API for Super Productivity.
Structure
plugin-api/- TypeScript definitions for the plugin APIplugin-dev/- Plugin development examples and toolsapi-test-plugin/- Basic API test pluginprocrastination-buster/- Example SolidJS-based pluginyesterday-tasks-plugin/- Simple plugin showing yesterday's tasksboilerplate-solid-js/- Template for creating new SolidJS plugins (not built)sync-md/- Markdown sync plugin (not built)
Building Packages
All packages are built automatically when running the main build process:
npm run build:packages
This command:
- Builds the plugin-api TypeScript definitions
- Builds plugins that require compilation (e.g., procrastination-buster)
- Copies plugin files to
src/assets/for inclusion in the app
Development
To work on a specific plugin:
cd plugin-dev/[plugin-name]
npm install
npm run dev
Adding a New Plugin
- Create a new directory in
plugin-dev/ - Add the plugin configuration to
/packages/build-packages.js - Run
npm run build:packagesto test the build
Notes
- The
boilerplate-solid-jsandsync-mdplugins are development templates and are not included in production builds - Plugin files are automatically copied to
src/assets/during the build process - The build script handles dependency installation automatically