Skip to content

Commit 7a3e2e3

Browse files
TheSmallPixelclaude
andcommitted
refactor: extract graph models, remove dead code, drop enhanced experiment
- D3Graph, D3Node, D3Link moved to GraphModels.cs - Removed UnusedElementsTest dummy class (dead code) - Removed unused Newtonsoft.Json import from walker - Deleted broken enhanced_* visualization files (no live JS existed) - Simplified action.yml index-copy step (removed dead enhanced blocks) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6a7bc52 commit 7a3e2e3

5 files changed

Lines changed: 30 additions & 858 deletions

File tree

action.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -52,47 +52,16 @@ runs:
5252
run: |
5353
DOCS_DIR="${{ inputs.docs-dir }}"
5454
INDEX_FILE="${{ inputs.index-file }}"
55-
5655
ACTION_REPO_DIR="${{ github.action_path }}"
5756
DEFAULT_INDEX="$ACTION_REPO_DIR/default_index.html"
5857
TARGET_FILE="${DOCS_DIR}/${INDEX_FILE}"
5958
60-
echo "docs-dir: $DOCS_DIR"
61-
echo "index-file: $INDEX_FILE"
62-
echo "Action path: $ACTION_REPO_DIR"
63-
echo "Copying from: $DEFAULT_INDEX"
64-
echo "Target file: $TARGET_FILE"
65-
6659
if [ ! -f "$TARGET_FILE" ]; then
67-
echo "No index file found in user repo. Copying default_index.html..."
60+
echo "No index file found. Copying default visualizer..."
6861
mkdir -p "$(dirname "$TARGET_FILE")"
6962
cp "$DEFAULT_INDEX" "$TARGET_FILE"
70-
71-
# Also copy enhanced visualization files if they exist in the action repo
72-
ENHANCED_INDEX="$ACTION_REPO_DIR/docs/enhanced_index.html"
73-
ENHANCED_JS="$ACTION_REPO_DIR/docs/enhanced_visualizer.js"
74-
75-
if [ -f "$ENHANCED_INDEX" ]; then
76-
echo "Copying enhanced visualization files..."
77-
cp "$ENHANCED_INDEX" "${DOCS_DIR}/enhanced_index.html"
78-
cp "$ENHANCED_JS" "${DOCS_DIR}/enhanced_visualizer.js"
79-
echo "Enhanced visualization available at: ${DOCS_DIR}/enhanced_index.html"
80-
fi
8163
else
8264
echo "Index file already exists. Not overwriting."
83-
84-
# Still copy enhanced visualization if it doesn't exist
85-
if [ ! -f "${DOCS_DIR}/enhanced_index.html" ]; then
86-
ENHANCED_INDEX="$ACTION_REPO_DIR/docs/enhanced_index.html"
87-
ENHANCED_JS="$ACTION_REPO_DIR/docs/enhanced_visualizer.js"
88-
89-
if [ -f "$ENHANCED_INDEX" ]; then
90-
echo "Copying enhanced visualization files..."
91-
cp "$ENHANCED_INDEX" "${DOCS_DIR}/enhanced_index.html"
92-
cp "$ENHANCED_JS" "${DOCS_DIR}/enhanced_visualizer.js"
93-
echo "Enhanced visualization available at: ${DOCS_DIR}/enhanced_index.html"
94-
fi
95-
fi
9665
fi
9766
shell: bash
9867

docs/enhanced_index.html

Lines changed: 0 additions & 251 deletions
This file was deleted.

0 commit comments

Comments
 (0)