Commit c0ac273
feat(kanban): move Kanban board into Free core + remove dead Vue (#627)
* feat(kanban): move Kanban board from Pro into Free core
Kanban is now a built-in Free feature (no module gating). Data is unchanged
— boards stay as pm_boards rows (type "kanboard"), task↔column mapping stays
in pm_boardables, automation/header in pm_meta — so existing boards keep
working with no migration.
Backend (src/Kanban, routes/kanban.php):
- Kanboard controller/models/transformer/permission ported from the Pro
module, namespaced WeDevs\PM\Kanban; routes auto-load on pm/v2.
- Boot class wires the task lifecycle hooks (after_create_task, etc.).
- Added the missing Access_Project permission to the filter route.
Frontend:
- Kanban board components + slice moved in; proApi → Free useApi; window.PM
bridge calls (TaskDetailSheet, useProjectAssignees, openTaskSheet,
resetProjectState) replaced with direct imports.
- Static route + store slice + sidebar nav (no more Pro placeholder/preview).
Refs weDevsOfficial/pm-pro#357
* fix(kanban): int task-status comparison, i18n domain, dead-query typo
- before_change_task_status compared int status (0/1) to 'incomplete'/
'complete' strings — on PHP 8 that's always false, so the list-view→column
status automation never ran. Compare to Task::INCOMPLETE / Task::COMPLETE.
- Use the 'wedevs-project-manager' text domain (was 'pm' / 'pm-pro').
- get_tasks(): fix duplicated where('board_type','task') → 'boardable_type'.
Refs weDevsOfficial/pm-pro#357
* chore(cleanup): remove dead legacy Vue app
The app is fully React (entry views/assets/src/index.jsx → pm.js); the old
Vue 2 app was dead — never built (webpack builds only index.jsx) and never
enqueued (PHP loads only pm-config + pm-scripts).
- Delete all .vue files and Vue JS (Vuex stores, vue-router, mixins,
directives, helpers, the main.js/start.js entry, store/store.js).
- Delete the compiled Vue bundles (views/main.js, vendor/vue/) and the
vue-multiselect css.
- Drop the dead Vue script/style registrations from config/scripts.php and
config/style.php and re-point the dangling vendor dependencies.
No runtime change — none of this was loaded by the React build.
* fix(kanban): enlarge tiny card assignee avatars (sm 7px → md)
Card initials rendered at size=sm (h-5, text-[7px]) — unreadable. Bump card
avatars to md (h-7, text-[11px]) and the add-task assignee preview xs → sm.
Refs weDevsOfficial/pm-pro#356
* fix(kanban): patch SQLi + cross-project IDOR + input hardening
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(kanban): remove dead unreachable after_new_comment body
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3f4449e commit c0ac273
360 files changed
Lines changed: 4184 additions & 164597 deletions
File tree
- bootstrap
- config
- routes
- src/Kanban
- Controllers
- Models
- Permissions
- Transformers
- views
- assets
- css/vue-multiselect
- src
- components
- KanbanBoard
- parts
- add-ons
- calendar
- categories
- common
- importtools
- kanban
- layout
- my-tasks
- privacy
- progress
- project-activities
- project-discussions
- project-files
- project-lists
- project-milestones
- project-modules
- project-overview
- project-settings
- project-task-lists
- pusher
- reports
- root
- settings
- tasks-report
- upgrade
- welcome
- woo-project
- directives
- helpers
- Elegant-Loading-Indicator
- i18n
- jquery-ui-timepicker
- less
- common
- components
- fonts
- images
- project
- abstracts
- base
- components
- mixin
- pm-upload
- tiptip
- hooks
- router
- store
- vendor/vue
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 48 | | |
73 | 49 | | |
74 | 50 | | |
75 | 51 | | |
76 | | - | |
| 52 | + | |
77 | 53 | | |
78 | 54 | | |
79 | 55 | | |
| |||
154 | 130 | | |
155 | 131 | | |
156 | 132 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 133 | | |
166 | 134 | | |
167 | 135 | | |
168 | 136 | | |
169 | | - | |
| 137 | + | |
170 | 138 | | |
171 | 139 | | |
172 | 140 | | |
| |||
280 | 248 | | |
281 | 249 | | |
282 | 250 | | |
283 | | - | |
284 | | - | |
285 | 251 | | |
286 | 252 | | |
287 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 6 | | |
13 | 7 | | |
14 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments