You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add the shared composer to the task detail view (#1910)
* feat(web): add the shared composer to the task detail view
The detail view of a task in the Tasks tab shows the composer of
web/src/composer at its bottom. It uses the draft of the Lead chat, so
both composers show the same draft. The first change of the draft from
the view attaches the task once for each opening of the view, and it does
not close the phone Tasks sheet. A send queues the message in the outbox,
and the Lead chat sends it.
The lifted Subscriptions of the composer have their own keys, because
the Lead chat has the same Subscriptions in the same application.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(web): wait for the send request in the phone test of the task view
The test now waits for the request to /api/chat/messages before it ends, so the end of the test does not stop the request.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(web): let the send of the task view reach the server
The two send tests of the composer of the task view no longer fake the answer of the chat. They wait for the real request, and then read the stored message through GET /api/chat and check its Inbox item. The text of each test has a time stamp, so no other test reads it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(web): stop the composer of the Tasks tab while its field is not in the page
On a phone, the panel keeps its detail view when the Tasks sheet closes. The voice input of the view stayed registered without its field, so the text of a conversion went into no field. The composer Subscriptions of the Tasks tab now run only while the panel is in the page.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(web): cover a tab change during a conversion in the task view
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: mobius-toolkit[bot] <335179271+mobius-toolkit[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>