Show Action on finding cards and inject PCB geometry into AI context.
Layout and AI findings always get action (fallback recommendation). The card renders that sentence in the body. PCB review context now includes vias under the footprint, copper thickness, nearby widths, courtyard, and keepout polygons.
This commit is contained in:
@@ -143,6 +143,21 @@ def test_empty_recommendation_gets_action():
|
||||
assert f.recommendation.strip() == f.action.strip()
|
||||
|
||||
|
||||
def test_pcb_review_ai_finding_action_without_recommendation():
|
||||
f = Finding(
|
||||
designator="U1",
|
||||
finding="PowerPAD vias",
|
||||
why="thermal pad",
|
||||
status="INFO",
|
||||
source="pcb_review",
|
||||
recommendation="",
|
||||
action="",
|
||||
)
|
||||
complete_finding(f)
|
||||
assert f.action.strip()
|
||||
assert f.finding_class == "REVIEW"
|
||||
|
||||
|
||||
def test_recommended_rc_cap_is_review_not_rule():
|
||||
f = Finding(
|
||||
designator="C1",
|
||||
|
||||
Reference in New Issue
Block a user