TEMPLATE

Diffroom — patch review workspace

A utilitarian light code-review screen with line gutters, an original diff and switchable files.

LIVE PREVIEW Isolated & interactive
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Visual pattern references (original code, names and content; no affiliation):
SourceHut: https://sourcehut.org/
Text-first project tools, fine rules and a small functional palette.
Illustrative sample content and data; no real accounts, payments, reservations or messages. -->
<header><b>diffroom</b><span>review / little-index / change 42</span><strong>OPEN</strong></header>
<main>
  <section class="review-title">
    <span>PATCH 042</span>
    <h1>Make empty queries predictable</h1>
    <p>mira wants to merge 2 commits into <code>main</code></p>
  </section>
  <div class="review-layout">
    <aside>
      <h2>CHANGED FILES</h2>
      <button id="change" data-file="test" aria-pressed="false">▧ tests/query.js <i>+3</i></button
      ><button data-file="src" aria-pressed="true">▧ src/query.js <i>+2 −1</i></button>
      <p>Small patches are easier<br />to understand.</p>
    </aside>
    <section class="diff">
      <div class="diff-head"><b id="filename">src/query.js</b><span>unified diff</span></div>
      <div id="lines">
        <p><span>12</span><code>export function query(text) {</code></p>
        <p class="removed"><span>13</span><code>- return index.search(text);</code></p>
        <p class="added"><span>13</span><code>+ if (!text.trim()) return [];</code></p>
        <p class="added"><span>14</span><code>+ return index.search(text.trim());</code></p>
        <p><span>15</span><code>}</code></p>
      </div>
      <div class="review-note">
        <b>REVIEW NOTE</b>
        <p>The empty state now has a clear contract. Add a fixture for whitespace-only input.</p>
      </div>
    </section>
  </div>
  <output data-status aria-live="polite"></output>
  <footer class="demo-note">Fictional brand · local interface demo · no information is sent</footer>
</main>
Revision history · 1 versions
v12026-10-05 18:26:30 UTC

Keep the ideas flowing.

Explore the library
HELP KEEP THE WORKSHOP USEFUL

Report this creation

ONE QUICK CHECK

Continue?