Skip to content

feat(lists): move Add Item button to toolbar beside Watchers#7

Merged
Adron merged 12 commits into
mainfrom
feature/resize-command-buttons
Jul 8, 2026
Merged

feat(lists): move Add Item button to toolbar beside Watchers#7
Adron merged 12 commits into
mainfrom
feature/resize-command-buttons

Conversation

@Adron

@Adron Adron commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Moves the "Add Item" button in ListDetailView from an inline list section at the bottom of the items list into the navigation toolbar, placed to the left of the existing Watchers button.

What's included

  • lists: removed the inline Section { Button { "Add Item" } } from the list body (commit a2a1a53)
  • lists: added a ToolbarItem(placement: .topBarTrailing) with a plus icon button that triggers showAddItem; disabled when schema.isEmpty matches prior behavior
  • lists: Watchers button remains at topBarTrailing and now sits to the right of the new Add Item button

Testing

  • Change is purely UI layout — no logic altered
  • Verified diff: button wiring (showAddItem, .disabled(schema.isEmpty), .accessibilityLabel) is identical to the removed section
  • Build and simulator run required to confirm toolbar ordering renders as expected

🤖 Generated with Claude Code

Adron and others added 12 commits July 6, 2026 16:07
CrossPostResult.platform and .success were non-optional, so a server
response missing the platform key caused a DecodingError that failed
the whole CreateMessageResponse decode — showing "Connection failed"
even though the post succeeded. Made both fields optional with safe
fallbacks. Also logs the real error in the generic catch block and
surfaces the server error string in the cross-post status toast.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove the inline "Add Item" section from the list body and promote it
to a toolbar button (plus icon) placed at topBarTrailing, left of the
existing Watchers button. Disabled state when schema is empty is
preserved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Adron Adron merged commit e5cc564 into main Jul 8, 2026
1 check passed
@Adron Adron deleted the feature/resize-command-buttons branch July 8, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant