Skip to content

Commit d499012

Browse files
zatteoCrash--
authored andcommitted
feat: Add feedback CTA
Feedback CTA was disabled waiting a new feedback tool.
1 parent b12114d commit d499012

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

src/ducks/apps/components/Discover.jsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Content } from 'cozy-ui/transpiled/react/Layout'
99
import ApplicationRouting from 'ducks/apps/components/ApplicationRouting'
1010
import Sections from 'ducks/apps/components/QuerystringSections'
1111
import AppsLoading from 'ducks/components/AppsLoading'
12-
//import AppVote from 'ducks/components/AppVote'
12+
import AppVote from 'ducks/components/AppVote'
1313

1414
import { useNavigateNoUpdates, withRouterUtils } from 'lib/RouterUtils'
1515

@@ -60,15 +60,7 @@ export class Discover extends Component {
6060
/>
6161
)}
6262
</div>
63-
{
64-
/**
65-
* We have disabled this AppVote component since
66-
* we have issue with our framaform. We're trying
67-
* to find a new solution, so in the mean time
68-
* let's remove it
69-
*/
70-
//!isFetching && <AppVote />
71-
}
63+
{!isFetching && <AppVote />}
7264
</div>
7365

7466
<ApplicationRouting

src/ducks/components/AppVote.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Icon from 'cozy-ui/transpiled/react/Icon'
44
import { translate } from 'cozy-ui/transpiled/react/I18n'
55
import PopupOpener from 'cozy-ui/transpiled/react/PopupOpener'
66

7-
const VOTING_LINK = 'https://framaforms.org/collect-1518082910'
7+
const VOTING_LINK = 'https://feedback.cozy.io/'
88

99
export const AppVote = ({ t }) => (
1010
<PopupOpener

test/components/__snapshots__/appVote.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`AppVote component should be rendered correctly 1`] = `
55
className="sto-app-vote-wrapper"
66
height={700}
77
title="Cozy app voting"
8-
url="https://framaforms.org/collect-1518082910"
8+
url="https://feedback.cozy.io/"
99
width={650}
1010
>
1111
<div

test/ducks/apps/components/__snapshots__/discover.spec.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ exports[`Discover component should be rendered correctly with apps 1`] = `
187187
onAppClick={[Function]}
188188
/>
189189
</div>
190+
<withI18n(AppVote) />
190191
</div>
191192
<withI18n(ApplicationRoutingWrapper)
192193
actionError={null}
@@ -555,6 +556,7 @@ exports[`Discover component should be rendered correctly with apps and URL searc
555556
onAppClick={[Function]}
556557
/>
557558
</div>
559+
<withI18n(AppVote) />
558560
</div>
559561
<withI18n(ApplicationRoutingWrapper)
560562
actionError={null}
@@ -752,6 +754,7 @@ exports[`Discover component should display error from props correctly 1`] = `
752754
onAppClick={[Function]}
753755
/>
754756
</div>
757+
<withI18n(AppVote) />
755758
</div>
756759
<withI18n(ApplicationRoutingWrapper)
757760
actionError={null}
@@ -976,6 +979,7 @@ exports[`Discover component should use BarCenter from cozy-bar in mobile view on
976979
onAppClick={[Function]}
977980
/>
978981
</div>
982+
<withI18n(AppVote) />
979983
</div>
980984
<withI18n(ApplicationRoutingWrapper)
981985
actionError={null}

0 commit comments

Comments
 (0)