Skip to content

refactor(web): drop window.__pluginStore, dedup NetworkView; tune graph visuals#106

Merged
Xinze-Li-Moqian merged 1 commit into
mainfrom
chore/networkview-cleanup-visuals
Jun 28, 2026
Merged

refactor(web): drop window.__pluginStore, dedup NetworkView; tune graph visuals#106
Xinze-Li-Moqian merged 1 commit into
mainfrom
chore/networkview-cleanup-visuals

Conversation

@Xinze-Li-Moqian

Copy link
Copy Markdown
Contributor

Web-only. Builds on #105.

Cleanup

  • Read LeanNets graph settings from usePluginStore (zustand) instead of the redundant window.__pluginStore global mirror; remove the mirror writes (no more readers anywhere).
  • Extract readMnSettings / makeClusterForce / propagateAtomColors — removes three duplicated blocks across the load + style effects (incl. a stray mis-indent).

Visuals

  • Nodes fully opaque (drop the 0.6 dim on non-selected) and higher saturation (sortColors + skeleton palettes → sat 72–94%, light 50–61%).
  • Thinner links; larger nodes so node:link ratio reads ~1/6 (degreeRadius base 8→12, uniform 6→9, normalize [3,14]→[4,16]).

tsc clean; 142/142 tests pass.

…ph visuals

Cleanup:
- Read LeanNets graph settings from usePluginStore (zustand) instead of the
  redundant window.__pluginStore global mirror; remove the mirror writes.
- Extract readMnSettings/makeClusterForce/propagateAtomColors to remove three
  duplicated blocks across the load and style effects.

Visuals:
- Nodes are fully opaque (drop the 0.6 dim on non-selected) and higher
  saturation (sortColors + skeleton palettes: sat 72-94%, light 50-61%).
- Thinner links; larger node radius so node:link ratio reads ~1/6
  (degreeRadius base 8->12, uniform 6->9, normalize [3,14]->[4,16]).
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-ga Ready Ready Preview, Comment Jun 28, 2026 11:22pm

Request Review

@Xinze-Li-Moqian Xinze-Li-Moqian merged commit d637ff7 into main Jun 28, 2026
3 of 5 checks passed
@Xinze-Li-Moqian Xinze-Li-Moqian deleted the chore/networkview-cleanup-visuals branch June 28, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant