Skip to content

Commit 2b486da

Browse files
committed
add panel
1 parent 9c37f96 commit 2b486da

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,9 +1250,21 @@ def process_review(
12501250
response = create_staging(**data)
12511251
if response.status_code == 200:
12521252
staging_url = f"https://app.codeflash.ai/review-optimizations/{self.function_trace_id[:-4] + exp_type if self.experiment_id else self.function_trace_id}"
1253-
console.print(f"[bold green]✅ Staging created:[/bold green] [link={staging_url}]{staging_url}[/link]")
1253+
console.print(
1254+
Panel(
1255+
f"[bold green]✅ Staging created:[/bold green]\n[link={staging_url}]{staging_url}[/link]",
1256+
title="Staging Link",
1257+
border_style="green"
1258+
)
1259+
)
12541260
else:
1255-
console.print(f"[bold red]❌ Failed to create staging [/bold red] — status {response.status_code}")
1261+
console.print(
1262+
Panel(
1263+
f"[bold red]❌ Failed to create staging[/bold red]\nStatus: {response.status_code}",
1264+
title="Staging Error",
1265+
border_style="red"
1266+
)
1267+
)
12561268

12571269
else:
12581270
# Mark optimization success since no PR will be created

0 commit comments

Comments
 (0)