Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/added-inbox-record-dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Inbox: **● Record** in the Inbox header (and "● Record into Inbox" in Inception) records a meeting or note from the microphone straight into the Inbox. A consent notice is shown before every recording (recording laws vary; the recorder is responsible), a red ● Recording indicator stays on screen for the whole recording, the timer, level meter, Pause/Resume/Stop and the upload status ("All chunks saved" or "N waiting") are in the recorder panel, chunks are queued in IndexedDB until the hive stores them so a network drop or reload resumes the upload, and a Wake Lock plus a hidden-tab warning keep phones recording. Owner and read-write only; `inbox.recording.enabled` now defaults to true. See `src/docs/inbox-recording.md`.
2 changes: 1 addition & 1 deletion src/docs/inbox-recording.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ boot and every 10 minutes, and logs and audits every deletion
```yaml
inbox:
recording:
enabled: false # show ● Record (owner and read-write only)
enabled: true # show ● Record (owner and read-write only)
retention_days: 5 # raw audio is deleted this long after the recording ends
max_seconds: 10800 # 3 hours per recording (wall clock, pauses included)
max_bytes: 209715200 # 200 MiB per recording
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/config/inbox_recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
// DefaultInboxRecordingEnabled shows the ● Record control. Recording is
// still limited to owner and read-write sessions and needs the consent
// notice acknowledged before every recording.
DefaultInboxRecordingEnabled = false
DefaultInboxRecordingEnabled = true
// DefaultInboxRecordingRetentionDays is how long the raw audio is kept
// after a recording ends; the transcript and the Knowledge fact stay.
DefaultInboxRecordingRetentionDays = 5
Expand Down
301 changes: 301 additions & 0 deletions src/pkg/dashboard/inbox_recorder.test.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/pkg/dashboard/static-src/css/inbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@
.inbox-upload-bar { flex: 1 1 120px; max-width: 240px; }
.inbox-add-url { flex: 1 1 16rem; min-width: 0; }
.inbox-upload .kc-error { flex-basis: 100%; }
/* ● Record (inbox-recorder.js): panel, red indicator, level meters */
.inbox-rec-panel { margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--r); background: var(--surface); }
.inbox-rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.inbox-rec-dot { color: var(--red); }
.inbox-rec-dot.is-live { animation: inbox-rec-pulse 1.2s ease-in-out infinite; }
.inbox-rec-time { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.inbox-rec-meters { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); max-width: 420px; }
.inbox-rec-meter-row { display: grid; grid-template-columns: 7em 1fr; align-items: center; gap: var(--sp-2); }
.inbox-rec-meter { width: 100%; }
.inbox-rec-upload { margin-top: var(--sp-1); }
.inbox-rec-btn { color: var(--red); }
.inbox-rec-indicator { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 1000; display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--red); border-radius: var(--r-pill); background: var(--surface); color: var(--red); font-weight: 600; cursor: pointer; }
.inbox-rec-indicator[hidden] { display: none; }
.inbox-rec-notice { margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--r); background: var(--bg); }
.inbox-rec-ack { display: flex; align-items: flex-start; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--fs-sm); }
.inbox-rec-sources { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); }
@keyframes inbox-rec-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .inbox-rec-dot.is-live { animation: none; } }
@media (max-width: 720px) {
.inbox-settings-grid, .inbox-rule { grid-template-columns: 1fr; }
}
1 change: 1 addition & 0 deletions src/pkg/dashboard/static-src/html/inbox.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class="mt-6 mb-8" id="inbox-section" data-dashboard-section="inbox-section">
<h2 class="section-label section-header-toggle mb-4" data-action="toggleSection" data-arg0="inbox-section"><button type="button" class="dashboard-grip" data-dashboard-grip data-stop="1" aria-label="Move Inbox section" aria-pressed="false">⠿</button><span class="section-chevron">▼</span> 📥 Inbox</h2>
<div class="section-body">
<div id="inbox-rec-panel" class="inbox-rec-panel" role="region" aria-label="Recorder" hidden></div>
<div id="inbox-panel" class="inbox-panel"></div>
<div class="inbox-drop-overlay" aria-hidden="true"><span>Drop files to add them to the Inbox</span></div>
<div id="inbox-upload-status" class="inbox-sr-status" role="status" aria-live="polite"></div>
Expand Down
Loading
Loading