From 05ffdb3573c53d59d7bcbe135f96b29537598e48 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 13 Oct 2026 02:40:12 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20statut=20Particulier=20/=20Professionne?= =?UTF-8?q?l=20au=20d=C3=A9p=C3=B4t=20d'une=20annonce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Choix obligatoire du statut dans le formulaire de dépôt, avec l'avertissement prévu par l'article D111-8 II du code de la consommation pour les particuliers. Le statut est enregistré sur l'annonce, repris en modification et affiché sur les cartes et la fiche annonce. Claude-Session: https://claude.ai/code/session_01J2SY2d6QEBNLiUG77tZiiw --- docs/conformite-legale.md | 5 ++--- index.html | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/docs/conformite-legale.md b/docs/conformite-legale.md index cf96c3d..19affa4 100644 --- a/docs/conformite-legale.md +++ b/docs/conformite-legale.md @@ -40,8 +40,8 @@ Ces fonctions sont décrites dans les documents mais **n'existent pas encore** d | Fonction | Obligation | Priorité | |---|---|---| -| Statut « Professionnel » ou « Particulier » sur chaque annonce et profil | C. conso D111-8 II | **Fait** (cartes et fiche annonce ; données de démo) — reste : choix du statut au dépôt d'une annonce | -| Avertissement au Runner qui se déclare particulier, avant le dépôt d'une annonce | D111-8 II | Haute | +| Statut « Professionnel » ou « Particulier » sur chaque annonce et profil | C. conso D111-8 II | **Fait** (cartes, fiche annonce, choix au dépôt d'une annonce) | +| Avertissement au Runner qui se déclare particulier, avant le dépôt d'une annonce | D111-8 II | **Fait** (formulaire de dépôt) | | Bouton « Signaler » sur annonces, profils, Shorts, avis et conversations | DSA art. 16 | **Fait** sur la fiche annonce et les conversations — reste : Shorts et avis ; envoi réel au back-office | | Bouton « Résilier votre contrat » dans « Mon Pass » (récapitulatif, confirmation, accusé de réception) | C. conso L215-1-1 | **Fait** — reste : e-mail d'accusé de réception (backend) | | Bouton « Se rétracter » dans « Mon Pass » pendant 14 jours | L221-21 (contrats depuis le 19/06/2026) | **Fait** (remboursement au prorata, commandes en attente annulables) — reste : e-mail | @@ -55,7 +55,6 @@ Ces fonctions sont décrites dans les documents mais **n'existent pas encore** d | Ne plus stocker IBAN, adresse et téléphone dans `localStorage` | RGPD art. 32 (sécurité) | Haute, dès le backend | | Remplacer les médias Unsplash et Mixkit par des fichiers hébergés par Jobrunner | Transmission de l'adresse IP à des tiers | Avant l'ouverture | | Retirer les données de démonstration (faux profils, faux avis) | L121-4 (faux avis) | Avant l'ouverture | -| Avertissement au Runner particulier et choix du statut dans le formulaire de dépôt d'annonce | D111-8 II | Haute | | Retirer l'écran de verrouillage développeur | — | Avant l'ouverture | ## 4. Obligations hors site (organisation) diff --git a/index.html b/index.html index 4912705..9c88426 100644 --- a/index.html +++ b/index.html @@ -499,6 +499,24 @@ + +
+ Vous proposez ce service en tant que +
+ + +
+ +
+
@@ -3397,6 +3415,8 @@ editingAdId = null; const form = document.getElementById('add-ad-form'); if (form) form.reset(); + const sellerWarning = document.getElementById('add-seller-warning'); + if (sellerWarning) sellerWarning.classList.add('hidden'); const heading = document.getElementById('add-view-heading'); const subheading = document.getElementById('add-view-subheading'); const submitLabel = document.getElementById('add-submit-label'); @@ -3440,9 +3460,13 @@ const category = categoriesData.find(c => c.id === catId) || categoriesData[0]; // Mode modification d'une annonce existante (editOwnAd) + const sellerTypeInput = document.querySelector('input[name="add-seller-type"]:checked'); + const sellerType = sellerTypeInput ? sellerTypeInput.value : undefined; + if (editingAdId) { const adToUpdate = myUserAds.find(a => a.id === editingAdId) || runners.find(r => r.id === editingAdId); if (adToUpdate) { + adToUpdate.sellerType = sellerType; adToUpdate.title = title; adToUpdate.categoryId = category.id; adToUpdate.categoryName = category.name; @@ -3457,6 +3481,7 @@ const runnerMatch = runners.find(r => r.id === editingAdId); if (runnerMatch && runnerMatch !== adToUpdate) { + runnerMatch.sellerType = sellerType; runnerMatch.title = title; runnerMatch.categoryId = category.id; runnerMatch.categoryName = category.name; @@ -3496,6 +3521,7 @@ price: price, time: time, passType: currentUser.passType, + sellerType: sellerType, isRecommended: (currentUser.rating >= 4.8 && currentUser.reviews > 15), city: 'Paris', cluster: 'Paris', @@ -3781,6 +3807,10 @@ editingAdId = ad.id; + document.querySelectorAll('input[name="add-seller-type"]').forEach(r => { r.checked = (r.value === ad.sellerType); }); + const sellerWarning = document.getElementById('add-seller-warning'); + if (sellerWarning) sellerWarning.classList.toggle('hidden', ad.sellerType !== 'particulier'); + // Pré-remplir le formulaire view-add const titleInput = document.getElementById('add-title'); const catSelect = document.getElementById('add-category');