Skip to content

feat(tiptap): extend SuggestionReviewPopover to non-rich-text fields (text, textarea, select, etc.) #253

Description

@suleimansh

Context

`SuggestionReviewPopover` (#249) currently lives inside `TiptapEditor` only. When an AI suggestion targets a plain TextField, TextareaField, SelectField, or similar non-rich-text field, there is no equivalent step-through popover.

Goal

One popover for all fields. When a pending suggestion arrives for any field type, the popover should appear anchored to that field's DOM element and walk the user through Accept / Reject.

Acceptance criteria

  • A shared `SuggestionReviewPopover` is mounted at the page/panel level (not inside each field)
  • It subscribes to the global `PendingSuggestionsContext` queue
  • For RichText fields: existing inline-diff region stepping (current behaviour)
  • For plain fields (text, textarea, select, etc.): shows current value (red/struck) vs. suggested value (green)
  • Accepting applies the value to the field (via the suggestion bridge)
  • Popover anchors to the field root DOM element
  • Skip (dismiss without deciding) is supported; Back navigates to a previous suggestion

Notes

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions