Skip to content

docs(chatbot): add component pages#244

Draft
danielleroux wants to merge 14 commits into
developmentfrom
docs/ai-components
Draft

docs(chatbot): add component pages#244
danielleroux wants to merge 14 commits into
developmentfrom
docs/ai-components

Conversation

@danielleroux

@danielleroux danielleroux commented May 28, 2026

Copy link
Copy Markdown
Collaborator

💡 What is the current behavior?

Jira: IX-4307 and IX-4410

🆕 What is the new behavior?

Implementation is here: siemens/ix#2569

👨‍💻 Help & support

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces documentation and sidebar configuration for new AI chatbot components, including an overview, chat input, user message, and AI message. The reviewer provided feedback on several markdown files to align the component descriptions with the repository style guide, specifically recommending the use of plural component names, active voice, and referring to 'users' instead of 'the user'. All review comments are valid and should be addressed.

Comment thread docs/components/chat-input/guide.md Outdated
Comment thread docs/components/chat-input/index.mdx Outdated
Comment thread docs/components/user-message/guide.md Outdated
Comment thread docs/components/user-message/index.mdx Outdated
Comment thread docs/components/ai-message/guide.md Outdated
Comment thread docs/components/ai-message/index.mdx Outdated
@danielleroux danielleroux marked this pull request as draft May 28, 2026 06:31
danielleroux and others added 4 commits May 28, 2026 10:42
Expand the chat-input documentation with a full usage guide (anatomy, options, behavior/overflow, states, dos & don'ts, and related links). Also add three Figma illustration PNGs to static/figma to support the new documentation.
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for industrial-experience ready!

Name Link
🔨 Latest commit b4175bf
🔍 Latest deploy log https://app.netlify.com/projects/industrial-experience/deploys/6a3e3e1c91cd2f0008128564
😎 Deploy Preview https://deploy-preview-244--industrial-experience.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8803e801-4e88-4989-9d0e-72b5c8b69c8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/ai-components

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

* new guide for ai message
* new guide for chat
* new guide for user message
* renamed folder and chat (removed AI)
@kathrinschalber kathrinschalber requested a review from flxlst09 June 22, 2026 12:30

@flxlst09 flxlst09 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like it, very concise!

  • Chat attachment still open
  • Entries in component overview missing
  • How to link to Conversational guidelines (UX Writing)
  • How to mention that a SDL AI Figma file exists for Siemens users

And some smaller stuff :)

Comment thread docs/components/chat/guide.md
Comment thread docs/components/chat/guide.md
Comment thread docs/components/user-message/index.mdx Outdated
Comment thread docs/components/ai-message/guide.md Outdated
Comment thread docs/components/ai-message/guide.md Outdated
Comment thread docs/components/chat-input/guide.md Outdated
Comment thread docs/components/chat-input/guide.md
Comment thread docs/components/chat-attachment/guide.md Outdated
Comment thread sidebars.ts Outdated
Comment thread sidebars.ts
Add a new Chat attachment usage guide (anatomy, options, behavior, states, dos/don’ts) and include a related Figma image. Refine copy across chat-related docs: AI message, Chat input, and User message (clarify wording and responsiveness). Update sidebars labels for chat and chat-attachment, and update/add several Figma static images.
removed the deeplink to the icon until we know how to do them
@kathrinschalber kathrinschalber requested a review from flxlst09 June 24, 2026 12:02

@flxlst09 flxlst09 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the md, preview deployment did not work. Only smaller stuff, good to go once addressed

Comment thread docs/components/chat-attachment/guide.md
Comment thread docs/components/chat-attachment/guide.md Outdated
Comment thread docs/components/chat-attachment/guide.md
@kathrinschalber kathrinschalber requested a review from flxlst09 June 26, 2026 08:54
@kathrinschalber kathrinschalber marked this pull request as ready for review June 26, 2026 09:07
@kathrinschalber kathrinschalber requested a review from tokyojen June 26, 2026 09:07
@kathrinschalber kathrinschalber marked this pull request as draft June 26, 2026 13:23

@tokyojen tokyojen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added quite a lot of comments to try to make sure it matches with Sidhu and our content. Might need to check a few things together.


# AI message - Usage

AI messages display a single assistant response inside a conversational thread. We recommend using them for answers users need to read, review and act on.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AI messages display a single assistant response inside a conversational thread. We recommend using them for answers users need to read, review and act on.
AI messages display individual responses from the AI (agent, bot, Copilot, etc.) inside a conversational thread once the prompt input field has been completed and sent by the user.

Question: is the component for the prompt input field the same as the message component?


## Options

- **Content:** Keep the response easy to scan. We usually structure longer answers with a short lead sentence followed by lists, short paragraphs or other lightweight content blocks.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is recommended but we have no control over the format of the response. Instead here you should say what the font type and font size is. And the font color as we can control this. If we have this info and if suitable here. If you want to give recommendations about AI behavior feedback you can refer to: https://ix.siemens.io/docs/guidelines/conversational-design/designing-conversations/overview

## Options

- **Content:** Keep the response easy to scan. We usually structure longer answers with a short lead sentence followed by lists, short paragraphs or other lightweight content blocks.
- **Actions:** Add only message-level actions that users expect after reading, e.g. copy, rate response quality or regenerate. We recommend using subtle tertiary [icon buttons](../icon-button) so actions stay available without competing with the answer.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Is regenerate usually within this component?

Please refer to the AI terminology Figma file for wording with action icons: https://www.figma.com/design/lqjt9c5IzzwQ4eJ4nqG7Kv/AI-Terminology?node-id=1-9&t=d5UkOPKJfj9qDmYM-1 ONLY INTERNAL


- **Content:** Keep the response easy to scan. We usually structure longer answers with a short lead sentence followed by lists, short paragraphs or other lightweight content blocks.
- **Actions:** Add only message-level actions that users expect after reading, e.g. copy, rate response quality or regenerate. We recommend using subtle tertiary [icon buttons](../icon-button) so actions stay available without competing with the answer.
- **Sources:** If the response is grounded in files, web results or internal data, expose that provenance close to the message content, e.g. with [chips](../chip). Only show sources when they are real and inspectable.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two kinds of resources - inline and also under the message box. Do we want to talk about both? I think both use chips. Need to check.

Also note "Only show sources when they are real and inspectable." - this must be removed as it is not possible to control.

Suggested change
- **Sources:** If the response is grounded in files, web results or internal data, expose that provenance close to the message content, e.g. with [chips](../chip). Only show sources when they are real and inspectable.
- **Sources:** Display all sources after the AI message response within the message box with [chips](../chip).


## Behavior in context

- **Responsiveness:** AI messages use from 45 to 80 % of the chat's container width, depending on the viewport width.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **Responsiveness:** AI messages use from 45 to 80 % of the chat's container width, depending on the viewport width.
- **Responsiveness:** AI messages use from 45 to 80% of the chat's container width, depending on the viewport width.

## Behavior in context

- **Interaction:** User messages keep the submitted prompt visible as the main record of what users asked.
- **Actions:** Message actions are only shown when users hover over the message with a mouse, tap the message on touch devices or reach the message with the `Tab` key.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- **Interaction:** User messages keep the submitted prompt visible as the main record of what users asked.
- **Actions:** Message actions are only shown when users hover over the message with a mouse, tap the message on touch devices or reach the message with the `Tab` key.
- **Placement:** User messages are always placed on the right side of the [chat](../chat/) to visually distinguish them from [AI messages](../ai-message) on the left side.
- **Responsiveness:** User messages take from 45 to 80 % of the chat's container width, depending on the viewport width.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **Responsiveness:** User messages take from 45 to 80 % of the chat's container width, depending on the viewport width.
- **Responsiveness:** User messages take from 45 to 80% of the chat's container width, depending on the viewport width.


## Dos and Don’ts

- Do offer only the few actions users need after sending, e.g. copy, edit or more actions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Do offer only the few actions users need after sending, e.g. copy, edit or more actions
- Do offer only the few actions users need after sending, e.g. copy or edit

## Dos and Don’ts

- Do offer only the few actions users need after sending, e.g. copy, edit or more actions
- Do keep the original message wording and attachments visible so users can review what they submitted

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Do keep the original message wording and attachments visible so users can review what they submitted
- Do keep the messages and attachments visible as a continuous chat


- Do offer only the few actions users need after sending, e.g. copy, edit or more actions
- Do keep the original message wording and attachments visible so users can review what they submitted

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe an idea for a dont:

"Don't add limits to how many messages are visible, instead always display full chat sessions"

@tokyojen tokyojen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added quite a lot of comments to try to make sure it matches with Sidhu and our content. Might need to check a few things together.

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.

4 participants