Skip to content

[Security Solution] [AI Assistant] Update copy of the citations tour.#210398

Merged
KDKHD merged 13 commits intoelastic:mainfrom
KDKHD:enhancement/citations-copy
Feb 21, 2025
Merged

[Security Solution] [AI Assistant] Update copy of the citations tour.#210398
KDKHD merged 13 commits intoelastic:mainfrom
KDKHD:enhancement/citations-copy

Conversation

@KDKHD
Copy link
Copy Markdown
Member

@KDKHD KDKHD commented Feb 10, 2025

Summary

Addresses elastic/security-docs#6485 (comment)

This PR updates the copy in the Citations and Anonymized values tour according to the figma linked in the issue. Furthermore, the PR includes the logic that disables the "Show anonymized values" and "Show citations" buttons in the assistant settings menu when the conversation does not contain anonymized values or citations respectivly.

How to test new copy is correct

image
  • Enable feature flag
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
  • Clear the key elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18 from your local storage if it exists.
  • Open Security assistant
  • Ask the assistant a question about your alerts or a KB document, the response should contain anonymized values or a citation.
  • The tour with the new copy should appear (copy in screenshot above).
    *the Anonymized values and citations will not appear if the knowledge base tour is currently open.

How to test assistant settings menu changes:

image
  • Enable feature flag
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
  • Open Security assistant
  • In a new conversation, inside the settings menu, the "Show anonymized values" and "Show citations" menu items should be disabled because the conversation is empty and does not contain citations or anonymized values.
  • Ask the assistant a question about a KB document or Alert. The "Show citations" menu item should become available if the response contains citations. The "Show anonymized values" menu item will become available if the conversation contains replacements. Hovering over the disabled menu item will make a tooltip appear explaining why it is disabled.
    *Sometimes the conversation will contain replacements but the replacements are not used in the messages. In that case, the anonymized values menu item will not be disabled. This is a known issue.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@KDKHD KDKHD changed the title Update copy for citations tour + disable citations when they are unav… [Security Solution] [AI Assistant] Update copy of the citations tour. Feb 10, 2025
@KDKHD KDKHD marked this pull request as ready for review February 10, 2025 15:50
@KDKHD KDKHD requested a review from a team as a code owner February 10, 2025 15:50
@KDKHD KDKHD added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Security Generative AI Security Generative AI backport:version Backport to applied version labels v8.18.0 v9.1.0 v8.19.0 labels Feb 10, 2025
@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 13, 2025

@elasticmachine merge upstream

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 17, 2025

@elasticmachine merge upstream

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 19, 2025

@elasticmachine merge upstream

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 20, 2025

/ci

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #48 / Space awareness change space agent policies PUT /agent_policies/{id} should allow set policy in multiple space

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
automaticImport 731 732 +1
securitySolution 7092 7093 +1
total +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 8.9MB 8.9MB +1.4KB

History

Copy link
Copy Markdown
Member

@spong spong left a comment

Choose a reason for hiding this comment

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

Checked out, tested locally, and performed code review -- LGTM! 👍

Thanks for the helper function cleanup and added tests, appreciate it! 🚀

@KDKHD KDKHD merged commit b59712f into elastic:main Feb 21, 2025
10 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13453467275

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 21, 2025
…elastic#210398)

## Summary

Addresses
elastic/security-docs#6485 (comment)

This PR updates the copy in the Citations and Anonymized values tour
according to the figma linked in the issue. Furthermore, the PR includes
the logic that disables the "Show anonymized values" and "Show
citations" buttons in the assistant settings menu when the conversation
does not contain anonymized values or citations respectivly.

### How to test new copy is correct
<img width="864" alt="image"
src="https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a"
/>

- Enable feature flag
```yaml
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
```
- Clear the key
`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18` from
your local storage if it exists.
- Open Security assistant
- Ask the assistant a question about your alerts or a KB document, the
response should contain anonymized values or a citation.
- The tour with the new copy should appear (copy in screenshot above).
*the Anonymized values and citations will not appear if the knowledge
base tour is currently open.

### How to test assistant settings menu changes:
<img width="349" alt="image"
src="https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d"
/>

- Enable feature flag
```yaml
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
```
- Open Security assistant
- In a new conversation, inside the settings menu, the "Show anonymized
values" and "Show citations" menu items should be disabled because the
conversation is empty and does not contain citations or anonymized
values.
- Ask the assistant a question about a KB document or Alert. The "Show
citations" menu item should become available if the response contains
citations. The "Show anonymized values" menu item will become available
if the conversation contains replacements. Hovering over the disabled
menu item will make a tooltip appear explaining why it is disabled.
*Sometimes the conversation will contain replacements but the
replacements are not used in the messages. In that case, the anonymized
values menu item will not be disabled. This is a known
[issue](elastic#208517).

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit b59712f)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- [EUI Visual Refresh][Security Gen AI] Add support for borealis theme (#202393)
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 210398

Questions ?

Please refer to the Backport tool documentation

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 21, 2025

💚 All backports created successfully

Status Branch Result
8.x
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 21, 2025

💚 All backports created successfully

Status Branch Result
8.x
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 21, 2025
… tour. (#210398) (#212018)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] [AI Assistant] Update copy of the citations tour.
(#210398)](#210398)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-21T09:03:53Z","message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Security
Generative
AI","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] [AI Assistant] Update copy of the citations
tour.","number":210398,"url":"https://github.com/elastic/kibana/pull/210398","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210398","number":210398,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kenneth Kreindler <42113355+KDKHD@users.noreply.github.com>
KDKHD added a commit that referenced this pull request Feb 21, 2025
… tour. (#210398) (#212024)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] [AI Assistant] Update copy of the citations tour.
(#210398)](#210398)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-21T09:03:53Z","message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Security
Generative
AI","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] [AI Assistant] Update copy of the citations
tour.","number":210398,"url":"https://github.com/elastic/kibana/pull/210398","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212018","number":212018,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210398","number":210398,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
KDKHD added a commit that referenced this pull request Feb 21, 2025
…s tour. (#210398) (#212025)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] [AI Assistant] Update copy of the citations tour.
(#210398)](#210398)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-21T09:03:53Z","message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Security
Generative
AI","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] [AI Assistant] Update copy of the citations
tour.","number":210398,"url":"https://github.com/elastic/kibana/pull/210398","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212018","number":212018,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210398","number":210398,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Mar 4, 2025
… tour. (elastic#210398) (elastic#212024)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] [AI Assistant] Update copy of the citations tour.
(elastic#210398)](elastic#210398)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-21T09:03:53Z","message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(elastic#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Security
Generative
AI","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] [AI Assistant] Update copy of the citations
tour.","number":210398,"url":"https://github.com/elastic/kibana/pull/210398","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(elastic#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212018","number":212018,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210398","number":210398,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Update copy of the citations tour.
(elastic#210398)\n\n##
Summary\n\nAddresses\nhttps://github.com/elastic/security-docs/issues/6485#issuecomment-2639562221\n\nThis
PR updates the copy in the Citations and Anonymized values
tour\naccording to the figma linked in the issue. Furthermore, the PR
includes\nthe logic that disables the \"Show anonymized values\" and
\"Show\ncitations\" buttons in the assistant settings menu when the
conversation\ndoes not contain anonymized values or citations
respectivly.\n\n### How to test new copy is correct\n<img width=\"864\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a\"\n/>\n\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Clear the
key\n`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18`
from\nyour local storage if it exists.\n- Open Security assistant\n- Ask
the assistant a question about your alerts or a KB document,
the\nresponse should contain anonymized values or a citation.\n- The
tour with the new copy should appear (copy in screenshot above).\n*the
Anonymized values and citations will not appear if the knowledge\nbase
tour is currently open.\n\n### How to test assistant settings menu
changes:\n<img width=\"349\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d\"\n/>\n\n-
Enable feature flag\n```yaml\n#
kibana.dev.yml\nxpack.securitySolution.enableExperimental:
['contentReferencesEnabled']\n```\n- Open Security assistant\n- In a new
conversation, inside the settings menu, the \"Show anonymized\nvalues\"
and \"Show citations\" menu items should be disabled because
the\nconversation is empty and does not contain citations or
anonymized\nvalues.\n- Ask the assistant a question about a KB document
or Alert. The \"Show\ncitations\" menu item should become available if
the response contains\ncitations. The \"Show anonymized values\" menu
item will become available\nif the conversation contains replacements.
Hovering over the disabled\nmenu item will make a tooltip appear
explaining why it is disabled.\n*Sometimes the conversation will contain
replacements but the\nreplacements are not used in the messages. In that
case, the anonymized\nvalues menu item will not be disabled. This is a
known\n[issue](https://github.com/elastic/kibana/issues/208517).\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [X] Any text
added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"b59712fa8cc5709cb36da6914c61823411b6c1fe"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
…elastic#210398)

## Summary

Addresses
elastic/security-docs#6485 (comment)

This PR updates the copy in the Citations and Anonymized values tour
according to the figma linked in the issue. Furthermore, the PR includes
the logic that disables the "Show anonymized values" and "Show
citations" buttons in the assistant settings menu when the conversation
does not contain anonymized values or citations respectivly.

### How to test new copy is correct
<img width="864" alt="image"
src="https://github.com/user-attachments/assets/22bd2671-6d06-4e68-85f5-3c10d9974a4a"
/>


- Enable feature flag
```yaml
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
```
- Clear the key
`elasticAssistant.anonymizedValuesAndCitationsTourCompleted.v8.18` from
your local storage if it exists.
- Open Security assistant
- Ask the assistant a question about your alerts or a KB document, the
response should contain anonymized values or a citation.
- The tour with the new copy should appear (copy in screenshot above).
*the Anonymized values and citations will not appear if the knowledge
base tour is currently open.

### How to test assistant settings menu changes:
<img width="349" alt="image"
src="https://github.com/user-attachments/assets/58e445d7-79c0-46ca-a245-bc2ab90eeb5d"
/>

- Enable feature flag
```yaml
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
```
- Open Security assistant
- In a new conversation, inside the settings menu, the "Show anonymized
values" and "Show citations" menu items should be disabled because the
conversation is empty and does not contain citations or anonymized
values.
- Ask the assistant a question about a KB document or Alert. The "Show
citations" menu item should become available if the response contains
citations. The "Show anonymized values" menu item will become available
if the conversation contains replacements. Hovering over the disabled
menu item will make a tooltip appear explaining why it is disabled.
*Sometimes the conversation will contain replacements but the
replacements are not used in the messages. In that case, the anonymized
values menu item will not be disabled. This is a known
[issue](elastic#208517).

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Security Generative AI Security Generative AI v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants