Today tab: client name input not cleared after adding property #44

Closed
opened 2026-05-29 12:21:12 +00:00 by ldraney · 0 comments
Owner

Type

Bug

Lineage

Standalone — discovered during session.

Repo

ldraney/landscaping-assistant

What Broke

On the Today tab, after typing a client name in the quick-add form and clicking "Add", the new property is created and appended to the queue via Turbo Stream, but the text input retains the previous value. User must manually clear the field before adding the next property.

Root cause: form_with submits via Turbo Stream. The response (create.turbo_stream.erb) appends items to the queue list but never resets the form. Unlike a full page reload, Turbo Stream responses leave form fields intact.

Repro Steps

  1. Go to Today tab (root route /)
  2. Type a name in "Add new property..." input
  3. Click Add
  4. Observe: input still contains the name you just typed

Expected Behavior

After a successful add, the client name input should be cleared and ready for the next entry.

Environment

  • Cluster/namespace: dev (docker-compose, port 7143)
  • Service version/commit: dc1ffca

Acceptance Criteria

  • Client name input clears after successful property add
  • No regression in Turbo Stream queue append behavior
  • Works on subsequent adds without page reload
  • landscaping-assistant — project this affects
### Type Bug ### Lineage Standalone — discovered during session. ### Repo `ldraney/landscaping-assistant` ### What Broke On the Today tab, after typing a client name in the quick-add form and clicking "Add", the new property is created and appended to the queue via Turbo Stream, but the text input retains the previous value. User must manually clear the field before adding the next property. Root cause: `form_with` submits via Turbo Stream. The response (`create.turbo_stream.erb`) appends items to the queue list but never resets the form. Unlike a full page reload, Turbo Stream responses leave form fields intact. ### Repro Steps 1. Go to Today tab (root route `/`) 2. Type a name in "Add new property..." input 3. Click Add 4. Observe: input still contains the name you just typed ### Expected Behavior After a successful add, the client name input should be cleared and ready for the next entry. ### Environment - Cluster/namespace: dev (docker-compose, port 7143) - Service version/commit: `dc1ffca` ### Acceptance Criteria - [ ] Client name input clears after successful property add - [ ] No regression in Turbo Stream queue append behavior - [ ] Works on subsequent adds without page reload ### Related - `landscaping-assistant` — project this affects
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/landscaping-assistant#44
No description provided.