Skip to content

feat(client): annotate draft images before sending - #1

Draft
PriyanshuMallick wants to merge 5 commits into
image-annotations-basefrom
feat/image-annotations
Draft

PriyanshuMallick wants to merge 5 commits into
image-annotations-basefrom
feat/image-annotations

Conversation

@PriyanshuMallick

Copy link
Copy Markdown
Owner

Edit images already attached to a chat draft without exporting them to another app. Clicking a draft image opens tools for cropping, drawing, text, boxes, ellipses, erasing and mosaic. Saved edits return to the same attachment; reopening preserves the original and undo/redo history.

This is a draft in the personal fork, against image-annotations-base, which excludes the unrelated agent-panel commits underneath the prototype. It is not an upstream submission or a claim of maintainer approval.

Web and desktop share the web editor. Mobile uses separate live gesture previews, tracks the initiating finger, supports crop pinch and handle double-tap reset, and preserves tracked edits on native interruption. No new editor dependency is added.

Validation: 19 focused image-annotation tests pass, including extra-finger tracking, crop pinch limits/transitions, reset, reversible styling and overlapping-mark erasing. Web and mobile typechecks pass. The Android development APK was installed and Metro built its bundle successfully during setup; the latest pinch/double-tap interactions have not been verified on a device. Before/after images and a motion recording remain required before marking this draft ready.

Upstream already merged pingdotgg#44657 for web/desktop draw and erase. This older prototype must be adapted to the current upstream editor and file-backed mobile attachment APIs before any upstream follow-up. The current upstream contribution rules require a maintainer request for an unvouched contributor's feature PR.

Related: pingdotgg#19126

Add crop and shape handles, inline text, smooth strokes, and tooltips.
Keep the canvas stable and allow restyling selected marks with undo.
Preserve crop boundaries and saved image proportions.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 44f5e2a.

This comment will update automatically after the next completed run.

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

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant