[MR Widget] Migrate Terraform Widget to V2
Context
As part of &10460, we're migrating existing widgets to V2.
This issue tracks the effort to migrate the Terraform Widget To V2.
Implementation plan
We need to refactor terraform/index.js
to a vue file. The V2 is very similar to V1, so there shouldn't be too much logic change.
That said, this still took a lot of back and forth because the widget.vue
component had to be adjusted for the component's use-case. For that reason I'm assigning this a weight of 5.
Verification
-
Go to gitlab-org/frontend/playground/gitlab-mr-widgets-demo!16 (closed) -
Check that the Terraform Report is loading
The previous version looks like this:
There are a few changes. The icon is now aligned to top, the Reported resource changes
subtitle is now displayed in a new line.
Edited by Savas Vedova