Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
3f785e22
Verified
Commit
3f785e22
authored
1 year ago
by
Phil Hughes
Browse files
Options
Downloads
Patches
Plain Diff
Added generate test file feedback options
#410237
parent
a3d31be6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ee/app/assets/javascripts/ai/components/generate_test_file_drawer.vue
+16
-1
16 additions, 1 deletion
...s/javascripts/ai/components/generate_test_file_drawer.vue
with
16 additions
and
1 deletion
ee/app/assets/javascripts/ai/components/generate_test_file_drawer.vue
+
16
−
1
View file @
3f785e22
<
script
>
import
{
GlDrawer
,
GlBadge
,
GlSkeletonLoader
,
GlAlert
}
from
'
@gitlab/ui
'
;
import
{
GlDrawer
,
GlBadge
,
GlSkeletonLoader
,
GlAlert
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
SafeHtml
from
'
~/vue_shared/directives/safe_html
'
;
import
{
getContentWrapperHeight
}
from
'
~/lib/utils/dom_utils
'
;
import
{
DRAWER_Z_INDEX
}
from
'
~/lib/utils/constants
'
;
import
aiResponseSubscription
from
'
ee/graphql_shared/subscriptions/ai_completion_response.subscription.graphql
'
;
import
UserFeedback
from
'
ee/ai/components/user_feedback.vue
'
;
import
testFileGeneratorMutation
from
'
../graphql/test_file_generator.mutation.graphql
'
;
export
default
{
...
...
@@ -45,6 +46,8 @@ export default {
GlBadge
,
GlSkeletonLoader
,
GlAlert
,
GlLink
,
UserFeedback
,
},
props
:
{
resourceId
:
{
...
...
@@ -97,6 +100,10 @@ export default {
},
},
DRAWER_Z_INDEX
,
feedback
:
{
eventName
:
'
generate_test_file_merge_request
'
,
link
:
'
https://gitlab.com/gitlab-org/gitlab/-/issues/408995
'
,
},
};
</
script
>
...
...
@@ -136,6 +143,14 @@ export default {
<span
v-safe-html=
"generatedTest"
data-testid=
"generate-test-code"
></span>
<copy-code
/>
</div>
<user-feedback
:event-name=
"$options.feedback.eventName"
/>
<p>
{{
__
(
'
AI generated this test
'
)
}}
·
<gl-link
:href=
"$options.feedback.link"
target=
"_blank"
>
{{
__
(
'
Leave feedback
'
)
}}
</gl-link>
</p>
</
template
>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment