Skip to content

Add label editing to the edit element screen#50

Merged
dfalling merged 1 commit into
mainfrom
edit-labels
Jun 12, 2026
Merged

Add label editing to the edit element screen#50
dfalling merged 1 commit into
mainfrom
edit-labels

Conversation

@dfalling

Copy link
Copy Markdown
Owner

Summary

  • Add a Labels field to ElementEditScreen so labels can be added and removed, not just preserved on save.
  • Existing labels render as removable chips (matching the detail screen's chip styling); a free-form text input with an Add button (and keyboard submit) appends new ones.
  • Exact duplicates are skipped, since labels are matched exactly when filtering the map.
  • The edited labels array now flows into the UpdateElement mutation in place of the previous round-tripped element.labels.

No GraphQL changes — labels was already on ElementInput, so no codegen needed.

@dfalling dfalling enabled auto-merge (squash) June 10, 2026 22:45
Labels were round-tripped through the update mutation untouched, so users
had no way to change an element's labels after creation. Add a Labels field
with removable chips and a free-form add input, matching the chip styling
from the detail screen.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dfalling dfalling merged commit 9dc3f9e into main Jun 12, 2026
2 checks passed
@dfalling dfalling deleted the edit-labels branch June 12, 2026 18:49
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