Skip to content

feat(graph): Sectivia supply-chain ingest + GUI Graph window - #14

Merged
OmarAlaaeldein merged 2 commits into
mainfrom
feat/gui-stock-graph
Sep 10, 2026
Merged

feat(graph): Sectivia supply-chain ingest + GUI Graph window#14
OmarAlaaeldein merged 2 commits into
mainfrom
feat/gui-stock-graph

Conversation

@OmarAlaaeldein

Copy link
Copy Markdown
Owner

Summary

  • Ingest Sectivia supplier→customer CSVs (CC BY 4.0) from data/sectivia/ into StockGraph as SUPPLIER_TO + reverse CUSTOMER_OF, with offline cache + refresh_sectivia_cache().
  • Union-merge with curated core/graph_data.py: duplicate (source, target, relation) keeps curated; Sectivia-only edges added at weight 0.85.
  • Wire Graph button in Tk GUI (peers, short 1mo divergence, Open 2D/3D HTML via temp file + browser). Shared helpers in core/graph_service.py.
  • Modest curated edge fills (auto SiC/NXP, energy PPAs, cloud/semi). Docs: docs/GRAPH_DATA.md + README attribution.

How to open graph from GUI

  1. Launch GUI (python sentinel.py), load a ticker.
  2. Click Graph next to News.
  3. Use Open 2D HTML / Open 3D HTML for Plotly export in the browser; double-click a peer to load it.

Attribution

Supply-chain data: Sectivia (https://sectivia.com), CC BY 4.0

Test plan

  • pytest (fixture-based Sectivia import; live refresh gated by SENTINEL_TEST_NETWORK=1)
  • Manual: Graph window on AMD/NVDA; HTML opens; attribution visible in footer/docs

OmarAlaaeldein and others added 2 commits September 10, 2026 14:50
Merge CC BY 4.0 Sectivia supplier→customer CSVs (cached under data/sectivia/)
into the curated StockGraph with union/prefer-curated conflict policy. Add
shared graph helpers, Tk Graph/Peers window (2D/3D HTML export), docs, and
fixture-based importer tests.
@OmarAlaaeldein
OmarAlaaeldein merged commit b1f2db5 into main Sep 10, 2026
1 check passed
@OmarAlaaeldein
OmarAlaaeldein deleted the feat/gui-stock-graph branch September 10, 2026 14:57
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