Skip to content

docs: frontend extraction refactor map + fix admin report delete - #1

Open
DariuszJustynski wants to merge 3 commits into
scoglio:masterfrom
DariuszJustynski:refactor/frontend-extraction
Open

DariuszJustynski wants to merge 3 commits into
scoglio:masterfrom
DariuszJustynski:refactor/frontend-extraction

Conversation

@DariuszJustynski

Copy link
Copy Markdown

Summary

  • Adds docs/refactor-map.md — a complete read-only migration analysis of the legacy CodeIgniter 2.x codebase as a guide for extracting the frontend into a modern stack.
  • Fixes a PHP fatal error in application/controllers/admin/report.php where array_walk() was called with no arguments, crashing every admin report deletion.

What's in the refactor map

The document (docs/refactor-map.md, 566 lines) covers:

  • File classification — every file labelled FRONTEND_ONLY, BACKEND_ONLY, MIXED, or LEGACY_CORE_DO_NOT_TOUCH
  • Route-to-view map — all ~50 URL patterns mapped to controller method and rendered view
  • Form-to-controller map — every form with method, action URL, and field list
  • Asset dependency map — which CSS/JS loads per page; the custom <!--_ERROR--> / <!--_REDIRECT--> AJAX protocol documented
  • Database schema summary — all 14 tables with purpose and relations
  • Migration risks — 4 high-priority blockers + 8 medium/low issues (Flash-based Uploadify, PHP 7 incompatible mysql_real_escape_string, Tank Auth view coupling, reCAPTCHA v1, etc.)

Bug fix

admin/controllers/report.php :: del() called array_walk() with no arguments. Fixed to cast each submitted report ID to int before passing to the model — minimal, safe change.

Test plan

  • Verify docs/refactor-map.md renders correctly on GitHub
  • Manually test admin report deletion to confirm the array_walk fix works (POST to /admin/report/del with an id[] array)

🤖 Generated with Claude Code

DariuszJustynski and others added 3 commits May 28, 2026 02:42
Adds docs/refactor-map.md — a full migration analysis of the legacy
CodeIgniter 2.x Upble codebase. Covers file classification (FRONTEND_ONLY /
BACKEND_ONLY / MIXED / LEGACY_CORE_DO_NOT_TOUCH), route-to-view map,
form-to-controller map, asset dependency map, DB schema summary, and
prioritised migration risks.

No code was modified — analysis only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The del() method called array_walk() with no arguments, causing a PHP
fatal error on every admin report deletion attempt. Fixed to cast each
submitted ID to int before passing the array to the model.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Converts all 32 PHP view files (public, auth, admin, email) into clean
HTML templates with {{placeholder}} syntax. Copies all static assets
(Blueprint CSS, jQuery, Colorbox, Uploadify, Bootstrap 2, CKEditor,
images). Adds docs/template-map.md mapping every template to its origin.

No files in application/, system/, index.php, or db.sql were modified.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant