Part of #26
The window's arrangement state, ArrangementView, the arrangement event and #askAnother in frontend/src/app.js have held a patch document since #3 (ADR 0018) and a module document since #23, so eleven files under frontend/src say arrangement for something that is one of three kinds. It reads wrong at every call site, and it was left on 30 October because the rename is several hundred lines of noise and no behaviour. Done when it is document and DocumentView throughout frontend/src, the specs and the fake read the new names, nothing else changes, and it is one commit on its own, so no diff of behaviour ever carries it. GLOSSARY.md has Patch document and Module document; it gains the line that the window's open one is a document of any of the kinds.
Done in 6785007, one commit on its own with no behaviour in it.
The window's state is
document, its eventdocument, and the backend'sArrangementViewisDocumentView. Every answer field holding one isdocumenttoo: an import, a drop, a pattern laid, a clip published, a room gone into. The publish form, the plyr.fm form, the patch editor and the span fields takedocument. The timeline, piano roll, audio editor and export popover are shown only for an arrangement, so theirs staysarrangement, and the commands keep their names.GLOSSARY.mdgains Document.scripts/suiteexits 0.