-
-
{
- this.intentWrapperRef = wrapper
- }}
- />
-
- )
- }
-}
-
-export default Claudy
diff --git a/src/components/Drawer.jsx b/src/components/Drawer.jsx
index 6a4ecaf5a..2230859de 100644
--- a/src/components/Drawer.jsx
+++ b/src/components/Drawer.jsx
@@ -167,14 +167,7 @@ class Drawer extends Component {
}
render() {
- const {
- onClaudy,
- visible,
- isClaudyLoading,
- settingsAppURL,
- storageData,
- isInvertedTheme
- } = this.props
+ const { visible, settingsAppURL, storageData, isInvertedTheme } = this.props
const tabIndex = visible ? 0 : -1
return (
@@ -219,8 +210,6 @@ Drawer.propTypes = {
visible: PropTypes.bool,
onClose: PropTypes.func,
onLogOut: PropTypes.func,
- onClaudy: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
- isClaudyLoading: PropTypes.bool,
isInvertedTheme: PropTypes.bool,
storageData: PropTypes.object,
settingsAppURL: PropTypes.string,
diff --git a/src/components/Settings/SettingsContent.jsx b/src/components/Settings/SettingsContent.jsx
index 20bd2cbcb..348f26c42 100644
--- a/src/components/Settings/SettingsContent.jsx
+++ b/src/components/Settings/SettingsContent.jsx
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types'
import flag from 'cozy-flags'
import { translate } from 'cozy-ui/react/I18n'
-import { Button } from 'cozy-ui/react/Button'
import { isMobileApp } from 'cozy-device-helper'
import StorageData from 'components/Settings/StorageData'
@@ -12,9 +11,7 @@ const SettingsContent = ({
onLogOut,
settingsAppURL,
storageData,
- onClaudy,
isDrawer = false,
- isClaudyLoading,
shoulDisplayViewOfferButton,
managerUrlPremiumLink,
tabIndex,
@@ -122,24 +119,6 @@ const SettingsContent = ({
>
)}
- {isDrawer && onClaudy && !isMobileApp() && (
-
- )}
{!isMobileApp() && (
<>
@@ -203,9 +182,7 @@ SettingsContent.propTypes = {
onLogOut: PropTypes.func.isRequired,
settingsAppURL: PropTypes.string,
storageData: PropTypes.object,
- onClaudy: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
isDrawer: PropTypes.bool,
- isClaudyLoading: PropTypes.bool,
tabIndex: PropTypes.number,
ariaHidden: PropTypes.bool
}
diff --git a/src/components/__snapshots__/Bar.spec.jsx.snap b/src/components/__snapshots__/Bar.spec.jsx.snap
index 50507dbc1..3ffaa225a 100644
--- a/src/components/__snapshots__/Bar.spec.jsx.snap
+++ b/src/components/__snapshots__/Bar.spec.jsx.snap
@@ -41,8 +41,6 @@ exports[`Bar should change allow theme overrides 1`] = `
@@ -87,8 +85,6 @@ exports[`Bar should change theme 1`] = `
@@ -143,8 +139,6 @@ exports[`Bar should display the Searchbar 1`] = `
@@ -166,7 +160,6 @@ Object {
"barLeft": undefined,
"barRight": undefined,
"barSearch": undefined,
- "claudyEnabled": false,
"hasFetchedApps": false,
"isDrive": false,
"theme": "default",
@@ -235,8 +228,6 @@ exports[`Bar should not display searchbar if we are not on Cozy Drive 1`] = `
@@ -283,8 +274,6 @@ exports[`Bar should not display searchbar if we are on mobile 1`] = `
diff --git a/src/config/claudyActions.yaml b/src/config/claudyActions.yaml
deleted file mode 100644
index 2571a5374..000000000
--- a/src/config/claudyActions.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-desktop:
- icon: icon-laptop.svg
- link:
- type: external
-
-mobile:
- icon: icon-phone.svg
- link:
- type: external
-
-support:
- icon: icon-question-mark.svg
- link:
- type: external
diff --git a/src/lib/reducers/context.js b/src/lib/reducers/context.js
index bd58586c5..ccae95a00 100644
--- a/src/lib/reducers/context.js
+++ b/src/lib/reducers/context.js
@@ -1,5 +1,4 @@
import stack from 'lib/stack'
-import CLAUDY_ACTIONS from 'config/claudyActions'
import { LOG_OUT } from 'lib/reducers/settings'
const FETCH_CONTEXT = 'FETCH_CONTEXT'
@@ -11,14 +10,6 @@ export const getHelpLink = state => {
return state.helpLink
}
-export const getClaudyActions = state => {
- return state.claudyActions
-}
-export const shouldEnableClaudy = state => {
- const claudyActions = getClaudyActions(state)
- return !!claudyActions && !!claudyActions.length
-}
-
// actions
export const fetchContext = () => async (dispatch, getState) => {
dispatch({ type: FETCH_CONTEXT })
@@ -40,7 +31,6 @@ export const fetchContext = () => async (dispatch, getState) => {
// reducers
const defaultState = {
- claudyActions: [],
contextNotExist: false,
helpLink: null,
isFetching: false
@@ -53,20 +43,9 @@ const reducer = (state = defaultState, action) => {
case FETCH_CONTEXT_SUCCESS: {
const attr =
action.context && action.context.data && action.context.data.attributes
- const contextActions = (attr && attr['claudy_actions']) || []
- // get an arrays of action
- const claudyActions = contextActions
- .map(slug => {
- if (CLAUDY_ACTIONS.hasOwnProperty(slug)) {
- // adding also the action slug
- return Object.assign({}, CLAUDY_ACTIONS[slug], { slug })
- }
- })
- .filter(action => action)
return {
...state,
helpLink: (attr && attr['help_link']) || null,
- claudyActions,
isFetching: false,
contextNotExist: false
}
diff --git a/src/lib/reducers/index.js b/src/lib/reducers/index.js
index 204ec036a..a277c99b2 100644
--- a/src/lib/reducers/index.js
+++ b/src/lib/reducers/index.js
@@ -49,8 +49,6 @@ export const getSettingsAppURL = proxy('settings', settings.getSettingsAppURL)
export const isSettingsBusy = proxy('settings', settings.isSettingsBusy)
export const isFetchingSettings = proxy('settings', settings.isFetchingSettings)
export const getHelpLink = proxy('context', context.getHelpLink)
-export const getClaudyActions = proxy('context', context.getClaudyActions)
-export const shouldEnableClaudy = proxy('context', context.shouldEnableClaudy)
export const getWebviewContext = proxy(
'unserializable',
unserializable.getWebviewContext
diff --git a/src/locales/de.json b/src/locales/de.json
index c2065e563..066c86342 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -28,10 +28,6 @@
"others": "Andere Anwendungen"
},
- "claudy": {
- "title": "Wie willst du dein Cozy steuern?"
- },
-
"searchbar": {
"placeholder": "Alle Dateien durchsuchen",
"empty": "Es wurde kein Ergebnis für die Suche \"%{query}\" gefunden"
diff --git a/src/locales/en.json b/src/locales/en.json
index ca063a14b..6a53b1a63 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -30,10 +30,6 @@
"others": "Other apps"
},
- "claudy": {
- "title": "How to drive your Cozy?"
- },
-
"searchbar": {
"placeholder": "Search anything",
"empty": "No result has been found for the query “%{query}”"
diff --git a/src/locales/es.json b/src/locales/es.json
index fcff69c12..8b5978d28 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -28,10 +28,6 @@
"others": "Otras aplicaciones"
},
- "claudy": {
- "title": "¿Cómo utilizar su Cozy?"
- },
-
"searchbar": {
"placeholder": "Buscar",
"empty": "No se ha encontrado ningún resultado para su consulta “%{query}”"
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 08dbc5c3f..be59ee6a9 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -30,10 +30,6 @@
"others": "Autres apps"
},
- "claudy": {
- "title": "Comment utiliser votre Cozy ?"
- },
-
"searchbar": {
"placeholder": "Rechercher",
"empty": "Aucun résultat trouvé pour la requête \"%{query}\""
diff --git a/src/locales/it.json b/src/locales/it.json
index 12cb41f8b..eda732349 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -28,10 +28,6 @@
"others": "Altre app"
},
- "claudy": {
- "title": "Come usare il tuo Cozy?"
- },
-
"searchbar": {
"placeholder": "Cerca",
"empty": "Nessun risultato trovato per la richiesta “%{query}”"
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 4f0e28918..5e451dddb 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -28,10 +28,6 @@
"others": "他のアプリ"
},
- "claudy": {
- "title": "Cozy をドライブする方法は?"
- },
-
"searchbar": {
"placeholder": "検索します",
"empty": "問い合わせ “%{query}” の結果が見つかりません"
diff --git a/src/locales/nl_NL.json b/src/locales/nl_NL.json
index 3e5fd1df3..6e3de482f 100644
--- a/src/locales/nl_NL.json
+++ b/src/locales/nl_NL.json
@@ -28,10 +28,6 @@
"others": "Overige apps"
},
- "claudy": {
- "title": "How beheers je je Cozy?"
- },
-
"searchbar": {
"placeholder": "Zoeken naar iets",
"empty": "Geen resultaten gevonden voor de zoekopdracht \"%{query}\""
diff --git a/src/locales/pl.json b/src/locales/pl.json
index e1795d761..f976c12a5 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -28,10 +28,6 @@
"others": "Aplikacje inne"
},
- "claudy": {
- "title": "Jak korzystać z Twojego Cozy?"
- },
-
"searchbar": {
"placeholder": "Szukaj czegokolwiek",
"empty": "Brak wyników dla wyszukania \"%{query}\""
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 95fe7ae1e..2e23ead66 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -28,10 +28,6 @@
"others": "Другие приложения"
},
- "claudy": {
- "title": "Как найти ваш Cozy?"
- },
-
"searchbar": {
"placeholder": "Найти что-нибудь",
"empty": "По запросу “%{query}” ничего не найдено."
diff --git a/src/locales/sq.json b/src/locales/sq.json
index 85e2674ad..d3a9ae12e 100644
--- a/src/locales/sq.json
+++ b/src/locales/sq.json
@@ -28,10 +28,6 @@
"others": "Aplikacione të tjerë"
},
- "claudy": {
- "title": "How to drive your Cozy?"
- },
-
"searchbar": {
"placeholder": "Search anything",
"empty": "No result has been found for the query “%{query}”"
diff --git a/src/locales/zh_CN.json b/src/locales/zh_CN.json
index ab85b9648..b41fd0fb8 100644
--- a/src/locales/zh_CN.json
+++ b/src/locales/zh_CN.json
@@ -28,10 +28,6 @@
"others": "其他应用"
},
- "claudy": {
- "title": "如何驱动您的Cozy?"
- },
-
"searchbar": {
"placeholder": "搜索任何内容",
"empty": "没有任何关于“%{query}”的内容"
diff --git a/src/styles/claudy.css b/src/styles/claudy.css
deleted file mode 100644
index c4c28dfea..000000000
--- a/src/styles/claudy.css
+++ /dev/null
@@ -1,99 +0,0 @@
-[role=banner] .coz-claudy {
- position: fixed;
- bottom: 5em;
- right: 2em;
-}
-
-@media (min-width: 64em) {
- [role=banner] .coz-claudy {
- bottom: 2em;
- }
-}
-
-[role=banner] .coz-claudy-icon {
- width: 3.5em;
- height: 3.5em;
- border-radius: 100%;
- border: none;
- background-color: var(--dodgerBlue);
- background-image: url('~assets/icons/32/icon-claudy.svg');
- background-repeat: no-repeat;
- background-size: 2em;
- background-position: .75em;
- box-shadow: 0 1px 3px 0 rgba(50, 54, 63, 0.19), 0 6px 18px 0 rgba(50, 54, 63, 0.39);
- animation: none;
- cursor: pointer;
- opacity: .5;
- transition: all .2s ease-out;
- outline: 0;
-}
-
-[role=banner] .coz-claudy-icon:hover,
-[role=banner] .coz-claudy-icon:focus,
-[role=banner] .coz-claudy-icon:active,
-[role=banner] .coz-claudy [data-claudy-opened=true] {
- animation: none;
- transform: scale(1.1);
- opacity: 1;
- transition: all .2s ease-out;
-}
-
-[role=banner] .coz-claudy .coz-claudy-intent-wrapper {
- position: fixed;
- bottom: 9.5em;
- right: 2em;
- width: 25em;
- border-radius: .3em;
- background: white;
- transform-origin: 100% 100% 0;
- transform: scale(0) translateY(6em);
- filter: drop-shadow(0 4px 6px rgba(50, 54, 63, 0.5));
- opacity: 0;
- transition: .2s transform ease-in, .1s opacity ease-in;
-}
-
-[role=banner] .coz-claudy--opened .coz-claudy-intent-wrapper {
- transform: scale(1) translateY(0);
- opacity: 1;
- transition: .2s transform cubic-bezier(0.2, 0.75, 0.3, 1.15), .1s opacity ease-in;
-}
-
-[role=banner] .coz-claudy-intent-wrapper::after {
- position: fixed;
- content: '';
- right: 3em;
- width: 0;
- height: 0;
- /* Make it a bit taller to avoid browser spacing issue
- between it and the tooltip */
- border-bottom: .8em solid transparent;
- border-right: 1.5em solid white;
- bottom: -.6em;
-}
-
-[role=banner] .coz-claudy .coz-claudy-intent-wrapper .coz-intent{
- width: 100%;
- height: 100%;
- border: none;
- border-radius: .3em;
-}
-
-@media (min-width: 64em) {
- [role=banner] .coz-claudy .coz-claudy-intent-wrapper {
- bottom: 6.5em;
- }
-}
-
-@media (max-width: 48em) {
- [role=banner] .coz-claudy .coz-claudy-intent-wrapper {
- width: calc(100% - 2em);
- height: calc(100% - 2em)!important; /* overwritte intent setSize here */
- right: 1em;
- top: 1em;
- transform-origin: 50% 50% 0;
- }
-
- [role=banner] .coz-claudy-intent-wrapper::after {
- display: none;
- }
-}
diff --git a/src/styles/index.styl b/src/styles/index.styl
index 9cba6209b..61fc86347 100644
--- a/src/styles/index.styl
+++ b/src/styles/index.styl
@@ -8,7 +8,6 @@
@import '~styles/settings.css'
@import '~styles/storage.css'
@import '~styles/drawer.css'
-@import '~styles/claudy.css'
@import '~styles/searchbar.css'
@import '~styles/theme.styl'
diff --git a/src/styles/indicators.css b/src/styles/indicators.css
index acd07cae0..c722ee3bc 100644
--- a/src/styles/indicators.css
+++ b/src/styles/indicators.css
@@ -40,19 +40,3 @@
font-size: .875em;
color: var(--pomegranate);
}
-
-/* Claudy loading */
-[role=banner] .coz-claudy [data-claudy-loading=true]::before {
- position: absolute;
- content: '';
- width: 100%;
- height: 100%;
- bottom: 0;
- right: 0;
- background: none;
- border-radius: 100%;
- border: .2em solid var(--scienceBlue);
- border-right: .2em solid white;
- box-sizing: border-box;
- animation: 1s linear infinite spin;
-}