Repository navigation
todoist 0.1.0: a read-only drive app hosting the Todoist lens - #273
Merged
Merged
Conversation
Refs #99, #46. Give integrations/issue-tracker/todoist.ts a host: a drive app in integrations/issue-tracker/todoist-app/ (apps.mjs APP_FOLDERS maps the catalog id `todoist` there) that connects through store.proxy.connect, reads the active tasks and projects through the host's proxy client, and imports them into rows of the shared class issue-v1, adopting the class on first open like the GitHub issues app (renders, row-extras, classtype). Shared fields go through ontology-kit's resolver; the Todoist task id, presence, last-seen, priority, project and source are row extras. The pass runs #99's disappearance behaviour as todoist.ts defines it: a task missing from a complete read is looked up by id once and marked completed, deleted, unavailable or unconfirmed; only completed closes it, a partial read settles nothing, no row is removed, nothing is sent to Todoist. A refresh that finds nothing changed writes no row: last-seen is kept off active rows (the App records the read's time once). The mock-proxy fixture in fixtures/todoist/ now serves SYNTHETIC rows (synthetic.mjs, hand-written from Todoist's API v1 documentation, invented data) until #46 records api/, with drivers (completeTask, reopenTask, deleteTask, removeTask, failNext, snapshot); it is registered with the mock proxy. The issue-tracker lane gains e2e/todoist.spec.ts: catalog install, connect, five issue-v1 rows, a reload that leaves every row byte-for-byte, a task completed in Todoist that turns up done, one made unreachable that stays open as unavailable. Catalog: `devonian-todoist` becomes the app entry `todoist` (0.1.0, apps/todoist/0.1.0/ui.js, 25,926 bytes; enabled: false). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
# Conflicts: # integrations/READINESS.md # integrations/issue-tracker/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #99, #46.
Gives
integrations/issue-tracker/todoist.tsa host: the Todoist drive app inintegrations/issue-tracker/todoist-app/(catalog idtodoist, mapped inapps.mjsAPP_FOLDERS).issue-v1. It adopts that class on first open, like the GitHub issues app. Shared fields go throughontology-kit's resolver; the Todoist id, presence, last-seen, priority, project and source arerow-extras.todoist.tsdefines it:last-seenstays off active rows, and the App records the read's time once.fixtures/todoist/serves synthetic data (synthetic.mjs, hand-written from Todoist's API v1 docs, invented) until issue-tracker: record a todoist mock-proxy fixture #46 recordsapi/. It has drivers for completing, deleting and hiding tasks and for failing requests, and is registered with the mock proxy.e2e/todoist.spec.tsin the issue-tracker lane covers catalog install, connect, 5issue-v1rows, and a reload with byte-identical rows. A task completed in Todoist turns up done; one made unreachable stays open asunavailable.devonian-todoistbecomes the app entrytodoist(0.1.0,apps/todoist/0.1.0/ui.js, 25,926 bytes, limit 28,600), stillenabled: false. The LocalThought-flow fields are dropped, as moneybird 0.1.0: publish the drive app, install it from the catalog (#102) #242 did for Moneybird.Checks (local, pin
a12b74a): issue-tracker unit (248 passed, 4 skipped) and e2e (2 passed). Also: tooling tests 251/251, apps and ontology checks, certify, e2e tsc, oxlint (0 errors) and oxfmt.Not verified: anything against a live Todoist account (#46). In particular, the fixture assumes
GET /tasks/{id}returns a completed task withchecked: truerather than 404; the README says what happens otherwise.🤖 Generated with Claude Code