3 Commits

Author SHA1 Message Date
WLTBAgent
4b684d101a Fix: Change route from /admin to / to avoid Nextcloud conflicts
- Changed route URL from /admin to / (root path)
  - /admin was conflicting with Nextcloud built-in admin routes
  - Now uses apps/analyticshub/ instead
- Changed route name from admin#index to page#index
  - Follows Nextcloud naming conventions
- Updated info.xml navigation
  - Points to analyticshub.page.index
  - Removed <settings> section (can cause conflicts)
- Updated AdminController
  - Added request path to diagnostic output
  - Better styling for simple HTML page

The route was conflicting with Nextcloud's admin system.
New URL: https://teamworkapps.com/index.php/apps/analyticshub/
2026-02-13 20:21:40 +00:00
WLTBAgent
64bc88d6de Fix: Add routes and admin navigation
- Created appinfo/routes.php to register all routes
  - Admin routes: index, save, load, getStatus
  - API v1 routes: reports, getReport, generate, getStatus
  - Report routes: index, generate
- Added index() method to AdminController
  - Renders admin template via TemplateResponse
- Updated info.xml and appinfo/info.xml
  - Fixed navigation entry to point to route: analyticshub.admin.index
  - Added settings and navigation sections
- App now appears in Settings → Administration after enable/disable

Fixes issue where app didn't show up in Nextcloud toolbar after being enabled.
2026-02-13 18:28:34 +00:00
WLTBAgent
8a445c4d46 Fix: Rename app folder to match app ID
- Renamed analytics-hub/ → analyticshub/
- App ID in info.xml is 'analyticshub' (no hyphen)
- Nextcloud requires folder name to match app ID exactly
- Fixes 'Could not download app analyticshub' error during installation

Installation:
- Upload analyticshub/ folder to /var/www/nextcloud/apps/
- Folder name must match app ID in info.xml
2026-02-13 18:21:39 +00:00