From Gateway Rows to AG Grid and AG Charts

From Gateway Rows to AG Grid and AG Charts A data-flow diagram generated by Archify. 01 / Gateway sources 02 / Server judges 03 / Rows the page holds 04 / Shapers in lib/ 05 / AG Grid & AG Charts POST /api/agent · Gemini parser + judge · 01 / Gateway sources · typed or spoken POST /api/agent Gemini parser + judge typed or spoken PayPal · sandbox · capture · 01 / Gateway sources · live API · PayPal PayPal sandbox · capture live API Server judges · ceiling · window · mode · 02 / Server judges · before any money Server judges ceiling · window · mode before any money Ledger · store.json + lib/history · 03 / Rows the page holds · persisted Ledger store.json + lib/history persisted Policy rows · orders on the table · 03 / Rows the page holds · the charts' source Policy rows orders on the table the charts' source lib/gridColumns · typed column defs · 04 / Shapers in lib/ · pure lib/gridColumns typed column defs pure lib/moneyInFlight · sums rows by state · 04 / Shapers in lib/ · pure lib/moneyInFlight sums rows by state pure lib/activityByType · sums by kind of spend · 04 / Shapers in lib/ · pure lib/activityByType sums by kind of spend pure JsonGrid · AG Grid · /activity · 05 / AG Grid & AG Charts · ledger as columns JsonGrid AG Grid · /activity ledger as columns Money in flight · AG Charts · stacked bar · 05 / AG Grid & AG Charts · click opens rows Money in flight AG Charts · stacked bar click opens rows Where money went · sum bars · /activity · 05 / AG Grid & AG Charts · per kind Where money went sum bars · /activity per kind AgentGrid · AG Grid · /overview · 05 / AG Grid & AG Charts · one row per order AgentGrid AG Grid · /overview one row per order parsed intent ceiling · condition · dates a row only if judged ceiling · window · mode holds · captures · refusals authoritative result policy rows back hydrated in the browser entries become columns read-only view columnDefsFor(entries) AG Grid columns rows by state no side effects one series per segment stacked series settled · released · refused no side effects total per kind bar width only the orders it renders server verdict already applied Legend primary data async batch data store data flow

What the grids read

  • • AgentGrid is the orders table: every row arrives with the server's verdict applied
  • • JsonGrid renders the ledger as typed columns built by lib/gridColumns
  • • ProjectGrid lists the shipped seed campaigns; pledges settle through the ledger

What the charts draw

  • • Money in flight stacks one AG Charts series per state over the same policy rows
  • • Where the money went sums settled, released and refused by kind
  • • The crowdfunding rail adds a donut and a future-value curve over campaign rows

Nothing is drawn before it is judged

  • • A row exists only after the server judged ceiling, window, mode and endpoint
  • • Charts and grids read those rows; neither of them computes a verdict
  • • Clicking a segment or a bar opens the rows it was summed from