Fix: Add graceful handling for unconfigured state, fix 500 error on unconfigured plugin

This commit is contained in:
WLTBAgent
2026-02-16 16:15:49 +00:00
parent 30d14cdb7d
commit a8bf6bcb6c
5 changed files with 386 additions and 287 deletions

View File

@@ -122,7 +122,13 @@ style('display:none');
<h3><?php p($l->t('App Information')); ?></h3>
<p><strong><?php p($l->t('App Name')); ?>:</strong> <?php p($_['app_name']); ?></p>
<p><strong><?php p($l->t('Version')); ?>:</strong> <?php p($_['version']); ?></p>
<p><strong><?php p($l->t('Google Client ID')); ?>:</strong> <?php echo !empty($_['google_client_id']) ? '✅ Configured' : '❌ Not configured'; ?></p>
<p><strong><?php p($l->t('Anthropic API Key')); ?>:</strong> <?php echo !empty($this->config->getAppValue('OCA\AnalyticsHub', 'anthropic_api_key', '')) ? '✅ Configured' : '❌ Not configured'; ?></p>
<p><strong><?php p($l->t('Google Analytics')); ?>:</strong>
<?php echo $_['is_ga_configured'] ? '✅ Configured' : '❌ Not configured'; ?>
</p>
<p><strong><?php p($l->t('LLM Service')); ?>:</strong>
<?php echo $_['is_llm_configured'] ? '✅ Configured' : '❌ Not configured'; ?></p>
<p><strong><?php p($l->t('Overall Status')); ?>:</strong>
<?php echo $_['is_configured'] ? '✅ Ready' : '⚠️ Configuration Required'; ?>
</p>
</div>
</div>