Skip to content

Commit 0fbaaa7

Browse files
author
Soare Robert-Daniel
committed
dev: clean up
1 parent 45d2eb4 commit 0fbaaa7

7 files changed

Lines changed: 455 additions & 22 deletions

File tree

AGENTS.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ npm run dist
2222

2323
```bash
2424
# PHPUnit — requires Docker (wp-env)
25-
npm run test:unit:php:setup # Start WordPress Docker environment
25+
npm run env:setup # Start WordPress Docker environment
2626
bash ./bin/e2e-after-setup.sh # Prepare database/test data
2727
npm run test:unit:php # Run PHPUnit tests
2828

@@ -61,14 +61,14 @@ You can read more about it on `./ARCHITECTURE.md`, but here’s a high-level ove
6161

6262
### Core Classes
6363

64-
| Class | File | Role |
65-
|---|---|---|
66-
| `NM_PersonalizedProduct` | `classes/plugin.class.php` | Main plugin — registers all WooCommerce hooks, loads input types |
67-
| `NM_PersonalizedProduct_Admin` | `classes/admin.class.php` | Admin-only coordinator for menus, settings, attach flows, and admin AJAX |
68-
| `PPOM_Meta` | `classes/ppom.class.php` | Product-side field-group resolver that reads attached groups and loads settings/fields from the custom DB table |
69-
| `PPOM_Form` | `classes/form.class.php` | Frontend form rendering |
70-
| `PPOM_Fields_Meta` | `classes/fields.class.php` | Admin field-builder UI, modals, and builder asset loading |
71-
| `PPOM_Inputs` | `classes/input.class.php` | Input type manager |
64+
| Class | File | Role |
65+
| ------------------------------ | -------------------------- | --------------------------------------------------------------------------------------------------------------- |
66+
| `NM_PersonalizedProduct` | `classes/plugin.class.php` | Main plugin — registers all WooCommerce hooks, loads input types |
67+
| `NM_PersonalizedProduct_Admin` | `classes/admin.class.php` | Admin-only coordinator for menus, settings, attach flows, and admin AJAX |
68+
| `PPOM_Meta` | `classes/ppom.class.php` | Product-side field-group resolver that reads attached groups and loads settings/fields from the custom DB table |
69+
| `PPOM_Form` | `classes/form.class.php` | Frontend form rendering |
70+
| `PPOM_Fields_Meta` | `classes/fields.class.php` | Admin field-builder UI, modals, and builder asset loading |
71+
| `PPOM_Inputs` | `classes/input.class.php` | Input type manager |
7272

7373
### Input Type System
7474

@@ -77,6 +77,7 @@ Each input type has a class in `classes/inputs/` (e.g. `input.text.php`, `input.
7777
### Include Files (`inc/`)
7878

7979
Procedural utility code organized by concern:
80+
8081
- `functions.php` — general helpers
8182
- `hooks.php` — filter/action callbacks
8283
- `validation.php` — server-side field validation

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To set-up the environment you can follow the example from `test-php.yml` or the
8383
To run with Docker:
8484

8585
```bash
86-
npm run test:unit:php:setup # start the wordpress instance
86+
npm run env:setup # start the wordpress instance
8787
npm run test:unit:php # run the wp tests inside the tests-wordpress container
8888
```
8989

0 commit comments

Comments
 (0)