Commit Graph

4 Commits

Author SHA1 Message Date
peptiderepo
29a334b1ed test: fix BoardDataProviderTest WP_Query/WP_Post stub incompatibility
Functions\when('WP_Query') cannot intercept 'new WP_Query()' class
instantiation — Brain\Monkey only patches global functions, not
constructor calls. The board data provider's instanceof WP_Post check
also filtered out all stdClass mocks.

Fix:
- Add WP_Query:: static FIFO to bootstrap so tests
  can inject WP_Post arrays per-test without Brain\Monkey.
- Add WP_Post stub class to bootstrap (safe: not a function, no
  Patchwork conflict).
- Update BoardDataProviderTest to use WP_Post instances + queue
  instead of Functions\when('WP_Query').

Agent-Session: phase2-admin-m1-engineer
2026-06-12 14:08:36 +07:00
peptiderepo
25e94ff58c fix: repair truncated BoardDataProviderTest.php
bash-mount truncation cut line 294 mid-assertion, producing a syntax
error on PHP parse. Replaced with complete 297-line canonical version
from Windows filesystem.

Agent-Session: phase2-admin-m1-engineer
2026-06-12 14:01:59 +07:00
peptiderepo
1de0210505 fix: restore truncated PHP class tails (M1 fixup)
Bash-mount read truncated several PHP files at the last few lines;
Adding the missing method/class closers and returning braces.

Agent-Session: phase2-admin-m1-engineer
2026-06-12 13:45:55 +07:00
peptiderepo
5997dae4eb feat: kanban board dashboard + SQL bug fix (v0.19.0)
- Add kanban board as primary admin landing screen (M1, Phase 2)
- Four columns: Generating / In Review / Published / Failed
- Live AJAX polling (prautoblogger_board_status), settings-backed interval + window
- Fix cost-reporter SQL inline-comment bug in get_daily_spend + get_spend_by_stage
- New settings: prautoblogger_board_poll_interval (default 5s), prautoblogger_board_published_window_days (default 7)
- PHPUnit: BoardDataProviderTest (8 tests) + CostReporterSqlBugFixTest (3 tests)
- Docs: ARCHITECTURE.md §22 + options table + file tree; CHANGELOG v0.19.0; app-map updated

Agent-Session: phase2-admin-m1-engineer
2026-06-12 13:41:35 +07:00