Skip to content

feat(connectors): Readwise, Todoist and RSS keep tags as Marfa tags, with thumbnails and picture kinds - #488

Merged
aicayzer merged 5 commits into
mainfrom
connectors/kit-tags-and-pictures
Dec 4, 2026
Merged

aicayzer merged 5 commits into
mainfrom
connectors/kit-tags-and-pictures

Conversation

@aicayzer

@aicayzer aicayzer commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Brings Readwise, Todoist and RSS onto the connector kit's new support. Readwise's tags and favorite highlights and Todoist's labels become Marfa tags and the favorite tag, kept in step tag by tag, so they appear in Marfa's tag filters and Favorites. Readwise sources and RSS entries carry a small thumbnail. Saved pictures become a kind of their own that ships turned off, replacing each connector's picture setting.

Closes #482, closes #483, closes #484, closes #485, closes #418.

Changes

  • Readwise: sources and highlights declare tags, highlights favorite; tags and is_favorite are retired and cleared in the same write that lands them as Marfa tags. A tag added in Marfa reaches Reader one tag at a time; Readwise cannot set a favorite, so a favorite changed in Marfa stays there with a condition. Saved pictures are readwise.picture, shipped off; readwise_reader_pictures is removed. Pictures already saved as readwise.file rows stay and count as kept.
  • Todoist: tasks declare tags; labels is retired; labels go both ways.
  • RSS: rss.picture ships off; rss_pictures is removed; entries carry a thumbnail.
  • Kit: a kind can ship turned off (enabled: false, generated into default_mapping); a per-entry thumbnail helper (rowThumbnail, thumbnailTurns and friends) with capped, remembered refusals; a row policy can read the entry.
  • READMEs for the three connectors.

Testing

  • Build, typecheck, lint, format, connectors:check: pass.
  • Unit tests (kit, Readwise, Todoist, RSS): 2,693 of 2,693.
  • Proof against marfa-server 0.0.123: rss 18, readwise 11, readwise-with-reader 14, todoist 36 statements, including tags round-tripping, an upgraded row keeping its tags, a Marfa tag reaching Reader, and a labelled Todoist task restored with its labels.

Notes for reviewers

Checklist

  • The title is a scoped Conventional Commit.
  • Tests cover the change.
  • Docs in this repository are updated.
  • No secrets or personal details.

@aicayzer
aicayzer changed the base branch from kit/connector-kit to main December 3, 2026 21:33
@aicayzer
aicayzer force-pushed the connectors/kit-tags-and-pictures branch from 850b85a to 0c3b328 Compare December 3, 2026 22:08

@aicayzer aicayzer left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: ready to merge

Summary. Readwise, Todoist and RSS keep the person's own tags and favorites as Marfa tags, carry thumbnails, and ship saved pictures as a kind that is off; safe to merge after two review rounds fixed every blocking finding.

First draft: 3/5. The first round found five blocking problems, all fixed; the second found one more, fixed.

Checked.

  • Keep what people made: the retired tags, is_favorite and labels land as Marfa tags in the same write that clears them; a Todoist task remade after a restore keeps its labels.
  • Real conditions: thumbnail refusals capped and rotated so a refused picture never starves the rest; failures that may pass wait 30 minutes; each type read once for the thumbnail pass.
  • Every path: the Readwise picture repair writes under the row's own type; Reader's change answer keeps a thumbnail only while its picture address is the same.
  • True: READMEs say the retired fields are cleared whatever the mapping choice.
  • Done: proof rss, readwise, readwise-with-reader, todoist against marfa 0.0.123.

Found.

  • A Todoist task remade after a restore lost its labels. Fixed in 62bed98 and 26002e5, with the kit hand-off in #486's remake fix. Keep what people made
  • Thumbnail refusals grew without bound. Fixed in c4fc457. Real conditions
  • Failing pictures starved the rest, including past the refusal cap. Fixed in c4fc457 and f628525. Real conditions
  • READMEs said nothing is lost under a none mapping. Fixed in a35cc19. True
  • No Readwise proof of an upgraded row or of a Marfa tag reaching Reader. Fixed in aa11734. Done
  • The Readwise picture repair wrote under the wrong type. Fixed in 66cfc18. Every path

Quick fixes. 2 applied by reviewers.


Reviewed by withmarfa-reviewer on claude-sonnet-5-5. This review may contain mistakes.

@aicayzer
aicayzer marked this pull request as ready for review December 3, 2026 23:03
@aicayzer
aicayzer enabled auto-merge (squash) December 3, 2026 23:04
@aicayzer
aicayzer merged commit 1bd6594 into main Dec 4, 2026
19 checks passed
@aicayzer
aicayzer deleted the connectors/kit-tags-and-pictures branch December 4, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant