feat: Admin dashboard with OG tag coverage metrics #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The admin side only has a tag list view. Add a dashboard view that shows OG tag coverage metrics across the site's content.
Requirements
Components
src/View/Dashboard/HtmlView.php— Dashboard viewsrc/Model/DashboardModel.php— Coverage query methodstmpl/dashboard/default.php— Dashboard templatesrc/Controller/DisplayController.php— Update default_view to dashboardArchitecture Notes
#__mokoog_tagsgrouped by content_type for coverage stats#__contentfor article coverageAcceptance Criteria
Branch created:
feature/94-feat-admin-dashboard-with-og-tag-coveragStatus: PARTIAL (audit of current
dev).What exists:
tmpl/tags/coverage.phpcomputes overall coverage %, articles-with-OG, and missing title/desc/image counts. But it'sincluded into the tags list (tmpl/tags/default.php:24) — it is not a dedicated view.Still missing vs. acceptance criteria:
DisplayController.php:24stilldefault_view = 'tags'; nosrc/View/Dashboard/,src/Model/DashboardModel.php, ortmpl/dashboard/content_typebreakdownCOUNT(*)queries run uncached on every tags-list load — should move to a model and/or cacheRecommend promoting coverage into a proper
dashboard(cpanel) view set as default.Implemented in PR #112 (merged to
dev). Added a dedicatedDashboardModel+View/Dashboard+tmpl/dashboard/default.phpset as the component's default view, with: SVG donut coverage gauge, field-gap badges, a coverage-by-content_type table, and a list of articles missing OG tags (linking to the article editor) plus a Batch Generate shortcut. The old inlinecoverage.phpinclude was removed from the tags list (it ran 6 uncached COUNT queries per load); that logic now lives in the model. All acceptance criteria met. Closing.