-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-lodash-types
- Loading branch information
Showing
15 changed files
with
165 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Description succincte du problème résolu | ||
|
||
Carte Notion : [Titre de la carte](https://notion.so/...) | ||
|
||
Description plus détaillée de l'intention, l'approche ou de l'implémentation (ce qui n’est pas visible directement en lisant le code) | ||
|
||
<!-- Cocher la/les case.s appropriée.s --> | ||
**Type de changement** : | ||
- [ ] Bug fix | ||
- [ ] Nouvelle fonctionnalité | ||
- [ ] Mise à jour de données / DAG | ||
- [ ] Les changements nécessitent une mise à jour de documentation | ||
- [ ] Refactoring de code (explication à retrouver dans la description) | ||
|
||
## Auto-review | ||
|
||
Les trucs à faire avant de demander une review : | ||
- [ ] J'ai bien relu mon code | ||
- [ ] La CI passe bien | ||
- [ ] En cas d'ajout de variable d'environnement, j'ai bien mis à jour le `.env.template` | ||
- [ ] J'ai ajouté des tests qui couvrent le nouveau code | ||
|
||
## Comment tester | ||
|
||
En local / staging : | ||
- Récupérer la base de production | ||
- Aller sur http://localhost:8000 | ||
- Cliquer sur ABC | ||
- … | ||
|
||
## Développement local | ||
|
||
<!-- Dans le cas où il y a des instructions spécifiques pour garantir un local fonctionnel pour le reste de l'équipe --> | ||
- Mettre à jour le `.env` | ||
- Réinstaller les dépendances Python avec `pip install -r requirements.txt -r dev-requirements.txt` | ||
- Réinstaller les dépendances node avec `npm install` | ||
- Rebuild la stack docker avec `docker compose build` | ||
- ... | ||
|
||
## Déploiement | ||
|
||
<!-- Dans le cas où il y a des instructions spécifiques de déploiement --> | ||
|
||
- Exécuter les migrations | ||
- Exécuter la commande `rf -rf /` | ||
- ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Controller } from "@hotwired/stimulus" | ||
import { InteractionType as PosthogUIInteractionType, PosthogEventType } from "./types" | ||
import posthog from "posthog-js" | ||
|
||
export default class extends Controller<HTMLElement> { | ||
// Sert principalement à type les appels à la méthode capture de Posthog. | ||
// Ça évite d'appeler un événement indéfini, ce qui peut rapidement polluer | ||
// les données stockées côtés PostHog. | ||
capture(posthogEvent: PosthogEventType, details: object) { | ||
posthog.capture(posthogEvent, details) | ||
} | ||
|
||
captureUIInteraction(UIInteractionType: PosthogUIInteractionType) { | ||
this.capture("ui_interaction", { | ||
ui_interaction_type: UIInteractionType, | ||
}) | ||
} | ||
|
||
captureInteractionWithSolutionDetails() { | ||
this.captureUIInteraction("solution_details") | ||
} | ||
|
||
captureInteractionWithMap() { | ||
this.captureUIInteraction("map") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters