chore: Remove duplicate source/plugins/ and source/components/ directories #35

Open
opened 2026-06-29 14:07:06 +00:00 by jmiller · 1 comment
Owner

Problem

The repo has two parallel directory structures for the same code:

  1. source/packages/ — the canonical structure used by the build system (component + plugins here)
  2. source/plugins/system/mokosuitefield/ and source/plugins/webservices/mokosuitefield/ — duplicate plugin files
  3. source/components/com_mokosuitefield/ — duplicate component frontend files

The SQL install files differ between the two locations (different column names and types), creating confusion about which is authoritative. The source/packages/plg_system_mokosuitefield/sql/install.mysql.sql has more complete schema (JSON columns, condition_rating, photos_before/after, etc.) while source/plugins/.../install.sql has an older version.

Fix

  • Confirm source/packages/ is the canonical source for the build
  • Remove source/plugins/system/mokosuitefield/ (duplicate of source/packages/plg_system_mokosuitefield/)
  • Remove source/plugins/webservices/mokosuitefield/ (duplicate of source/packages/plg_webservices_mokosuitefield/)
  • Remove source/components/com_mokosuitefield/ (duplicate of source/packages/com_mokosuitefield/ — frontend views should live in the component package)
  • Verify build workflow references only source/packages/
## Problem The repo has two parallel directory structures for the same code: 1. `source/packages/` — the canonical structure used by the build system (component + plugins here) 2. `source/plugins/system/mokosuitefield/` and `source/plugins/webservices/mokosuitefield/` — duplicate plugin files 3. `source/components/com_mokosuitefield/` — duplicate component frontend files The SQL install files differ between the two locations (different column names and types), creating confusion about which is authoritative. The `source/packages/plg_system_mokosuitefield/sql/install.mysql.sql` has more complete schema (JSON columns, condition_rating, photos_before/after, etc.) while `source/plugins/.../install.sql` has an older version. ## Fix - [ ] Confirm `source/packages/` is the canonical source for the build - [ ] Remove `source/plugins/system/mokosuitefield/` (duplicate of `source/packages/plg_system_mokosuitefield/`) - [ ] Remove `source/plugins/webservices/mokosuitefield/` (duplicate of `source/packages/plg_webservices_mokosuitefield/`) - [ ] Remove `source/components/com_mokosuitefield/` (duplicate of `source/packages/com_mokosuitefield/` — frontend views should live in the component package) - [ ] Verify build workflow references only `source/packages/`
Author
Owner

Branch created: feature/35-chore-remove-duplicate-source-plugins-an

git fetch origin
git checkout feature/35-chore-remove-duplicate-source-plugins-an
Branch created: [`feature/35-chore-remove-duplicate-source-plugins-an`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteField/src/branch/feature/35-chore-remove-duplicate-source-plugins-an) ```bash git fetch origin git checkout feature/35-chore-remove-duplicate-source-plugins-an ```
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteField#35