@@ -288,13 +288,13 @@ def build_dashboard(
288288 qty = positions [symbol ]["quantity" ]
289289 avg = positions [symbol ]["avg_cost" ]
290290 market_value = qty * avg
291- position_lines .append (f" { symbol } : { qty } 股 ${ market_value :,.2f} " )
291+ position_lines .append (f" - { symbol } : { qty } 股 | ${ market_value :,.2f} " )
292292 position_text = "\n " .join (position_lines ) if position_lines else translator ("empty_positions" )
293293 signal_metadata = signal_metadata or {}
294294 allocation = _resolve_weight_allocation (signal_metadata , required = False )
295295 target_lines = []
296296 for symbol , weight in sorted (allocation .get ("targets" , {}).items (), key = lambda item : (- item [1 ], item [0 ])):
297- target_lines .append (f" { symbol } : { weight :.1%} " )
297+ target_lines .append (f" - { symbol } : { weight :.1%} " )
298298 target_text = "\n " .join (target_lines ) if target_lines else translator ("empty_target_weights" )
299299 regime = signal_metadata .get ("regime" )
300300 breadth_ratio = signal_metadata .get ("breadth_ratio" )
@@ -323,14 +323,19 @@ def build_dashboard(
323323 else None ,
324324 translator ("snapshot_as_of_detail" , value = _format_text (snapshot_as_of , fallback = "<none>" )) if snapshot_as_of else None ,
325325 ]
326- diagnostics_text = " | " .join (part for part in diagnostics if part )
326+ diagnostics_lines = [f" - { part } " for part in diagnostics if part ]
327+ diagnostics_text = "\n " .join (diagnostics_lines )
327328 localized_status_desc = _localize_notification_text (status_desc , translator = translator )
328329 localized_signal_desc = _localize_notification_text (signal_desc , translator = translator )
329330 return (
330- f"{ translator ('equity' )} : ${ equity :,.2f} | { translator ('buying_power' )} : ${ buying_power :,.2f} \n "
331+ f"{ translator ('account_summary_title' )} \n "
332+ f" - { translator ('equity' )} : ${ equity :,.2f} \n "
333+ f" - { translator ('buying_power' )} : ${ buying_power :,.2f} \n "
331334 f"{ separator } \n "
335+ f"{ translator ('positions_title' )} \n "
332336 f"{ position_text } \n "
333337 f"{ separator } \n "
338+ f"{ translator ('execution_summary_title' )} \n "
334339 f"{ diagnostics_text } \n "
335340 f"{ separator } \n "
336341 f"{ status_icon } { localized_status_desc } \n "
0 commit comments