a4106ee20d
Update all user-facing text to focus on Astroglobe as a semantic search service for Nextcloud users: - info.xml: New description focusing on finding content by meaning - Settings sections: Renamed from "MCP Server" to "Astroglobe" - Personal settings: Reframed as content indexing controls - Admin settings: Reframed as semantic search administration - OAuth flow: Explains semantic search benefits to users Key messaging changes: - "MCP Server" → "Astroglobe" - "Grant Background Access" → "Enable Semantic Search" - "Vector Sync" → "Content Indexing" - Focus on user benefits: natural language search, finding by meaning 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1017 B
PHP
53 lines
1017 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Astroglobe\Settings;
|
|
|
|
use OCP\IL10N;
|
|
use OCP\IURLGenerator;
|
|
use OCP\Settings\IIconSection;
|
|
|
|
/**
|
|
* Admin settings section for Astroglobe.
|
|
*
|
|
* Creates a dedicated section in admin settings for semantic search administration.
|
|
*/
|
|
class AdminSection implements IIconSection {
|
|
private $l;
|
|
private $urlGenerator;
|
|
|
|
public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
|
|
$this->l = $l;
|
|
$this->urlGenerator = $urlGenerator;
|
|
}
|
|
|
|
/**
|
|
* @return string The section ID
|
|
*/
|
|
public function getID(): string {
|
|
return 'astroglobe';
|
|
}
|
|
|
|
/**
|
|
* @return string The translated section name
|
|
*/
|
|
public function getName(): string {
|
|
return $this->l->t('Astroglobe');
|
|
}
|
|
|
|
/**
|
|
* @return int Priority (lower = higher up in list)
|
|
*/
|
|
public function getPriority(): int {
|
|
return 80;
|
|
}
|
|
|
|
/**
|
|
* @return string Section icon (SVG or image URL)
|
|
*/
|
|
public function getIcon(): string {
|
|
return $this->urlGenerator->imagePath('astroglobe', 'app.svg');
|
|
}
|
|
}
|