- 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/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.
- 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