Skip to content

#700 [ReedCRM] feat: vue d'ensemble matricielle des opportunités - #730

Open
nicolas-eoxia wants to merge 2 commits into
Eoxia:developfrom
nicolas-eoxia:add/700-project-overview-matrix
Open

nicolas-eoxia wants to merge 2 commits into
Eoxia:developfrom
nicolas-eoxia:add/700-project-overview-matrix

Conversation

@nicolas-eoxia

Copy link
Copy Markdown
Member

Objectif

Référence #700 — 2ᵉ POC : voir en un coup d'œil la chaîne commerciale (opportunité → encaissement) de plusieurs projets sous forme de matrice (pièces en lignes, projets en colonnes).

Contenu

  • Nouvelle page PWA view/frontend/pwa_projets_overview.php : même recherche / filtre / pagination que pwa_projets.php, rendu en matrice.
  • Couche données : flag $includeAll sur reedcrm_get_pwa_projects_documents() — chaque pièce porte aussi la liste ['all'] de tous ses documents (le dernier reste le représentatif). Défaut false → comportement liste/barre/procard/hook inchangé.
  • Calcul de chaîne réutilisé (reedcrm_compute_opportunity_chain) : couleur d'état done/current/todo + badges d'incohérence, comme la barre horizontale.
  • Template reedcrm_opportunity_chain_matrix.tpl.php : en-têtes collants, compteur + puces docs par cellule, option « icônes seules » respectée.
  • Styles : helper inline reedcrm_chain_matrix_styles() (pas de build CSS, aucun JS).
  • Bouton bascule « Liste ⇄ Matrice » dans le header des deux pages (conserve s + page).
  • i18n fr_FR + en_US (parité).

Hors périmètre

  • Ligne « Fabrication » du mockup (aucune pièce configurée) ; pas de nouvelle entrée dans la nav du bas.

Tests

  • Playwright (compte de test) : matrice rendue (5 pièces × 15 projets = 75 cellules), en-tête « Étape », bascule fonctionnelle dans les deux sens.
  • Non-régression : liste PWA et barres horizontales inchangées.

🤖 Generated with Claude Code

nicolas-eoxia and others added 2 commits June 3, 2026 17:59
… helper

Add an optional $includeAll flag to reedcrm_get_pwa_projects_documents:
each piece key then also carries an 'all' list of every document of that
type (the top-level fields stay the latest one). Default false keeps the
existing list/bar/procard/overview-hook behaviour unchanged.

Add reedcrm_chain_matrix_styles() (emit-once, like the bar styles helper)
for the matrix grid, reusing the is-done/is-current/has-warn/has-err tokens.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New page view/frontend/pwa_projets_overview.php: opportunity->payment
chain as a matrix (pieces = rows, projects = columns), reusing the same
search/filter/pagination as pwa_projets.php and the existing chain-state
computation. Each cell lists all documents of the type with a counter,
colored by chain state and flagging inconsistencies, like the chain bar.

Add a list <-> matrix toggle button in the header of both pages (carries
s + page), and the fr_FR/en_US translations (parity).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant