Commit Graph

3 Commits

Author SHA1 Message Date
WLTBAgent
d4f96cc28b Fix: Use simple HTML output to test routing
- 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.
2026-02-13 20:13:46 +00:00
WLTBAgent
730e576ead Fix: Simplify integration and fix admin template
- 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
2026-02-13 19:06:07 +00:00
WLTBAgent
13c313352c Fix: Add proper Application.php and fix DI
- 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.
2026-02-13 18:38:35 +00:00