While researching how your app gets used, I mapped the states a scientist would hit across the four steps. I built the ones that matter most and designed the rest. Built ones work in the viewer now; the sample files in step 1 trigger most of the step 1 states.
built, try it in the viewerdesigned, not built
01Structurepick, upload or build
EmptyA dashed drop zone, with starters beside it. Nothing to look at yet, so the screen says what to do.
Starter pickedPreviews in element colours with the cell drawn, before anything runs.
Wrong fileAn image or binary is named as what it is, with the formats that work.
Other formatA CIF is recognised and the message says the full app would read it.
Typo in an elementGives the line number and the nearest real symbol: “Tq” → Ta.
Molecule, no cellWarns, and offers to wrap it in 10 Å of vacuum, the usual fix.
Atoms overlappingFlies to the pair from outside and measures it on the structure.
Too bigOver 100 MB or 729,000 atoms is refused before reading.
Search a databasePull a known crystal by formula, as in the tess CLI.
Edit, formula changesRemoving atoms updates the formula and flags the change.
02Setupcalculation, model, when to stop
DefaultsRelax · Orb v3 · 0.02 eV/Å · 50 steps. One click from a sensible run.
Not in this demoOther calculations and models are listed and marked, never hidden.
Target tighter than computedRun is blocked and the note says why.
Uploaded structureStops before the queue and says where it would go.
Time per stepMeasured on my laptop, shown as measured.
Element the model wasn’t trained onWarn before queueing, suggest a model that covers it.
03Runon the GPUs, minutes to days
QueuedA short beat before the first step, so the hand-off reads as its own state.
RunningThe result screen fills in: chart draws live, atoms settle, cancel stays in reach.
CancelledKeeps the partial run, labelled unfinished.
Step limit hitSet 15 steps and either run stops short, the way a real run would.
Atoms flying apartStop early and open on the frame where the forces blew up.
Leave and come backThe run keeps going; the Run step shows progress and picks up live.
Connection lostSay it’s reconnecting, keep the last frame, never fake progress.
04Resultopen it and check it
ConvergedStatus first, then the numbers, then the chart. Answers “did it work?”.
Not convergedAmber, real numbers kept, and a way back to the settings.
Nothing selectedA dashed slot that says “click an atom”.
Trajectory won’t loadSays so in the log and falls back to the scale test.
Frame rate dropsPixel ratio steps down quietly, and back up when there’s room.
Reduced motionNo autoplay, no log typing, no easing.
Phone widthInspector stacks under the viewer.
Single frameA structure with no trajectory hides the timeline and chart.
No WebGL2Say it plainly and show the numbers without the 3D view.