From 9cf4003c310aa96cb9fdaa61c4aeb41aa4d8e4fa Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 1 Sep 2026 13:48:07 -0500 Subject: [PATCH] checkpoint: document note preview fix --- CHECKPOINT-encryption.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/CHECKPOINT-encryption.md b/CHECKPOINT-encryption.md index e3045ce..bc2592b 100644 --- a/CHECKPOINT-encryption.md +++ b/CHECKPOINT-encryption.md @@ -2,7 +2,7 @@ ## Where things are - Project: `/home/avi/Projects/Keynctr` -- Git repo: `master` @ `cd5d2d7` ("Show published note content inline on Home screen"). +- Git repo: `master` @ `577e9f4` ("fix: return StoredPublishReport with content to frontend after publish"). - Working tree: clean except the usual untracked items (`.directory`, `.opencode/`, `.impeccable/`, `COSMIC_THEME.md`, `KeynectrAppIconPossibility02.jpeg`). @@ -98,8 +98,14 @@ `PublishReport`. Removed `onNavigate` prop from `ComposeScreen` and the "View in Feed" button from both screens. Added `.publish-preview` CSS for the content display. +19. **Fix: note preview now appears after publishing (this session).** The + "Most recent publication" card was not showing the note content preview + because the IPC handler returned the bare `PublishReport` (no `content` + field) instead of the `StoredPublishReport` that includes it. Changed + `src/ipc.rs` to return `stored` instead of `report`. ## Commits added in this session (newest first) +- `577e9f4` fix: return StoredPublishReport with content to frontend after publish - `cd5d2d7` Show published note content inline on Home screen - `bab82f5` Persist last publish report across restarts - `b0d9143` Add 'View in Feed' button after publishing a note @@ -125,8 +131,9 @@ All green in this session, run after the changes: - Rust: `cargo fmt --check` clean; `cargo test` — 116 passed; `cargo clippy --all-targets` — clean, zero warnings; `cargo build --release` — success. - Frontend: `npm test` — 15 files / 99 passed; `npm run typecheck` clean; `npm run lint` - clean (only the harmless ES-module reparsing warning); `npm run build` — success - (Vite bundle built). + clean (only the harmless ES-module reparsing warning); `npm run format:check` has + pre-existing prettier warnings in `HomeScreen.tsx` and `AppProvider.tsx` (not from this + session); `npm run build` — success (Vite bundle built). - Packaging (previous session, still valid artifacts): `npx electron-builder --linux AppImage deb` produced `frontend/release/Keynctr-0.1.0.AppImage` and