Code RoomActivity feed missing states
MediumPrep Room Coding #4449

Activity feed missing states

Vibe & agenticAlgorithms & data structuresMid–Senior~14 min

An AI agent built this 'recent activity' panel for a dashboard. It works great in the AI's demo, which had three seeded items. What states is it missing, and how would each one feel to a real user?

Implement
resolve_feed_state(status: str, item_count: int, error_message: str) → str
Examples
in["loading",0,""]out"loading"
in["success",3,""]out"loaded"
in["success",0,""]out"empty"
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 14 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.