Skip to content

fix(photo-annotator): colour picker updates non-text shapes' stroke#1523

Merged
steilerDev merged 1 commit into
betafrom
fix/color-picker-on-selected-shape
May 19, 2026
Merged

fix(photo-annotator): colour picker updates non-text shapes' stroke#1523
steilerDev merged 1 commit into
betafrom
fix/color-picker-on-selected-shape

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

The colour-picker handler only updated text and callout shapes (which use a color field). Every other shape type (rectangle, highlight, arrow, line, ellipse, freehand, measurement) stores the user-picked colour under stroke, so selecting one of those and picking a new colour silently did nothing.

Fix: write color for text/callout and stroke for everything else.

Test plan

  • All PhotoAnnotator unit tests pass
  • Typecheck green
  • Manual: select a rectangle / arrow / line / ellipse / freehand / measurement, pick a colour → stroke updates immediately

The colour picker only updated text and callout shapes (which use a
color field). Every other shape type stores the user-picked colour
under stroke, so selecting a rectangle/arrow/line/ellipse/freehand/
measurement and picking a new colour silently changed nothing.

The handler now writes either color or stroke based on shape.type.

Co-Authored-By: Claude frontend-developer (Haiku 4.5) <noreply@anthropic.com>
@steilerDev steilerDev merged commit e5fd08c into beta May 19, 2026
26 of 30 checks passed
@steilerDev steilerDev deleted the fix/color-picker-on-selected-shape branch May 19, 2026 17:01
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.6.0-beta.60 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant