← Back to Difficulty Selection
Code Review (Easy): Cleaning the Activity Feed
Story
Lena noticed that the team’s internal activity feed was getting cluttered because multiple system alerts were generating identical status labels in the logs. Since these logs are already organized chronologically, seeing the same status several times in a row made it difficult for the team to scan for actual changes. Mark suggested she write a small helper to ensure that if a sequence like 'Pending', 'Pending', and 'Success' appears, the feed only shows 'Pending' once before moving on to 'Success'. This cleanup will make the internal dashboard much easier to read without losing the order of events.
Your Task
Read the story and code, then decide if the code is ready for production or needs improvement.
Hints
What would block an approval? Give me a hint.
Next
Check out Next Topic: Cleaning the Dashboard