pf_app
Go to file
Paul Trowbridge 81c2324220 Expose load segments and adjustment notes as separate pivot columns
The label on a baseline or reference load ("Open Orders", "Prior Year")
lived only on the pf.log row; the data stream was a straight dump of the
forecast table, so Perspective saw pf_logid and never the name.

The stream now joins pf.log and emits two columns rather than one, because
commingling them makes neither useful: pf_segment names the load a row came
from, and is '(adjustment)' for everything else; pf_note carries the free
text on scale/recode/clone and is null on loads. The operation routes stamp
the same two fields on the rows they push back incrementally.

The tag column those labels belong in is declared in 01_schema.sql but
predates some installs, so the backfill seeding it from note joins the
ALTER already there. Adjustment notes are free text, not labels, and are
left alone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 17:42:22 -04:00
lib Carry every date and value column on baseline and reference loads 2026-09-16 17:42:14 -04:00
public Add UX mockup and update spec with navigation direction 2026-04-25 14:56:29 -04:00
routes Expose load segments and adjustment notes as separate pivot columns 2026-09-16 17:42:22 -04:00
setup_sql Expose load segments and adjustment notes as separate pivot columns 2026-09-16 17:42:22 -04:00
ui Re-check the selected source and version against the live list 2026-09-15 21:31:07 -04:00
.env.example Put the app behind a login 2026-09-14 22:20:25 -04:00
.gitignore Scaffold React/Vite/Tailwind UI with 3-step Setup → Baseline → Forecast flow 2026-04-25 16:28:45 -04:00
CLAUDE.md Re-check the selected source and version against the live list 2026-09-15 21:31:07 -04:00
install.sh Put the app behind a login 2026-09-14 22:20:25 -04:00
package-lock.json Put the app behind a login 2026-09-14 22:20:25 -04:00
package.json Put the app behind a login 2026-09-14 22:20:25 -04:00
PERSPECTIVE.md Load Perspective from bundle, not CDN; pin all packages at 5.2.0 2026-08-17 21:30:19 -04:00
pf_perspective_options.md Record DuckDB virtual-server spike findings; choose display-grain pre-aggregation 2026-08-17 21:47:55 -04:00
pf_spec.md Merge perspective-inline-5.2.0: 5.2.0 pin, multi-slice ops, bridge, drag-select 2026-09-12 09:11:11 -04:00
pf.sh Put the app behind a login 2026-09-14 22:20:25 -04:00
server.js Put the app behind a login 2026-09-14 22:20:25 -04:00