feat(companies): onglet Marches publics par compte, retire la page globale - #23
Merged
Merged
Conversation
…obale Remplace la page globale /marches-publics (mauvaise portee -- liste brute non filtree) par un onglet sur la fiche Company, cote a cote avec l'onglet Agent. Filtre les marches par le SIREN du compte (l'acheteur public), avec un statut metier : En cours (active), Notifie (awarded), Prevu (previsionnel -- avis de preinformation, notice_kind pin-*), Tous (aucun filtre de statut). Cote tRPC (tenders.listOuverts) : ajoute siren/status en entree, transmis tels quels a GET /api/v1/tenders cote api_v2 (deja deploye avec ces deux filtres). Changement de comportement assume : le client ne force plus status="active" en dur -- necessaire pour que "Tous" signifie reellement aucun filtre, cote api_v2 l'absence du parametre equivaut a pas de filtre de statut. Verifie qu'aucun autre appelant ne dependait de ce comportement implicite (seule la page supprimee l'utilisait). CompanyTendersPanel : garde explicite sur SIREN absent (etat vide, pas un appel API avec parametre vide), reprend le decoupage Panel/LoadedPanel deja utilise par AgentPanel. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6yNGEKWRMLZrVyjCrD61G
lint:slop refusait le typeof runtime sur l'entree fetch (remplace par instanceof Request) et deux annotations de type ouvertes qui elargissaient une valeur deja connue (STATUS_LABELS, FetchStub) -- satisfies/type nomme preservent l'inference stricte. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6yNGEKWRMLZrVyjCrD61G
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opened automatically when
feat/company-tenders-tabwas pushed.The title is written from the diff and rewritten as you push, because this is squashed onto
mainand the title becomes the commit subject and the changelog line. Retitle it yourself and it is yours — the automation stops touching it.