Android: assign a task to someone #152

Merged
CrowderSoup merged 1 commit from crowdersoup/android-assignee into main 2026-12-03 04:42:50 +00:00 AGit
Owner

The Android app showed who a task was assigned to but had no way to change it. The server already supported assigning tasks, so this PR only changes the app.

What changes

  • Editor: a new Assignee row. It offers Unassigned plus everyone who can change tasks in that workspace and their agents, which is the server's /api/v1/assignees/ list. Agents are labelled "(agent)".
  • Task page: shows who the task is assigned to.
  • Sync: each sync fetches every workspace's assignees into a new assignees table, and tasks keep their assignee id. This adds a Room migration from version 8 to 9.
  • Saving: an edit sends assignee only when it changed, so an assignment made on the website in the meantime isn't overwritten. A new task sends it only when set. If the project picker moved a new task to another workspace, it drops an assignee who can't be assigned there.

Tests

  • New TaskPayloadTest cases cover the assignee in payloads.
  • CI run 208 passed: unit tests, the debug build, and the release lint and build.
  • Not yet tested on a phone.
  • It merges cleanly with #151 (reminders).
The Android app showed who a task was assigned to but had no way to change it. The server already supported assigning tasks, so this PR only changes the app. **What changes** - **Editor:** a new **Assignee** row. It offers Unassigned plus everyone who can change tasks in that workspace and their agents, which is the server's `/api/v1/assignees/` list. Agents are labelled "(agent)". - **Task page:** shows who the task is assigned to. - **Sync:** each sync fetches every workspace's assignees into a new `assignees` table, and tasks keep their `assignee` id. This adds a Room migration from version 8 to 9. - **Saving:** an edit sends `assignee` only when it changed, so an assignment made on the website in the meantime isn't overwritten. A new task sends it only when set. If the project picker moved a new task to another workspace, it drops an assignee who can't be assigned there. **Tests** - New `TaskPayloadTest` cases cover the assignee in payloads. - CI run 208 passed: unit tests, the debug build, and the release lint and build. - Not yet tested on a phone. - It merges cleanly with #151 (reminders).
Android: assign a task to someone
All checks were successful
android / apk (push) Successful in 9m20s
38db12f466
The editor gets an Assignee picker (Unassigned, or anyone who can change the
workspace's tasks, and their agents), and the task page shows who has it.
The phone syncs each workspace's /api/v1/assignees/ and the task's assignee
id (Room 8 -> 9). Edits send assignee only when it changed; a new task sends
it only when set, and drops it if the project picker moved the task to a
workspace where that person can't be assigned.
Sign in to join this conversation.
No description provided.