Fix: Add graceful handling for unconfigured state, fix 500 error on unconfigured plugin
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user