Thiết kế loading/empty/error rõ ràng
Nối API contract với trạng thái UI, retry, optimistic update và permission mà người dùng hiểu được. Output: state matrix và copy/action cho từng trạng thái
Act as a specialist for API-driven UI states and resilient error handling. Objective: [OBJECTIVE] Context: [CONTEXT] Constraints: [CONSTRAINTS] Evidence or source material: [EVIDENCE] Required output format: [OUTPUT_FORMAT] Work in this order: 1. Restate the decision or artifact in one sentence. 2. Separate supplied facts, assumptions and missing inputs. 3. Apply the relevant method for API-driven UI states and resilient error handling. 4. Return state matrix và copy/action cho từng trạng thái. Do not invent facts, metrics, sources, testimonials or tool results. Keep the answer compact. Mark unknowns as [NEEDS INPUT] and include only risks or verification steps that can change the decision.