Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html

modified on local at 2026-07-12 00:19:41

Added
+23
lines
Removed
-2
lines
Context
88
unchanged
Blobs
from dd23bd2d3645
to def89dd3ea6d
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
11<div class="page-head">
22 <span class="page-eyebrow"><span class="dot"></span> Bookmark</span>
33 <h1 class="page-title">Named releases</h1>
44 <p class="page-subtitle">Retroactively bookmark a moment. "Before the schema refactor." "Customer verified this worked." "Before I fired the intern." Every blob referenced by a named release is protected from auto-purge, so restore-to-moment always works &mdash; scoped portfolio-wide or to a single site.</p>
55</div>
66
77<div class="module glow-emerald" style="margin-bottom:16px">
88 <div class="module-head"><div class="left">
99 <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 13V7a2 2 0 0 0-2-2h-4l-2-3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5"/><path d="M14 19l2 2 4-4"/></svg></div>
1010 <div class="module-title">Create a bookmark</div>
1111 <span class="module-subtitle">Names the current moment. Everything captured up to now becomes restorable from this label forever.</span>
1212 </div></div>
1313 <div class="module-body">
1414 <form method="post" action="/named_releases.cgi" style="display:flex;flex-direction:column;gap:12px">
1515 <input type="hidden" name="save" value="1">
1616
1717 <div style="display:flex;gap:12px">
1818 <label style="flex:1;display:flex;flex-direction:column;gap:4px">
1919 <span class="rb-label">Name</span>
2020 <input type="text" name="name" required placeholder="e.g. before-schema-refactor"
2121 style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-family:var(--mono);font-size:12.5px">
2222 </label>
2323 <label style="flex:2;display:flex;flex-direction:column;gap:4px">
2424 <span class="rb-label">Description</span>
2525 <input type="text" name="description" placeholder="Optional context"
2626 style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px">
2727 </label>
2828 <label style="width:160px;display:flex;flex-direction:column;gap:4px">
2929 <span class="rb-label">By</span>
3030 <input type="text" name="released_by" value="Operator"
3131 style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px">
3232 </label>
3333 </div>
3434
3535 <label style="display:flex;flex-direction:column;gap:4px">
3636 <span class="rb-label">Scope <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">&mdash; leave "All monitored sites" for a portfolio-wide bookmark</span></span>
3737 <select name="scope_monitor_id" style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px">
3838 <option value="0">All monitored sites (portfolio-wide)</option>
3939 [loop:@monitors]
4040 <option value="$mid">$label</option>
4141 [/loop]
4242 </select>
4343 </label>
44
45 <div style="display:flex;gap:12px">
46 <label style="flex:1;display:flex;flex-direction:column;gap:4px">
47 <span class="rb-label">Drift alerts <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">(optional)</span></span>
48 <select name="alert_delivery_kind" style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px">
49 <option value="none">Off</option>
50 <option value="generic_webhook">Generic HTTP webhook</option>
51 <option value="slack">Slack webhook</option>
52 <option value="discord">Discord webhook</option>
53 </select>
54 </label>
55 <label style="flex:2;display:flex;flex-direction:column;gap:4px">
56 <span class="rb-label">Delivery URL <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">&mdash; fires when any pinned file drifts from its pinned SHA</span></span>
57 <input type="text" name="alert_delivery_url" placeholder="https://hooks.slack.com/... (leave blank to disable)"
58 style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-family:var(--mono);font-size:11.5px">
59 </label>
60 </div>
4461
4562 <div style="display:flex;justify-content:flex-end">
4663 <button type="submit" class="tr-chip is-active" style="border:none;padding:8px 18px">Save bookmark</button>
4764 </div>
4865 </form>
4966 </div>
5067</div>
5168
5269<div class="module glow-teal">
5370 <div class="module-head"><div class="left">
5471 <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="9" x2="20" y2="9"/><line x1="4" y1="15" x2="20" y2="15"/><line x1="10" y1="3" x2="8" y2="21"/><line x1="16" y1="3" x2="14" y2="21"/></svg></div>
5572 <div class="module-title">All bookmarks</div>
5673 <span class="module-subtitle">$total bookmarks. Protected ones (default) survive auto-purge; unlocked ones are eligible for cleanup after the retention window.</span>
5774 </div></div>
5875 <div class="module-body tight">
5976 [if:$has_rows]
6077 <table class="tbl">
6178 <thead><tr>
6279 <th>Name</th>
6380 <th style="width:150px">Scope</th>
6481 <th style="width:110px">By</th>
65 <th style="width:120px">Protection</th>
66 <th style="width:150px">Moment</th>
82 <th style="width:110px">Protection</th>
83 <th style="width:130px">Moment</th>
84 <th style="width:150px">Actions</th>
6785 </tr></thead>
6886 <tbody>
6987 [loop:@rows]
7088 <tr>
7189 <td><strong>$name</strong><div class="dim" style="font-size:11.5px;margin-top:2px">$description</div></td>
7290 <td>
7391 <span class="pill $scope_pill" style="font-size:10px">$scope_lbl</span>
7492 <div class="mono dim" style="font-size:10.5px;margin-top:3px">$scope_h</div>
7593 </td>
7694 <td class="dim">$released_by</td>
7795 <td><span class="pill $lock_pill">$lock_lbl</span></td>
7896 <td class="mono dim"><span class="ts" data-ts="$released_epoch" data-fmt="datetime">$released_h</span></td>
97 <td>
98 <a href="/restore_release.cgi?release_id=$id" class="tr-chip" style="padding:3px 10px;font-size:11px">Restore all</a>
99 </td>
79100 </tr>
80101 [/loop]
81102 </tbody>
82103 </table>
83104 [/if]
84105 [if:!$has_rows]
85106 <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px">
86107 No bookmarks yet. Save your first one above.
87108 </div>
88109 [/if]
89110 </div>
90111</div>