tftsr-devops_investigation/tests/unit
Shaun Arman 1b36ebfb3d
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 1m35s
Test / frontend-tests (pull_request) Successful in 1m41s
Test / frontend-typecheck (pull_request) Successful in 1m43s
Test / rust-clippy (pull_request) Successful in 3m10s
Test / rust-tests (pull_request) Successful in 4m39s
PR Review Automation / review (pull_request) Successful in 4m58s
feat: attachment DB storage and cross-incident recall
Store compressed log content and raw image bytes in SQLite so attachments
are self-contained regardless of source file availability on disk.

DB (migrations 020-022):
- log_files.content_compressed BLOB — gzip-compressed extracted text
- image_attachments.image_data BLOB — raw image bytes
- Views v_log_files_with_issue and v_image_attachments_with_issue for
  cross-incident queries with joined issue title

Rust backend:
- compress_text / decompress_text helpers (flate2 rust_backend / miniz_oxide)
  with 100 MB decompression-bomb guard
- upload_log_file*, upload_log_file_by_content store content_compressed
- upload_image_attachment*, upload_paste_image store image_data
- New commands: get_log_file_content, list_all_log_files (analysis.rs)
- New commands: get_image_attachment_data, list_all_image_attachments (image.rs)
- All commands fall back to file_path for pre-migration records

Frontend:
- LogFileSummary, ImageAttachmentSummary types in tauriCommands.ts
- attachmentStore (Zustand) — loadAttachments, searchAttachments
- History page: Issues tab (existing) + Attachments tab (new)
  with log/image tables, search bar, View modals, lazy thumbnails

Tests: 227 Rust (+16 new), 103 frontend (+9 new), tsc clean, clippy clean

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-31 17:55:47 -05:00
..
aiProvidersCustomRest.test.ts chore: remove all proprietary vendor references for public release 2026-04-07 09:46:25 -05:00
attachmentStore.test.ts feat: attachment DB storage and cross-incident recall 2026-05-31 17:55:47 -05:00
auditLog.test.tsx fix(test): await async data in auditLog test to prevent race condition 2026-04-19 20:21:37 -05:00
autoTagWorkflowTrigger.test.ts fix(ci): unblock release jobs and namespace linux artifacts by arch 2026-04-04 23:17:12 -05:00
ciDockerBuilders.test.ts fix(ci): resolve test.yml failures — Cargo.lock, updated test assertions 2026-04-12 20:16:32 -05:00
dashboard.test.tsx chore: Add GitHub Actions workflows 2026-04-08 21:53:44 -05:00
docEditor.test.tsx fix: UI contrast issues and ARM64 build failure 2026-04-03 08:05:58 -05:00
domainPrompts.test.ts feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00
exportDocument.test.ts fix: UI contrast issues and ARM64 build failure 2026-04-03 08:05:58 -05:00
history.test.tsx fix: lint fixes and formatting cleanup 2026-04-09 20:42:40 -05:00
historyStore.test.ts fix: dashboard shows — while loading, exposes errors, adds refresh button 2026-03-31 08:55:05 -05:00
issueActions.test.ts feat: close issues, restore history, auto-save resolution steps 2026-03-31 12:50:39 -05:00
pii.test.ts feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
releaseWorkflowCrossPlatformArtifacts.test.ts fix(ci): resolve test.yml failures — Cargo.lock, updated test assertions 2026-04-12 20:16:32 -05:00
releaseWorkflowMacBundle.test.ts refactor(ci): remove standalone release workflow 2026-04-04 21:34:15 -05:00
resolution.test.tsx feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00
sessionStore.test.ts feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
settingsStore.test.ts test(store): add PII pattern persistence tests for settingsStore 2026-04-05 19:33:23 -05:00
setup.ts fix: lint fixes and formatting cleanup 2026-04-09 20:42:40 -05:00
timelineEvents.test.ts feat: wire incident response methodology into AI and record triage events 2026-04-19 18:13:47 -05:00