feat(sprint5): gantt/timeline view + recurring tasks#256
Merged
Conversation
S5-01 (AHE-3710): chose dhtmlx-gantt (GPL) as the Gantt foundation — ADR in docs/adr/gantt-library.md. Lazy-loaded so it never enters the main bundle.
S5-02 (AHE-3714): GanttView.vue — a first-class add/removable project view (keyName 'GanttView'). Bars from startDate/DueDate fed live from the Vuex projectData store; drag/resize -> new 'updateDates' task action (PATCH /api/v2/tasks, mirrors updatePoints); dependency arrows from task relations ('blocks' => finish-to-start) with draw/delete -> /api/v2/tasks/relations; day/week/month zoom; unscheduled tray; milestone diamonds from /api/v1/milestone/project/:pid; read-only when the user lacks task-edit permission. Uses the dhtmlx singleton (no destructor) so reopening the tab re-inits cleanly.
S5-03 (AHE-3715): recurring tasks. New RECURRING_TASKS collection wired through the mongo-core path (schemaType/collections/schema/createSchema/mongoQueries). Modules/RecurringTasks/ — CRUD + a node-schedule cron (every 15 min, prod-only) that instantiates real tasks via taskMongo.create across all companies, plus /run-now and /run-due endpoints so it is testable in dev. Frontend RecurringTasksManager.vue as an add/removable 'RecurringTasks' view.
Notes: the Gantt/RecurringTasks/Reports views are surfaced in the + View catalog via PROJECT_TAB_COMPONENTS DB records (added per-company), not controller injection. dhtmlx-gantt added to frontend deps. Additive only — 208 backend tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sprint 5 — Gantt I + Recurring tasks
Implements the Sprint 5 tasks (AHE-3710 / AHE-3714 / AHE-3715) on a single branch off staging.
S5-01 · Gantt library (AHE-3710)
Chose dhtmlx-gantt (GPL) — the only candidate covering all hard requirements out of the box; GPL is compatible with AlianHub's AGPL. ADR:
docs/adr/gantt-library.md. Lazy-loaded so it never enters the main bundle.S5-02 · Gantt / timeline view (AHE-3714)
GanttView.vue— a first-class add/removable project view (keyNameGanttView):startDate/DueDate, fed live from the VuexprojectDatastore.updateDatestask action (PATCH /api/v2/tasks, mirrorsupdatePoints).relations(blocks→ finish-to-start); draw/delete →/api/v2/tasks/relations./api/v1/milestone/project/:pid), live socket sync, read-only RBAC.destructor()) so reopening the tab re-inits cleanly;init()is guarded.S5-03 · Recurring tasks (AHE-3715)
RECURRING_TASKScollection wired through the mongo-core path (schemaType / collections / schema / createSchema / mongoQueries).Modules/RecurringTasks/— CRUD + a node-schedule cron (every 15 min, prod-only) that instantiates real tasks viataskMongo.createacross all companies, plus/run-now&/run-dueendpoints so it's testable in dev.RecurringTasksManager.vue— create / list / pause / resume / run-now / delete, mounted as an add/removableRecurringTasksview.Notes
PROJECT_TAB_COMPONENTSDB records (added per-company), not controller injection.dhtmlx-ganttadded to frontend deps (npm install).Manual / deferred
🤖 Generated with Claude Code