flowchart TD
Start(["Reported issue:
missing / wrong / rejected statements"]):::start
Q1{"Statements visible in
DevTools Network panel?"}:::decision
NoNet["Bug is in component or
client library — check Console"]:::fix
Q2{"Is the request body
correct?"}:::decision
BadBody["Bug in statement builder —
fix the builder"]:::fix
Q3{"Is response status 2xx?"}:::decision
Reached["Statement reached LRS —
investigate LRS-side issues"]:::done
Q4{"Is response status 4xx?"}:::decision
Client4xx["Read response body —
fix client based on error"]:::fix
LRS5xx["LRS-side issue —
check LRS logs"]:::fix
Start --> Q1
Q1 -- No --> NoNet
Q1 -- Yes --> Q2
Q2 -- No --> BadBody
Q2 -- Yes --> Q3
Q3 -- Yes --> Reached
Q3 -- No --> Q4
Q4 -- Yes --> Client4xx
Q4 -- No --> LRS5xx
click Start call showStep("Start")
click Q1 call showStep("Q1")
click NoNet call showStep("NoNet")
click Q2 call showStep("Q2")
click BadBody call showStep("BadBody")
click Q3 call showStep("Q3")
click Reached call showStep("Reached")
click Q4 call showStep("Q4")
click Client4xx call showStep("Client4xx")
click LRS5xx call showStep("LRS5xx")
classDef start fill:#1e293b,stroke:#0f172a,color:#fff,font-weight:bold
classDef decision fill:#ca8a04,stroke:#854d0e,color:#fff
classDef fix fill:#dc2626,stroke:#7f1d1d,color:#fff
classDef done fill:#16a34a,stroke:#14532d,color:#fff
linkStyle default stroke:#64748b,stroke-width:2px