Skip to content

Tasks: add a detail view (open a task to see full description, edit, link to logs) #422

Closed

Description

@thinkclay

The Tasks list page (Phase 3.2) only supports inline todo ↔ done toggling — there's no way to open a task and see its full description, punchlist context, or edit its fields. Add a detail screen reachable by tapping a task row that shows the full description, supports editing title/description/status, and lets a user link the task to a work log (the API already supports POST /:id/complete with an optional workLogId).

This closes a named Phase 3.3 gap in the dogfooding roadmap and is a prerequisite for trusting in-product Tasks enough to fully retire the markdown bug/idea trackers.

Activity

  1. thinkclay commented on Jul 30, 2026

    @thinkclay
    ContributorAuthor

    Closed by ac9ef9285.

    Most of this issue had already shipped in 2d05fa13b — the detail screen has edit-in-place for title/description/status/priority, punchlist context, and delete. The part that hadn't is the one the issue names specifically: linking a task to a work log. completed_at was shown as read-only metadata and there was no way to complete a task from the detail view at all, even though POST /:id/complete has accepted an optional workLogId the whole time.

    Added a Complete section, shown only while the task isn't done. It lists the user's ten most recent work logs as optional evidence — tap to select, tap again to clear. "Mark done" completes plainly; "Mark done & link log" posts the selected workLogId. Both the task and workLogs query keys are invalidated, since the linked log's task list changes too.

    Ten logs rather than a full picker: the question is "which log does this task belong to", and anything longer belongs on the log side.

    Verified end to end against the live local API, not just typechecked:

    create task            -> b0a9b6e3…
    complete + workLogId   -> status=done  completed_at=set  work_log_tasks row=present
    

    Test rows removed afterwards.

    One thing worth recording: four of my assumptions were wrong and the typechecker caught all four. The notable one — WorkLogsListResponse is { workLogs }, not { data }. The SDK isn't consistent across resources; notifications uses data. Assuming an envelope is precisely how #382's always-empty panel happened, and it only got caught here because nothing casts the types away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions