Fix tracking pour la recherche du code ape

pull/2538/head
Johan Girod 2023-03-06 14:53:39 +01:00
parent 84833e66c3
commit dad81d8cfa
73 changed files with 84 additions and 82 deletions

View File

@ -22,19 +22,19 @@ import { useGetFullURL } from '@/hooks/useGetFullURL'
import { useIsEmbedded } from '@/hooks/useIsEmbedded'
import { useSaveAndRestoreScrollPosition } from '@/hooks/useSaveAndRestoreScrollPosition'
import Accessibilité from '@/pages/Accessibilité'
import Budget from '@/pages/Budget/Budget'
import IntegrationTest from '@/pages/Dev/IntegrationTest'
import Documentation from '@/pages/Documentation'
import Iframes from '@/pages/Iframes'
import Landing from '@/pages/Landing/Landing'
import Nouveautés from '@/pages/Nouveautes/Nouveautes'
import Offline from '@/pages/Offline'
import Plan from '@/pages/Plan'
import Stats from '@/pages/Stats/LazyStats'
import Landing from '@/pages/_landing/Landing'
import Assistants from '@/pages/assistants/index'
import Budget from '@/pages/budget/index'
import IntegrationTest from '@/pages/dev/IntegrationTest'
import Iframes from '@/pages/iframes'
import Integration from '@/pages/integration/index'
import Nouveautés from '@/pages/nouveautés/index'
import Simulateurs from '@/pages/simulateurs'
import SimulateursEtAssistants from '@/pages/simulateurs-et-assistants'
import Stats from '@/pages/statistiques/LazyStats'
import { useSitePaths } from '@/sitePaths'
import Provider, { ProviderProps } from './Provider'

View File

@ -14,7 +14,7 @@ import { Strong } from '@/design-system/typography'
import { Li, Ul } from '@/design-system/typography/list'
import { Body } from '@/design-system/typography/paragraphs'
import { useDarkMode } from '@/hooks/useDarkMode'
import { RealResponsiveContainer } from '@/pages/Stats/Chart'
import { RealResponsiveContainer } from '@/pages/statistiques/Chart'
type Data =
| Array<{ date: string; nombre: number }>

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

View File

@ -1,6 +1,6 @@
import ChoixDuStatut from '..'
import { config } from '../../../simulateurs/configs/config'
import { SimulatorsDataParams } from '../../../simulateurs/configs/types'
import { config } from '../../../simulateurs/_configs/config'
import { SimulatorsDataParams } from '../../../simulateurs/_configs/types'
export function choixStatutJuridiqueConfig({
t,

View File

@ -1,6 +1,6 @@
import DéclarationChargeSocialeIndépendant from '.'
import { config } from '../../simulateurs/configs/config'
import { SimulatorsDataParams } from '../../simulateurs/configs/types'
import { config } from '../../simulateurs/_configs/config'
import { SimulatorsDataParams } from '../../simulateurs/_configs/types'
export function déclarationChargesSocialesIndépendantConfig({
t,

View File

@ -1,6 +1,6 @@
import DéclarationRevenuIndépendant from '.'
import { config } from '../../simulateurs/configs/config'
import { SimulatorsDataParams } from '../../simulateurs/configs/types'
import { config } from '../../simulateurs/_configs/config'
import { SimulatorsDataParams } from '../../simulateurs/_configs/types'
export function déclarationRevenuIndépendantBetaConfig({
t,

View File

@ -1,6 +1,6 @@
import FormulaireMobilitéIndépendant from '.'
import { config } from '../../simulateurs/configs/config'
import { SimulatorsDataParams } from '../../simulateurs/configs/types'
import { config } from '../../simulateurs/_configs/config'
import { SimulatorsDataParams } from '../../simulateurs/_configs/types'
export function demandeMobilitéConfig({ t, sitePaths }: SimulatorsDataParams) {
return config({

View File

@ -1,5 +1,5 @@
import { SimulatorsDataParams } from '@/pages/simulateurs/_configs/types'
import { config } from '@/pages/simulateurs/configs/config'
import { SimulatorsDataParams } from '@/pages/simulateurs/configs/types'
import PourMonEntreprise from '.'

View File

@ -3,6 +3,7 @@ import { useEffect, useMemo, useRef, useState } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import styled from 'styled-components'
import { TrackPage } from '@/components/ATInternetTracking'
import FeedbackForm from '@/components/Feedback/FeedbackForm'
import { FromTop } from '@/components/ui/animate'
import {
@ -180,6 +181,7 @@ export default function SearchCodeAPE({ disabled }: SearchCodeApeProps) {
<Spacing xs />
{list.length > 0 && (
<FromTop>
<TrackPage name="recherche" />
<StyledRadioCardGroup
value={selected}
onChange={setSelected}

View File

@ -1,5 +1,5 @@
import { SimulatorsDataParams } from '@/pages/simulateurs/_configs/types'
import { config } from '@/pages/simulateurs/configs/config'
import { SimulatorsDataParams } from '@/pages/simulateurs/configs/types'
import SearchCodeApePage from '.'
@ -29,9 +29,7 @@ export function rechercheCodeApeConfig({ t, sitePaths }: SimulatorsDataParams) {
'Assistant pour trouver le code APE qui correspond à votre activité.'
),
},
tracking: {
// TODO
},
tracking: 'recherche_code_ape',
component: SearchCodeApePage,
} as const)
}

View File

@ -1,5 +1,6 @@
import { Trans } from 'react-i18next'
import { TrackPage } from '@/components/ATInternetTracking'
import { Spacing } from '@/design-system/layout'
import { Link } from '@/design-system/typography/link'
import { Body } from '@/design-system/typography/paragraphs'
@ -9,6 +10,7 @@ import SearchCodeAPE from './SearchCodeAPE'
export default function SearchCodeApePage() {
return (
<>
<TrackPage name="accueil" />
<Body>
<Trans i18nKey="pages.assistants.recherche-code-ape.description">
Cet assistant vous permet de trouver rapidement le code APE (activité

View File

@ -1,6 +1,6 @@
import ÉconomieCollaborative from '.'
import { config } from '../../simulateurs/configs/config'
import { SimulatorsDataParams } from '../../simulateurs/configs/types'
import { config } from '../../simulateurs/_configs/config'
import { SimulatorsDataParams } from '../../simulateurs/_configs/types'
export function économieCollaborativeConfig({
t,

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import ArtisteAuteur from './ArtisteAuteur'
export function artisteAuteurConfig({ t, sitePaths }: SimulatorsDataParams) {

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configArtisteAuteur: SimulationConfig = {
objectifs: [

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import AutoEntrepreneur, { SeoExplanations } from './AutoEntrepreneur'
import { configAutoEntrepreneur } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configAutoEntrepreneur: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configAuxiliaire } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configAvocat } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configDentiste } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import ChômagePartielComponent, { SeoExplanations } from './ChômagePartiel'
import ChômagePartielPreview from './ChômagePartielPreview.png'
import { configChômagePartiel } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configChômagePartiel: SimulationConfig = {
objectifs: [

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import cipavSimulationConfig from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
import { configProfessionLibérale } from '../profession-libérale/simulationConfig'
const cipavSimulationConfig: SimulationConfig = {

View File

@ -1,6 +1,6 @@
import SchemeComparaisonPage from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { configComparateurStatuts } from './simulationConfig'
export function comparaisonStatutsConfig({

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configComparateurStatuts: SimulationConfig = {
'objectifs exclusifs': [],

View File

@ -1,6 +1,6 @@
import CoutCreationEntreprise from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
export function coûtCréationEntrepriseConfig({
t,

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import DividendesSimulation, { SeoExplanations } from './Dividendes'
import { configDividendes } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configDividendes: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import IndépendantSimulation from '../indépendant/Indépendant'
import { configEirl } from '../indépendant/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import AutoEntrepreneurPreview from '../images/AutoEntrepreneurPreview.png'
import {
EntrepriseIndividuelle,

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import RémunérationSASUPreview from '../images/RémunérationSASUPreview.png'
import IndépendantSimulation from '../indépendant/Indépendant'
import { configEurl } from '../indépendant/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configExpertComptable } from '../profession-libérale/simulationConfig'

View File

@ -1,6 +1,6 @@
import ISSimulation, { SeoExplanations } from '.'
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import ISSimulationConfig from './simulationConfig'
export function impôtSociétéConfig({ t, sitePaths }: SimulatorsDataParams) {

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
const ISSimulationConfig: SimulationConfig = {
'unité par défaut': '€/an',

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import IndépendantSimulation from './Indépendant'
import { configIndépendant } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configIndépendant: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -7,6 +7,7 @@ import { demandeMobilitéConfig } from '../assistants/demande-mobilité/config'
import { pourMonEntrepriseConfig } from '../assistants/pour-mon-entreprise/config'
import { rechercheCodeApeConfig } from '../assistants/recherche-code-ape/config'
import { économieCollaborativeConfig } from '../assistants/économie-collaborative/config'
import { PageConfig, SimulatorsDataParams } from './_configs/types'
import { artisteAuteurConfig } from './artiste-auteur/config'
import { autoEntrepreneurConfig } from './auto-entrepreneur/config'
import { auxiliaireMédicalConfig } from './auxiliaire-médical/config'
@ -15,7 +16,6 @@ import { chirurgienDentisteConfig } from './chirurgien-dentiste/config'
import { chômagePartielConfig } from './chômage-partiel/config'
import { cipavConfig } from './cipav/config'
import { comparaisonStatutsConfig } from './comparaison-statuts/config'
import { PageConfig, SimulatorsDataParams } from './configs/types'
import { coûtCréationEntrepriseConfig } from './cout-creation-entreprise/config.js'
import { dividendesConfig } from './dividendes/config'
import { eirlConfig } from './eirl/config'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configMédecin } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { configProfessionLibérale } from '../profession-libérale/simulationConfig'
import PAMCHome from './PAMCHome'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configPharmacien } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configProfessionLibérale } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
import { configIndépendant } from '../indépendant/simulationConfig'
export const configProfessionLibérale: SimulationConfig = {

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import { IndépendantPLSimulation } from '../indépendant/Indépendant'
import { configSageFemme } from '../profession-libérale/simulationConfig'

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import salaireBrutNetPreviewEN from './SalaireBrutNetPreviewEN.png'
import salaireBrutNetPreviewFR from './SalaireBrutNetPreviewFR.png'
import SalariéSimulation, { SeoExplanations } from './Salarié'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configSalarié: SimulationConfig = {
'objectifs exclusifs': [

View File

@ -1,5 +1,5 @@
import { config } from '../configs/config'
import { SimulatorsDataParams } from '../configs/types'
import { config } from '../_configs/config'
import { SimulatorsDataParams } from '../_configs/types'
import RémunérationSASUPreview from '../images/RémunérationSASUPreview.png'
import { SASUSimulation, SeoExplanations } from './SASU'
import { configSASU } from './simulationConfig'

View File

@ -1,4 +1,4 @@
import { SimulationConfig } from '../configs/types'
import { SimulationConfig } from '../_configs/types'
export const configSASU: SimulationConfig = {
'objectifs exclusifs': [

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -2,7 +2,7 @@ import { DottedName } from 'modele-social'
import reduceReducers from 'reduce-reducers'
import { Reducer, combineReducers } from 'redux'
import { SimulationConfig, Situation } from '@/pages/simulateurs/configs/types'
import { SimulationConfig, Situation } from '@/pages/simulateurs/_configs/types'
import { Action } from '@/store/actions/actions'
import { PreviousSimulation } from '@/store/selectors/previousSimulationSelectors'
import { ImmutableType } from '@/types/utils'

View File

@ -2,7 +2,7 @@ import { unlinkSync, writeFileSync } from 'fs'
import path from 'path'
import { defineConfig } from 'vite'
import { PageConfig } from '@/pages/simulateurs/configs/types'
import { PageConfig } from '@/pages/simulateurs/_configs/types'
import { objectTransform } from './source/utils'