nextcloud / nextcloud/text

Visually indicate AI generated inserted text

Open
#8,783 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.
As a possible follow-up to https://github.com/nextcloud/text/issues/8782, when we directly insert AI-generated content, it’s important to make this visible.

We can do this via infobox-like containers, or also nicer.

Describe the solution you'd like
iA Writer has a very nice way of showing AI generated text inline, sort of like a collaborator color highlighting. Scroll a bit down on https://ia.net/writer – could be interesting to explore

https://github.com/user-attachments/assets/f9e0d5df-8578-4876-8b3f-fc10c830d6ce

We can use the same color fade we use for Assistant text:
Image

Describe alternatives you've considered
Simple infoboxes we already support. We could introduce a new Assistant-styled infobox that you can’t manually use? (Or you could, to highlight content you pasted from external AI tools?)

Quick mockup (of course the left border should have the proper gradient):
Image

Additional context
They have a blog post about this with more design thoughts on it: https://ia.net/topics/ia-writer-7
It’s from 2023 so a bit dated, and they initially dimmed the text you paste from AI tools.

One relevant info from the post is that they published a Markdown spec for it: https://github.com/iainc/Markdown-Annotations

As discussed in Office/Productivity planning.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named. Start by reviewing the existing Assistant text styling and supported infoboxes, then compare the iA Writer examples and Markdown Annotations reference; done means agreeing on and implementing a clear visual treatment for directly inserted AI-generated text.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown
Domain
design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.