Skip to content
open.blog documentation
open.blog

Studio slice 2: decisions

Made by the stakeholder delegate on 2026-11-12, from the brief, the architecture and the design.

QuestionDecision
Request key for keeping files as written"frontMatter": "keep" on PUT document. The reply's layout says kept or rewritten. It is opt-in for slice 2 and becomes the default once the whole suite passes with it on.
Do delete and restore send the site out?Yes, the same as a save (auto_publish). A deleted post leaves readers' site, and Undo brings it back.
Restoring a field journal whose map track was trashedNot offered in slice 2. The restore route refuses with a plain sentence, and Studio shows no Undo for those posts.
Phone action bar (design §1)Accepted: See how it looks and the primary button. On the phone, Save draft and Make it a draft again move into More.
Row menu label (design §1, §8)Move or remove, so Remove is not hidden under "Move".
Posts row menu trigger (design §7)The word More, named "More for ". There is no icon-only trigger.</td></tr> <tr><td>Renaming a post or changing its web address</td><td>Out of slice 2 (brief). Mikey can ask for it back.</td></tr> </tbody></table> <h2 id="from-the-user-walk-throughs-of-the-design-before-building">From the user walk-throughs of the design (before building)<a class="ob-heading-anchor" href="#from-the-user-walk-throughs-of-the-design-before-building" aria-label="Link to this section">#</a></h2> <p><strong>Mikey</strong></p> <ul> <li><strong>A file that can't be kept is never rewritten silently.</strong> <ul> <li><code>splice_explained</code> gives the reason in one sentence. The save reply carries <code>layout: "rewritten"</code> and <code>layoutReason</code>.</li> <li>Studio shows "File kept as written: yes / no, because …" in Details. The palette's "Show what Studio last did" shows the same.</li> </ul> </li> <li><strong>Leaving a key out is not deleting it.</strong> In keep mode, a key the request leaves out entirely stays as it is. Only <code>null</code> or an empty value removes a key.</li> <li><strong>New keys go beside their <code>KEY_ORDER</code> neighbour</strong>, as the architecture says. The brief's "at the end" is superseded.</li> <li><strong>Comments.</strong> A comment after a quoted value or inline list is not supported by the parser, so such a value already reads with the comment inside it. Comments on bare values are kept.</li> <li><strong>Changed bodies.</strong> When the body changes, trailing blank lines collapse to one. That only happens if the body changed.</li> <li><strong>Delete takes <code>?etag=</code></strong> and refuses with 409 when the post changed since Studio showed it. A pending save that fails means no delete.</li> <li><strong>Delete and restore send the site out</strong> (<code>auto_publish</code>). The Undo toast says when readers see it again. A scheduled post whose time passed while it sat in the trash goes up at once, and the banner says so.</li> <li><strong>Field journals.</strong> A field journal's confirmation says Undo isn't available. Restoring one is refused with a plain sentence.</li> <li><strong>Previews opened directly.</strong> They now carry <code>sandbox allow-scripts</code> in their CSP, so they never run with Studio's origin.</li> <li><strong>Recipe boxes.</strong> <ul> <li>They are used only when the body maps and round-trips byte-exact.</li> <li><code>*</code>/<code>+</code> bullets, loose lists, multi-paragraph steps, <code>1)</code>, Steps before Ingredients and a <code>###</code> heading in the story all fall back to plain words, each with its line number.</li> <li>Legacy <code>layout: recipe</code> posts count as recipes.</li> <li>Pasting lines into rows strips <code>- </code>, and strips <code>1. </code> only when a space follows. "1.5 cups" stays.</li> </ul> </li> <li><strong>Keys.</strong> <ul> <li>Alt+Shift+↑/↓ moves a row. Plain Alt+↑/↓ is left to macOS.</li> <li>Enter in an ingredient row adds a row. A step is a multi-line box, so Enter is a new line there, and "Add a step" adds a step.</li> <li>Ctrl/Cmd+Enter publishes. It never adds a row. Recipe problems never block publishing; See how it looks names them.</li> </ul> </li> <li><strong>Recipe field aliases.</strong> <code>servings</code>, <code>prepTime</code>, <code>cookTime</code>, <code>totalTime</code>, <code>yield</code> and <code>adaptedFrom</code> now have <code>profile::field_aliases</code>. Studio edits whichever name the post already uses (Grammi's <code>prep:</code> stays <code>prep:</code>).</li> <li><strong>Deferred:</strong> <ul> <li>a read-only trash list;</li> <li>previews per user (the 16-preview cache is shared);</li> <li>a See how it looks shortcut beyond the palette.</li> </ul> </li> </ul> <p><strong>Grammi</strong></p> <ul> <li><strong>Labels and menus</strong> <ul> <li>The row menu reads <strong>Move or remove</strong>. The Posts row menu reads <strong>More</strong>.</li> <li>More lists her items first: Take it off my site, Delete this post, Save draft (phone), More about this recipe. The setup-person items come last: Write it all in one box, Show details, Open in the old Admin.</li> <li>"Write it as plain words" becomes <strong>Write it all in one box</strong>. Its opposite stays <strong>Use the recipe boxes</strong>.</li> <li>Series reads <strong>Part of a set</strong> (<code>series</code>).</li> <li>"Photos" everywhere she acts ("Add photos", "Put a photo in"). The screen is still called Pictures.</li> </ul> </li> <li><strong>Help and warnings</strong> <ul> <li>Picture help: "Tap a photo to find it in your story." There is no "![" help.</li> <li>A failed photo says "This photo didn't go in", with a thumbnail when the browser can show one, then the server's sentence.</li> <li>Amount warning: "If you can, start with a number, like 2 or 1/2, so readers can make more. "A pinch" is fine too."</li> <li>Ingredients help: "Start with the amount: 2 cups flour. Press Return for the next one."</li> </ul> </li> <li><strong>Delete and Undo</strong> <ul> <li>The Undo banner says "You can bring it back." next to Undo.</li> <li>The name-taken case says "There's a new post with that name now. Ask the person who set up your site to help bring this one back."</li> </ul> </li> <li><strong>The status line always shows the save state on the phone</strong>, now that Save draft lives in More.</li> </ul> <h2 id="review-round-qa-grammi-and-mikey-using-the-running-slice">Review round (QA, Grammi and Mikey using the running slice)<a class="ob-heading-anchor" href="#review-round-qa-grammi-and-mikey-using-the-running-slice" aria-label="Link to this section">#</a></h2> <p>All three found no data loss. QA passed finish-line checks 3–6. Grammi finished task 1 without help, and Mikey finished task 2 keyboard-only. Every save kept the file as written.</p> <p>Fixed:</p> <ul> <li><strong>Saving and keys</strong> <ul> <li>Ctrl/⌘ S on a published post keeps the changes on the device, and Update puts them on the site. It never publishes half-typed words.</li> <li>Studio sends only the fields that changed (<code>onlyChanges</code>); keep mode leaves the rest alone.</li> <li>New posts are written with a bare <code>draft: true</code> (<code>compose</code> too, so the old Admin benefits).</li> </ul> </li> <li><strong>Focus</strong> <ul> <li>See how it looks focuses <strong>Back to writing</strong>, not the frame, so Escape and Tab work. It passes axe.</li> <li>The dialog and side-sheet headers no longer count as a second banner (a Studio workaround until Zubra UI changes).</li> <li>Undo keeps focus after a delete from Write. "Undo the delete" is in Find, and focus goes to the screen's heading after Undo.</li> <li>Opening a post scrolls only Studio's own scroller, to the top.</li> </ul> </li> <li><strong>Find, and More from the same list:</strong> one command table feeds both. Find adds "Write a new recipe", "Write a new story" and the setup-person items.</li> <li><strong>What she's told about where a post went</strong> <ul> <li>When this server is the public site: "Published. It's on your site."</li> <li>When the public site is elsewhere and nothing sends it out: "Published here. Your public site doesn't update from Studio yet, so ask the person who set it up."</li> <li>The word "server" is gone.</li> <li>The delete banner says when readers stop seeing a post only when a send-out is set up.</li> </ul> </li> <li><strong>Photos.</strong> They show under the story, the notes and the Words box, each with <strong>Take it out</strong>, so the <code>![…]</code> line doesn't look broken.</li> <li><strong>Recipe rows</strong> <ul> <li>Rows are full width, with Move or remove on the label line.</li> <li>Steps grow with their text.</li> <li>Moves are shown in words as well as read aloud, with no flash under reduced motion.</li> <li>Row boxes are tied to their list's help.</li> </ul> </li> <li><strong>Posts and Home</strong> <ul> <li>Posts: posts with no date say "No date yet", not 1970. Two posts with the same title show their file names. On a phone the title takes the whole line.</li> <li>Home: "Draft, goes up Friday, November 20".</li> </ul> </li> <li><strong>Smaller fixes</strong> <ul> <li>Toasts sit at the top on a phone, so they never cover the bar.</li> <li>The Undo details read "For the person who set up your site".</li> <li>A post that won't open hides the form and offers <strong>Back to your posts</strong>.</li> <li>The details sheet no longer shows the word "null".</li> <li>The publish setting is asked at most once a minute.</li> </ul> </li> <li><strong>Code</strong> <ul> <li>The conflict words moved to <code>parts/conflict.js</code>.</li> <li>The take-off copies became one.</li> <li><code>write.js</code> is still about 590 lines.</li> </ul> </li> </ul> <p>Deferred:</p> <ul> <li><strong><code>write.js</code> split</strong> [senior dev, before slice 3]: a DOM-free post session (save, announce, problems), and the body host (one box or the boxes).</li> <li><strong>Zubra UI upstream</strong> [Zubra UI]: <ul> <li>a <code>modal-dialog</code>/<code>side-sheet</code> header that isn't a banner;</li> <li>a <code>file-drop</code> prompt;</li> <li>destructive menu items.</li> </ul> </li> <li><strong>"What was written"</strong> [senior UX]: the details say whether the file was kept, but not which keys changed.</li> <li><strong>A conflict view that shows what differs</strong> [senior UX], instead of the raw Markdown aside.</li> <li><strong>Restoring the original position of <code>draft</code></strong> [architect]: taking a post off adds <code>draft</code> by key order, so publish-then-take-off isn't byte-identical to the original.</li> </ul> </div></ob-code> <p class="ob-meta ob-docs-source"><a href="https://github.com/journey-to-code-org/open.blog/blob/main/docs/specs/studio/slice-2/decisions.md">View this page's source</a></p> <nav class="ob-docs-pager" aria-label="Previous and next"> <a class="ob-docs-previous" href="/open.blog/docs/specs/studio/slice-2/architecture/" rel="prev"><span class="ob-meta">Previous</span> Studio slice 2: architecture</a> <a class="ob-docs-next" href="/open.blog/docs/specs/studio/slice-2/brief/" rel="next"><span class="ob-meta">Next</span> Studio, slice 2: recipes and pictures</a> </nav> </article> </div> </main> <footer class="ob-footer"> <div class="ob-footer-inner"> <p>open.blog is open source. These pages are built with open.blog from the repository's docs/ folder.</p> <nav aria-label="Elsewhere"><ul class="ob-footer-links"> <li><a href="https://github.com/journey-to-code-org/open.blog" rel="me noopener">GitHub</a></li> </ul></nav> <p class="ob-powered">Powered by <a href="https://github.com/journey-to-code-org/open.blog" rel="noopener">open.blog</a></p> </div> </footer> <ob-back-to-top></ob-back-to-top> </body> </html>