CSV import action has no admin UI trigger (unreachable feature) #103

Closed
opened 2026-06-29 14:20:05 +00:00 by jmiller · 2 comments
Owner

Problem

ImportExportController::import() is fully implemented (validation, dedup by unique key, language handling) and COM_MOKOOG_TOOLBAR_IMPORT is defined, but the UI never exposes it: View/Tags/HtmlView::addToolbar() (src/View/Tags/HtmlView.php:81-88) adds no import button, and tmpl/tags/default.php has no file-upload form. The import code path is orphaned/dead from the UI.

(Export is reachable; only import is missing its trigger.)

Fix

  • Add an "Import" toolbar button + a modal/file-upload form (jform[csv_file]) posting to task=importexport.import.
  • Ensure the form carries the CSRF token (the controller already checks Session::checkToken()).

Related

  • Pairs with the missing single-tag edit UI (separate blocker) — both are orphaned admin entry points.
## Problem `ImportExportController::import()` is fully implemented (validation, dedup by unique key, language handling) and `COM_MOKOOG_TOOLBAR_IMPORT` is defined, but the UI never exposes it: `View/Tags/HtmlView::addToolbar()` (`src/View/Tags/HtmlView.php:81-88`) adds no import button, and `tmpl/tags/default.php` has no file-upload form. The import code path is orphaned/dead from the UI. (Export *is* reachable; only import is missing its trigger.) ## Fix - Add an "Import" toolbar button + a modal/file-upload form (`jform[csv_file]`) posting to `task=importexport.import`. - Ensure the form carries the CSRF token (the controller already checks `Session::checkToken()`). ## Related - Pairs with the missing single-tag edit UI (separate blocker) — both are orphaned admin entry points.
jmiller added the enhancement label 2026-06-29 14:20:05 +00:00
Author
Owner

Branch created: feature/103-csv-import-action-has-no-admin-ui-trigge

git fetch origin
git checkout feature/103-csv-import-action-has-no-admin-ui-trigge
Branch created: [`feature/103-csv-import-action-has-no-admin-ui-trigge`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteOpenGraph/src/branch/feature/103-csv-import-action-has-no-admin-ui-trigge) ```bash git fetch origin git checkout feature/103-csv-import-action-has-no-admin-ui-trigge ```
Author
Owner

Fixed in PR #111 (merged to dev). Added an Import toolbar button that toggles a multipart file-upload form (jform[csv_file]) posting to importexport.import with a CSRF token. Closing.

Fixed in PR #111 (merged to `dev`). Added an Import toolbar button that toggles a multipart file-upload form (`jform[csv_file]`) posting to `importexport.import` with a CSRF token. Closing.
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/MokoSuiteOpenGraph#103