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
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.
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
fix: move PNG button to bottom-left tabs β no longer hidden by profile panel
- 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