Skip to content

feat(ai-context): injected context UI integration

Elwyn Benson requested to merge pinned-context-ui-integration into main

Description

Integrate the pinned context UI work into VSCode.

The UI is wired up all the way through to chat_controller, the remaining functionality will be integrated in !1952 (merged) and gitlab-org/editor-extensions/gitlab-lsp!803 (merged)

As there is no backend yet, the UI introduced in this MR is all hidden by default (controlled based on recieveing AiContextCategories from the backend or not - which will in turn be controlled via a feature flag)

This MR also updates the @gitlab/ui package to the latest version within the vue2 webviews.

Related Issues

Resolves gitlab#480795 (closed)

How has this been tested?

Verify new UI and /include command are not available within DuoChat since backend implementation is not included here.

Screenshots (if appropriate)

no visual differences, feature is unavailable

When hardcoding mock data to force the component to render:

gif notes
themes-1 theme integration (menu closed)
themes-2 theme integration (menu open)

Note: theme integration was done with this gitlab-ui!4564 (merged) temporarily merged in here (but not committed) to be sure I caught latest changes - the actual popover and selections in this MR may look slightly wonky in some themes before that gets merged.

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Elwyn Benson

Merge request reports

Loading