- Changed AdminController to use simple echo/exit instead of TemplateResponse
- Eliminates TemplateResponse complexity
- Direct HTML output for debugging
- Simplified routes.php to single admin route
- Removed test route (no longer needed)
- Simple GET only route
- Simplified Application.php
- Removed resource loading
- Minimal bootstrap
If this shows 'Controller is working' page, routing is confirmed working.
If it still redirects to dashboard, it's a Nextcloud routing issue.
This is a minimal test version to confirm routing works before building full UI.
- Removed settings/navigation from appinfo/info.xml
- These sections can cause routing conflicts
- App now relies purely on routes.php
- Simplified Application.php
- Removed manual service/controller registration
- Let Nextcloud DI framework handle it automatically
- Fixed admin template to use Nextcloud standards
- Removed non-standard style() call
- Added proper l10n support with p($l->t(...))
- Clean template structure
- Created css/admin.css
- Nextcloud-compatible styling
- Matches design language
- Created js/admin.js
- Handles Save Configuration button
- Handles Test Connection button
- Uses OC, OC.Notification APIs
This should fix admin page not appearing issue.
Users can access via: Settings → Administration → Additional Settings
- Created appinfo/Application.php (Nextcloud app bootstrap)
- Extends OCP\AppFramework\App
- Registers proper app ID: analyticshub
- Loads CSS and JS files
- Removed obsolete lib/App.php file
- Updated all AppInfo::APP_NAME references to Application::APP_NAME
- AdminController, ApiV1Controller
- GoogleAnalyticsService, LLMService
- Fixed dependency injection in AdminController
- Injected IConfig service properly
- Added missing use statements
This is the core fix for the app not appearing in Nextcloud.
Nextcloud requires appinfo/Application.php to initialize the app.