Backup #1983

ID1983
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/chunks/show.php
Version1
Typ modified
Größe2.7 KB
Hashfc79e37fa856df6ff0428e973cf7ada538c4c0d37a41225f15bf72441b8ec2ea
Datum2025-12-28 02:54:33
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Edit-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/">Home</a> &raquo;
    <a href="/explorer">Explorer</a> &raquo;
    <a href="/semantic-explorer">Semantic Explorer</a> &raquo;
    <a href="/semantic-explorer/chunks">Chunks</a> &raquo;
    #<?= $chunk['id'] ?>
</nav>

<h1>Chunk #<?= $chunk['id'] ?></h1>
<p>
    Aus: <a href="/semantic-explorer/dokumente/<?= $chunk['document_id'] ?>"><?= htmlspecialchars($chunk['filename']) ?></a>
    (Index: <?= $chunk['chunk_index'] ?>)
</p>

<div class="stats-grid">
    <div class="stat-card">
        <span class="stat-card__value"><?= $chunk['token_count'] ?></span>
        <span class="stat-card__label">Tokens</span>
    </div>
    <div class="stat-card stat-card--<?= $chunk['qdrant_id'] ? 'success' : 'warning' ?>">
        <span class="stat-card__value"><?= $chunk['qdrant_id'] ? 'Synced' : 'Pending' ?></span>
        <span class="stat-card__label">Status</span>
    </div>
</div>

<div class="chunk-navigation">
    <?php if ($prevChunk): ?>
    <a href="/semantic-explorer/chunks/<?= $prevChunk['id'] ?>" class="btn btn--small">&laquo; Vorheriger (#<?= $prevChunk['chunk_index'] ?>)</a>
    <?php endif; ?>
    <?php if ($nextChunk): ?>
    <a href="/semantic-explorer/chunks/<?= $nextChunk['id'] ?>" class="btn btn--small">Naechster (#<?= $nextChunk['chunk_index'] ?>) &raquo;</a>
    <?php endif; ?>
</div>

<?php if (!empty($chunk['heading_path_decoded'])): ?>
<h2>Heading-Pfad</h2>
<table>
    <tr>
        <th>Pfad</th>
        <td><?= htmlspecialchars(implode(' > ', $chunk['heading_path_decoded'])) ?></td>
    </tr>
</table>
<?php endif; ?>

<h2>Inhalt</h2>
<div class="chunk-content">
    <?= $chunk['content'] ?>
</div>

<h2>Metadaten</h2>
<table>
    <tr><th>Dokument</th><td><a href="/semantic-explorer/dokumente/<?= $chunk['document_id'] ?>"><?= htmlspecialchars($chunk['filename']) ?></a></td></tr>
    <tr><th>Pfad</th><td><code><?= htmlspecialchars($chunk['source_path']) ?></code></td></tr>
    <tr><th>Chunk-Index</th><td><?= $chunk['chunk_index'] ?></td></tr>
    <tr><th>Qdrant-ID</th><td><code><?= htmlspecialchars($chunk['qdrant_id'] ?? '-') ?></code></td></tr>
    <tr><th>Erstellt</th><td><?= date('d.m.Y H:i:s', strtotime($chunk['created_at'])) ?></td></tr>
</table>

<?php if (!empty($chunk['metadata_decoded'])): ?>
<h2>Zusatz-Metadaten</h2>
<pre class="code-block"><?= htmlspecialchars(json_encode($chunk['metadata_decoded'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)) ?></pre>
<?php endif; ?>

<p class="links-bar">
    <a href="/semantic-explorer/chunks">Alle Chunks</a> |
    <a href="/semantic-explorer/dokumente/<?= $chunk['document_id'] ?>">Zum Dokument</a>
</p>

<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>

Vollständig herunterladen

Aktionen

Herunterladen

← Zurück zur Übersicht