JM's first test (2026-11-30): picking a folder left users without
guidance, so the user now picks the master file itself; the window
opens where the last master was.
Names could stick out of the network area (Henkel 55, DECODE 21 of 86
slides) and ran into the legend and the subline; the layout now keeps
every name inside. The Henkel legend sits where JM placed it, the
network uses the room above it, and the Henkel legend says
"psychological", taken from the reporting tool's Henkel terms.
7 days ago
fix: pin pyarrow below 26 so the Space starts again (#7)
The Space runs Streamlit 1.28, which keeps NumPy below 2. pyarrow 26 (October 2026) needs NumPy 2, so every rebuild since then fails at start. The July build ran on pyarrow 25.
feat: export every attribute's network to PowerPoint from the HTML (#6)
Teams exported one PNG per attribute by hand. The HTML now writes one
native slide per listed attribute (dots, names, lines; style C agreed
with JM) on the client's own master: DECODE/P&G, Henkel or REWE.
The masters stay out of the repo and the public Space: users pick the
"network masters" folder once, the browser remembers it.
scripts/make_network_masters.py builds the masters from the reporting
tool's frames.
style: satisfy ruff on build_network.py
Florian Weinert
9c71687
Two pre-existing issues, surfaced by CI because the language gate runs on
changed files and the previous commit touched this one:
- I001: import block was never grouped stdlib / third-party / first-party
- W605: the JS regex /\s+/ inside the generated-HTML f-string is an
invalid Python escape sequence
The W605 fix is output-neutral. In a non-raw string, \\s emits the same
literal backslash-s that the invalid \s already emitted, so the generated
JavaScript is unchanged — verified by regenerating from a real client file
and diffing byte for byte. Every other backslash construct in that
template already used the doubled form, so this was the lone exception.
fix: read attribute associations down their own column
Florian Weinert
06b14a4
The deviation matrix is asymmetric: cell (row=A, col=B) differs from
(row=B, col=A). The sparse map stored only the upper triangle and took the
cell whose row was the alphabetically later of the two names, so which of
the two values reached the graph depended on where the English label fell
in the alphabet.
On a 78-attribute client file this made 121 of 3003 pairs (4.0%) appear or
vanish by that accident, affecting 74 attributes, and mixed both readings
within a single attribute's edge list.
Store both directions keyed "source,target" and make getCorr directional;
the source attribute supplies the column. Both existing call sites already
passed the source first, so level 1 and level 2 needed no change.
Verified against the domain expert's expected top 5 for one attribute, in a
real browser with vis-network: exact match, no console errors.
docs: add github-security-posture per decode-ai-standards
FloWeinert
233df12
ci: add CODEOWNERS for restructure
FloWeinert
ae32396
docs(skills): drop broken links in tdd (synced from wiki)
Same shape as prior ports. Brings this branch up to PBI_team_utils/master.
Hardening files byte-identical. Kleo's network_html "## This repo"
section preserved: correlation-network-viz Streamlit app, HF Spaces
auto-deploy, sample_data/ gitignored (customer data), HF_TOKEN secret,
the known-quirks section about CORR_THRESHOLD and per-brand matrices.
Reviewer subagent ran before commit and reported clean. Two untracked
HTML test artifacts in the working tree were deliberately NOT staged —
they are Juliane's test output, not part of this change.
feat: add DECODE Claude Code hardening gates
Kleopatra Jäger
cef5222
Adds reviewer-marker gate, language gate (ruff/Python), hooks, and CI
backstop from decode-claude-wiki template. Tier: python.
Previous CLAUDE.md backed up as CLAUDE.md.bak; content merged into new template.
feat: add Velocity data source for correlation networks
Replace pre-computed per-driver node/edge arrays with sparse correlation
matrix embedded in HTML. Networks are now built client-side in JS,
enabling a connections dropdown (2-6, default 5) in the sidebar.
HTML output shrinks from ~1,450 KB to ~55-70 KB.
Project detail fields (client, brand, country, category) are now
optional. When empty, falls back to uploaded filename for title.
feat: add emotional/functional type filter to sidebar
- Escape user inputs and attribute names in HTML (XSS prevention)
- Secure JSON in script blocks against </script> injection
- Add JS esc() helper for all innerHTML insertions
- Hoist focus state to module scope so profile close clears it
- Fix driver code extraction to break on non-string values
- Remove dead numpy import from parse_excel
- Clarify auto-detected classification counts in UI
feat: detect reward territories from Excel instead of hardcoding
Reads "per reward field" header in row 4 to find territory columns,
then extracts territory names from row 5. Falls back to default list
if detection fails. Removes REWARDS_FACTORS from config.py.
- Dockerfile: point entrypoint to app.py, copy module files instead of src/
- Add GitHub Actions workflow to sync main → HF Spaces on push
- HF Space: DecodeMarketing/Correlation-network
- Replace Select2 dropdown with collapsible left sidebar panel
- Attributes listed with colored dot, name, and category index
- Sortable by Index (desc, default) or Name (alpha), with search filter
- Add DECODE logo (inline SVG) to header
- Bold attribute names and index in sidebar
- Fix edge hover color (add 'hover' property so connected edges stay colored)
- Increase node font sizes (L0: 18, L1: 16, L2: 15, scaling 15-20)
- Remove jQuery/Select2 dependencies