File size: 2,163 Bytes
f390b04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84cd1aa
 
 
 
 
 
 
 
 
 
 
 
 
 
f390b04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Stored Records</title>
    <link rel="stylesheet" href="/static/styles.css" />
  </head>
  <body>
    <main class="container">
      <header class="header">
        <h1>Stored Records</h1>
        <p class="sub">
          Anonymized records produced by the pipeline. Original text is never
          stored, only its hash and the anonymized version.
        </p>
      </header>

      <section class="card">
        <div id="stats" class="stats"></div>
      </section>

      <section class="card">
        <div class="row">
          <button id="reloadBtn" class="btn" type="button">Reload</button>

          <div class="dropdown" id="exportDropdown">
            <button
              id="exportBtn"
              class="btn secondary"
              type="button"
              aria-haspopup="true"
              aria-expanded="false"
            >
              Export ▾
            </button>
            <div class="dropdownMenu" id="exportMenu" hidden role="menu"></div>
          </div>

          <span id="status" class="status" aria-live="polite"></span>
        </div>

        <div id="empty" class="sub" style="margin-top: 12px">
          No records yet. Analyze a message or ingest a file first.
        </div>

        <div id="tableWrapper" class="result" hidden>
          <table class="log-table">
            <thead>
              <tr>
                <th>Time (UTC)</th>
                <th>Anonymized text</th>
                <th>Topic</th>
                <th>Sentiment</th>
                <th>Entities</th>
                <th>Source</th>
              </tr>
            </thead>
            <tbody id="logBody"></tbody>
          </table>
        </div>

        <pre id="error" class="error" hidden></pre>
      </section>

      <footer class="footer">
        <a href="/">Back to main page</a>
        <span class="dot"></span>
        <a href="/docs">API documentation</a>
      </footer>
    </main>

    <script src="/static/records.js"></script>
  </body>
</html>