#267 · Download one owned Field Notes note as portable Markdown
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 #267 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
Field Notes has private notes, share tokens and maintainer-only content export scripts. Provide member self-service backup for one note they own, without turning it into a public link or bulk export.
Who might enjoy this
- Community interests: Privacy, Professional development, Full stack
- Skills: backend, frontend, qa
- Experience: intermediate; work style: automation.
- 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/utils/post-access.ts
- apps/fieldnotes/scripts/export-series-to-content.ts
- apps/fieldnotes/src/__tests__/post-access.test.ts
Deliverables
- An owner-only Markdown attachment download containing the current title/body, audience and stable post identifier.
- Safe filename, attachment/nosniff headers and explicit omission of share tokens, sessions, internal author identifiers and unrelated notes.
Dependencies and decisions
No prerequisite issue is required. Re-read current main and linked MRs before starting.
Acceptance criteria
- [ ] A router/local-D1 test downloads a private note for its owner and compares the Markdown body byte-for-byte.
- [ ] Anonymous, other-member and share-token-only callers cannot download the owned-note backup; a public view link does not imply export authority.
- [ ] Run Field Notes checks; verify a meaningful filename and UTF-8 content in a local browser.
- [ ] 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:
Use a synthetic private checklist and compare its editor text with a downloaded .md file, then confirm another fixture user is denied.
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 bulk personal-data archive, library upload, automatic Git commits, publishing or replacement of existing maintainer series export.
- 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-note-markdown-backup -->
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/utils/post-access.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/src/utils/post-access.ts)from issue -
[apps/fieldnotes/scripts/export-series-to-content.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/scripts/export-series-to-content.ts)from issue -
[apps/fieldnotes/src/__tests__/post-access.test.ts](https://git.juntogroups.org/irregulars/irregularchat-monorepo/-/blob/main/apps/fieldnotes/src/__tests__/post-access.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.