Skip to content

Commit 5490fd4

Browse files
committed
Format code and update snapshots after merge
1 parent ef4b819 commit 5490fd4

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

src/claude_code_transcripts/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,11 @@ def generate_html(json_path, output_dir, github_repo=None):
15081508
paired_tool_ids = set()
15091509
for log_type, message_data, timestamp in parsed_messages:
15101510
msg_html = render_message_with_tool_pairs(
1511-
log_type, message_data, timestamp, tool_result_lookup, paired_tool_ids
1511+
log_type,
1512+
message_data,
1513+
timestamp,
1514+
tool_result_lookup,
1515+
paired_tool_ids,
15121516
)
15131517
if msg_html:
15141518
# Wrap continuation summaries in collapsed details
@@ -2002,7 +2006,11 @@ def generate_html_from_session_data(session_data, output_dir, github_repo=None):
20022006
paired_tool_ids = set()
20032007
for log_type, message_data, timestamp in parsed_messages:
20042008
msg_html = render_message_with_tool_pairs(
2005-
log_type, message_data, timestamp, tool_result_lookup, paired_tool_ids
2009+
log_type,
2010+
message_data,
2011+
timestamp,
2012+
tool_result_lookup,
2013+
paired_tool_ids,
20062014
)
20072015
if msg_html:
20082016
# Wrap continuation summaries in collapsed details

tests/__snapshots__/test_generate_html/TestGenerateHtml.test_generates_index_html.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
.tool-description { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; font-style: italic; }
4141
.tool-result { background: var(--tool-result-bg); border-radius: 8px; padding: 12px; margin: 12px 0; }
4242
.tool-result.tool-error { background: var(--tool-error-bg); }
43+
.tool-pair { border: 1px solid var(--tool-border); border-radius: 8px; padding: 8px; margin: 12px 0; background: rgba(156, 39, 176, 0.06); }
44+
.tool-pair .tool-use, .tool-pair .tool-result { margin: 8px 0; }
4345
.file-tool { border-radius: 8px; padding: 12px; margin: 12px 0; }
4446
.write-tool { background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%); border: 1px solid #4caf50; }
4547
.edit-tool { background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%); border: 1px solid #ff9800; }

tests/__snapshots__/test_generate_html/TestParseSessionFile.test_jsonl_generates_html.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
.tool-description { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; font-style: italic; }
4141
.tool-result { background: var(--tool-result-bg); border-radius: 8px; padding: 12px; margin: 12px 0; }
4242
.tool-result.tool-error { background: var(--tool-error-bg); }
43+
.tool-pair { border: 1px solid var(--tool-border); border-radius: 8px; padding: 8px; margin: 12px 0; background: rgba(156, 39, 176, 0.06); }
44+
.tool-pair .tool-use, .tool-pair .tool-result { margin: 8px 0; }
4345
.file-tool { border-radius: 8px; padding: 12px; margin: 12px 0; }
4446
.write-tool { background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%); border: 1px solid #4caf50; }
4547
.edit-tool { background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%); border: 1px solid #ff9800; }

tests/test_generate_html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def test_strips_osc_st_terminator(self):
408408
text = "name\x1b]0;Title\x1b\\end"
409409
assert strip_ansi(text) == "nameend"
410410

411+
411412
class TestAnalyzeConversation:
412413
"""Tests for conversation analysis."""
413414

0 commit comments

Comments
 (0)