[go: up one dir, main page]

Skip to content

Feat: add search to agent sessions

What does this MR do and why?

The following MR adds the following features into both the Agent Sessions page and in the new ui side-panel for Agent Sessions:

  • Sort by Updated Date
  • Sort by Created Date
  • Search by Workflow Type
  • Search by fuzzy search term on the title (the title + workflow id combo of the title currently)
  • View Recent History search terms
  • Tokens stay in search bar when searching
  • Shows empty state when no search terms match

References

Related Issues:

  1. https://gitlab.com/gitlab-org/frontend/gitlab-ui-integrations/-/issues/4
  2. https://gitlab.com/gitlab-org/frontend/gitlab-ui-integrations/-/work_items/5

Screenshots or screen recordings

Before After After w. Alert
Screenshot_2025-09-29_at_11.55.58_AM Screenshot_2025-09-29_at_10.52.47_AM Screenshot_2025-10-02_at_7.50.45_AM
Screenshot_2025-09-29_at_11.56.12_AM Screenshot_2025-10-02_at_7.58.25_AM Screenshot_2025-10-02_at_7.58.40_AM

How to set up and validate locally

Environment Testing Steps

To Test in Duo Side Rail

  1. Turn on the following feature flags: duo_workflow, duo_workflow_in_ci, ai_flow_triggers and duo_side_rail.
  2. Make sure you are NOT in the new UI
  3. Open Duo Chat and open the Sessions tab (the two overlapping squares icon).
  4. Test search queries (see below for test cases)
  5. If you see no Sessions then run the following query bundle exec rake "gitlab:duo_workflow:populate[50,20,1,<<YOUR_TEST_GROUP_PATH_HERE>>]" to create new agent sessions. Refresh the page.

To Test in Agent Sessions page

  1. Navigate to a project with that has AI features enabled.
  2. In the left side panel, you will see Automate with a tanuki icon. Select Agent sessions from the dropdown.
  3. Test search queries (see below for test cases)

To Test in new UI Side Panel

  1. To test this locally, make sure you have the following FFs enabled: paneled_view, global_topbar, tailwind_container_queriesAfter you can toggle New UI on in user's setting under the user's profile dropdown
  2. Open the side panel and open Sessions.
  3. Test search queries (see below for test cases)

Filter/Sort Testing Steps

Filtering

  1. Select Flow Name and use one of the selected values Software development or Convert to gitlab ci.
  2. Press Enter or click the search icon.
  3. Validate filter works as expected.
  4. If your term was not found, an empty result view should display. You can reset by refreshing the page or clicking the search icon again.
  5. You can use the following patch and filter with chat to test the results (chat should be excluded out and should not be found): unmatched_filter.patch

Raw text Search

  1. Type in any search term to test raw text search.
  2. Press Enter or click the search icon.
  3. Validate that an alert appears to indicate raw text is not supported.

Sorting

  1. Go to the ASC/DESC sorting dropdown (on the right or bottom if in panel view) and select a value or press the up or down icons.
  2. Validate the information has been sorted by the value selected.

Recent History

  1. Select the Recent History icon on the left and select one of the recently searched terms.
  2. Validate term re-appears in the search.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lindsey Shelton

Merge request reports

Loading