Skip to content

feat(specs): add image annotation notes field and media-image-annotations spec#457

Merged
blackpc merged 3 commits intomainfrom
feat/media-image-annotations
Mar 23, 2026
Merged

feat(specs): add image annotation notes field and media-image-annotations spec#457
blackpc merged 3 commits intomainfrom
feat/media-image-annotations

Conversation

@blackpc
Copy link
Contributor

@blackpc blackpc commented Mar 23, 2026

Summary

  • Adds optional notes field to Attachment JSON schema, enabling users to attach text annotations to images
  • Scaffolds spec 074-media-image-annotations defining the feature lifecycle for image annotation notes
  • Notes field propagates to agent prompts and is saved in specs as specified in the feature requirements

Context

Feature #74 — users can add a textbox note to image previews in the media modal. Notes are attached to the image attachment object and flow through to agent prompts and spec storage.

Test plan

  • Verify Attachment.yaml schema includes notes as an optional string field
  • Verify spec directory specs/074-media-image-annotations/ is correctly scaffolded
  • Confirm build and typecheck pass with no errors

🤖 Generated with Claude Code

blackpc and others added 2 commits March 23, 2026 13:25
- add optional notes field to Attachment TypeSpec model and regenerate
- add notes textarea in image preview dialog (AttachmentChip) so users
  can write notes directly in the modal when clicking on an image
- notes shown read-only when onNotesChange is not provided
- wire notes through DrawerActionBar and FeatureCreateDrawer attachment
  state so changes are tracked per-attachment
- include image notes in composeUserInput as [Note: ...] suffix after
  each @/path reference, propagating into spec.yaml userQuery and all
  agent prompts
- for rejection flow, append image notes to feedback text so the agent
  receives them via the rejection feedback channel
- update AttachmentChip stories with ImageFileWithNotes example
- add tests for composeUserInput notes behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ions spec

- add optional notes field to Attachment json-schema for user annotations
- scaffold spec 074 for media image annotations feature
@github-actions
Copy link

Dev Release Published

Artifact Version Install
npm 1.142.1-pr457.57a5cf0 npm install -g @shepai/cli@1.142.1-pr457.57a5cf0

Published from commit 780b8df | View CI

Add amber sticky-note badge overlay on image thumbnails when notes exist,
with a styled tooltip showing note content on hover. Improves the note
preview UX from raw [Note: ...] text to a polished visual indicator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

Dev Release Published

Artifact Version Install
npm 1.147.0-pr457.5f389df npm install -g @shepai/cli@1.147.0-pr457.5f389df

Published from commit 79eadb7 | View CI

@blackpc blackpc merged commit 0efd17c into main Mar 23, 2026
18 checks passed
@blackpc blackpc deleted the feat/media-image-annotations branch March 23, 2026 17:27
blackpc pushed a commit that referenced this pull request Mar 23, 2026
# [1.148.0](v1.147.0...v1.148.0) (2026-03-23)

### Features

* **specs:** add image annotation notes field and media-image-annotations spec ([#457](#457)) ([0efd17c](0efd17c)), closes [#74](#74)
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