Loading
chore(duo-agent-platform-v2): clean up feature flag and import types
Description
Now that UI V2 is gated behind the experiment/beta features setting, the dedicated flag is no longer needed and causes confusion if it's not set. The new UI becomes the default (opt-out) once experiment features are enabled, and the user's enable/disable choice survives window reloads.
- Removes the client-side
duoAgentPlatformNextfeature flag that gated the Duo Agent Platform UI V2, replacing it with a user preference persisted inglobalState. - Switches the experiment/beta features notification handling to use the strongly-typed constants exported from
@gitlab-org/gitlab-lsp.
Follow-up to !3298 (merged)
Related Issues
Issue #2837
How has this been tested?
- If
src/browserorsrc/commonhas been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE. - Consider an end-to-end test for significant new features that aren't covered by integration tests.
- Run the extension locally
- With experimental settings on, new UI should be present by default with a toggle button.
- Click toggle button to Class layout.
- Reload and verify the choice is persisted
- Turn off experimental settings and old UI shows up with no toggle button
Screenshots (if appropriate)
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