#700 [ReedCRM] feat: vue d'ensemble matricielle des opportunités - #730
Open
nicolas-eoxia wants to merge 2 commits into
Open
nicolas-eoxia wants to merge 2 commits into
nicolas-eoxia wants to merge 2 commits into
Conversation
… 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>
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.
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
view/frontend/pwa_projets_overview.php: même recherche / filtre / pagination quepwa_projets.php, rendu en matrice.$includeAllsurreedcrm_get_pwa_projects_documents()— chaque pièce porte aussi la liste['all']de tous ses documents (le dernier reste le représentatif). Défautfalse→ comportement liste/barre/procard/hook inchangé.reedcrm_compute_opportunity_chain) : couleur d'état done/current/todo + badges d'incohérence, comme la barre horizontale.reedcrm_opportunity_chain_matrix.tpl.php: en-têtes collants, compteur + puces docs par cellule, option « icônes seules » respectée.reedcrm_chain_matrix_styles()(pas de build CSS, aucun JS).s+page).Hors périmètre
Tests
🤖 Generated with Claude Code