Feature: new "report a bug" modal (#13530)

* WIP: report a bug api/ui

* fix lint

* add USER_USERNAME

* extend sendTxn tests / checks + fix bug report email

* fix lint

* add more checks to sendTxn - fix bug-report variables

* fix lint / ci

* fix test: reset email config url

* fix test stub

* fix tests

* refactor the variables checks

* lint.

* move bug-report page as a modal

* send user_email to the email

* show true/false instead 1/0

* fix issues

* fix footer report bug email if not logged in

* fix styles/margins

* prefill user's email

* show facebook email if local email not existing

* bugReportSuccessModal.vue

* add BROWSER_UA to mail properties

* extract bugReportLogic to its own lib file for unit test

* test api validators

* fix lint
This commit is contained in:
negue
2021-12-15 02:16:50 +01:00
committed by GitHub
parent c37dac5568
commit a1cddcaf17
25 changed files with 833 additions and 64 deletions
@@ -2,6 +2,11 @@
<button
title="close dialog"
@click="$emit('click', $event)"
:style="{
'--icon-color': iconColor,
'--icon-color-hover': iconColorHover,
}"
:class="{'purple': purple}"
>
<div
v-once
@@ -16,6 +21,7 @@ import svgClose from '@/assets/svg/close.svg';
export default {
name: 'CloseIcon',
props: ['iconColor', 'iconColorHover', 'purple'],
data () {
return {
icons: Object.freeze({
@@ -43,13 +49,18 @@ export default {
width: 1rem;
height: 1rem;
&.purple {
--icon-color: #{$purple-400};
--icon-color-hover: #{$purple-500};
}
::v-deep svg path {
stroke: $gray-200;
stroke: var(--icon-color, #{$gray-200});
}
&:hover {
::v-deep svg path {
stroke: $gray-100;
stroke: var(--icon-color-hover, #{$gray-100});
}
}
}