# Autofill follows an MVC shape

Autofill is split Model / View / Controller. The Model is declarative data: Answer Presets and Store Presets, written by hand per Project and Store. The Controller is the Autofill module, which resolves Answer Presets into answers (including Dependent Answers, computed from its own state rather than read back from the page) and hands them to the View. The Views are the Survey page, reached only through the `Survey` module, and the Floating Action Bar, which renders the Controller's outcome.

We chose this so adding a Project or Store means writing Model data only, and so the Controller can be tested without the RMS page. Changes that make Answer Presets reach into the page, or make the Controller depend on what the page currently shows, go against this decision.
