#265 · Preview a Field Notes version diff before restoring content
Last checked with GitLab: . Status comes from GitLab using a 2-minute cache. Merge events clear affected cached statuses. An already-open page does not update itself. Refresh page.
An MR completes this bounty when it is merged into main with Closes #265 and GitLab closes the issue. A mention or an updated timestamp is not completion. Awarded points appear in Activity.
cp .dev.vars.example .dev.vars && pnpm dev, after rebasing on main) and fully test your change before opening the MR.
Description
Version history currently lists versions and immediately offers loading one into the editor after confirmation. Add a read-only comparison against the current draft so authors can inspect changes first.
Who might enjoy this
- Community interests: Full stack, Tech, Research
- Skills: frontend, backend, qa
- Experience: intermediate; work style: visual.
- Readiness: ready; bounty size: M (existing points tier; standard merge award stacks separately).
Current behavior and starting points
Source-reviewed against main cf05b29c6256dba70d0ebc09b22cc9867cdb786a on2026-10-18. Check current main and related issues/MRs before implementing so existing work is reused.
Relevant Files
- apps/fieldnotes/src/index.ts
- apps/fieldnotes/src/types.ts
- apps/fieldnotes/src/__tests__/post-routes.test.ts
Deliverables
- An accessible added/removed text comparison between one selected saved version and the current editor contents.
- Loading a version stays an explicit separate action; failed version retrieval preserves the current draft.
Dependencies and decisions
No prerequisite issue is required. Re-read current main and linked MRs before starting.
Acceptance criteria
- [ ] Through the existing version routes and local D1, compare a two-version synthetic post and verify exact added/removed lines.
- [ ] Owner/admin access remains enforced and another member cannot fetch or compare private post versions.
- [ ] Execute emitted comparison scripts; compare-failure and cancel controls must leave editor content unchanged; run Field Notes existing checks.
- [ ] Record named baseline failures and the exact commands used. A behavior fix includes a real route/database/protocol check observed failing before the change. Knowledge work includes source traceability and reproducible reviewer evidence.
- [ ] Run the affected app's existing checks. Explain any baseline failures rather than reporting a matching failure count as proof.
Try it locally
Start from the existing source files above. The following is the target demo your contribution should enable; a newly proposed script or fixture is part of the deliverable:
Create a synthetic two-paragraph draft, change one sentence and inspect the proposed diff before choosing Restore.
Use public or synthetic examples. Starter work should run without production access; explicitly name any software/device prerequisite before claiming it is ready.
Out of scope
- No new version persistence, rewrite of the version API, multi-user collaborative editing or #209 review-progress dashboard.
- Unrelated refactors, new services/providers, bulk dependency changes, production access changes, unrequested notifications, and copying private member material. Keep credentials and unresolved security findings outside the issue and repository.
For a coding agent and reviewer
Read AGENTS.md, applicable .cursor/rules/, app instructions and docs/contributing/agentic-bounty-review.md. Reuse the existing shared helpers, identity/access paths and app styling. Implement one bounded story and provide evidence the accepting app maintainer can reproduce. State updated / pre-release verified / released / live verified accurately.
A parent index carries no duplicate award for these child deliverables. Open one scoped MR using this issue's actual number after the closing keyword. Link your GitLab identity on Scoreboard; the existing merge webhook handles eligible points.
Catalog index: #258.
<!-- community-interest-bounty:2026-10-18:fieldnotes-version-compare -->
Relevant files
-
[apps/fieldnotes/src/index.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/src/index.ts)from issue -
[apps/fieldnotes/src/types.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/src/types.ts)from issue -
[apps/fieldnotes/src/__tests__/post-routes.test.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/src/__tests__/post-routes.test.ts)from issue
Hints
No hints yet.
Activity
No points have been awarded for this bounty yet.
Comments
Sign in to join the discussion.
No comments yet. Be the first to weigh in.