Skip to content

fix(history): descriptive labels for history entries#64

Open
eugenioenko wants to merge 1 commit into
mainfrom
fix/history-labels
Open

fix(history): descriptive labels for history entries#64
eugenioenko wants to merge 1 commit into
mainfrom
fix/history-labels

Conversation

@eugenioenko
Copy link
Copy Markdown
Owner

Summary

  • History entries now show specific shape types: "Create Brush", "Create Rectangle", "Create Line", etc.
  • Update actions are inferred from changed fields: "Move Shape", "Rotate Shape", "Recolor Shape", "Resize Shape", "Stroke Shape", "Opacity Shape", "Radius Shape"
  • Batch commands show counts: "Remove 3 Shapes", "Create 2 Shapes"
  • Fixed cmd.data?.tcmd.data?.type to match the actual SerializedDoodle field name

Test plan

  • pnpm build passes
  • All 11 e2e tests pass
  • Visual: draw brush, rect, line → history shows "Create Brush", "Create Rectangle", "Create Line"
  • Visual: move a shape → history shows "Move Shape"

Fixes #53

🤖 Generated with Claude Code

History entries now display descriptive labels like "Create Rectangle",
"Move Shape", "Rotate Shape", "Recolor Shape" instead of generic
"Create shape" / "Update shape". Batch commands show count like
"Remove 3 Shapes".

Fixes #53

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

History entries show generic 'Create shape' instead of specific shape type

1 participant