Update UI state

Update UI state in JavaScript — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
The dashboard's filters must reflect the current selection immediately. When a user toggles any…
The dashboard's filters must reflect the current selection immediately. When a user toggles any filter control, update the UI state object filters.selected and re-render the list with the new predicate. Debounce the heavy list render by 150ms but ensure the filter controls show their active state instantly. If the new filter yields zero results, show a contextual message guiding the user to broaden filters.

Improve — make it easier to accept

+
Before I ship the filter UI, make the active choices readable at a glance. Move the summary of…
Before I ship the filter UI, make the active choices readable at a glance. Move the summary of applied filters to the top, expose the total result count, and make the primary filter control visually dominant. Flag any filter combinations that will trigger a full data fetch or that disable client-side caching so the reviewer knows where performance will degrade.

Decide — diagnose the stuck moment

+
I clicked the 'Only open tasks' toggle; the button showed active but the task list still showed…

I toggled a filter and the list didn't update, but controls appeared active

I clicked the 'Only open tasks' toggle; the button showed active but the task list still showed closed items and the count didn't change. My peers will say the UI is broken. I can't tell if the state object didn't update, the render was skipped, or the filter predicate is wrong. What's the most likely failure mode and the step I should check first to isolate it within 10 minutes?

Become — change the pattern

+
Across multiple features, rapid sequence interactions leave the UI in surprising states: controls…

We spend time debugging inconsistent UI states after rapid interactions

Across multiple features, rapid sequence interactions leave the UI in surprising states: controls look active but views lag or show wrong data. We repeatedly patch individual handlers. What single habit should the team adopt to cut down these incidents, and what lightweight architecture change will make state transitions deterministic and easier to debug?

Next to this one

Other programming language work people do in JavaScript.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.