Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html
modified on local at 2026-07-12 00:35:33
Added
+8
lines
Removed
-0
lines
Context
111
unchanged
Blobs
from def89dd3ea6d
to 2de1e6efad1f
to 2de1e6efad1f
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | 1 | <div class="page-head"> |
| 2 | 2 | <span class="page-eyebrow"><span class="dot"></span> Bookmark</span> |
| 3 | 3 | <h1 class="page-title">Named releases</h1> |
| 4 | 4 | <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 — scoped portfolio-wide or to a single site.</p> |
| 5 | </div> | |
| 6 | ||
| 7 | <div class="ds-guide"> | |
| 8 | <div class="dsg-icon">i</div> | |
| 9 | <div> | |
| 10 | <span class="dsg-title">Three ways to pin content:</span> | |
| 11 | (1) <strong>Portfolio-wide</strong>: leave scope as "All monitored sites" — protects every blob captured up to <em>now</em>. (2) <strong>Per-site</strong>: pick a monitor — only that site's blobs are pinned. (3) <strong>Explicit pins</strong><span class="ds-help" data-help-title="Explicit pins" data-help-body="Instead of pinning "everything captured before this moment", explicit pins tie a release to specific <code>NAMED_RELEASE_PINS</code> rows — each pointing at a chosen <code>file_changes_id</code>. Auto-purge always keeps those specific blobs. Use <a href='/pin_hotspots.cgi'>Pin hotspots</a> to create one." data-help-link="/pin_hotspots.cgi" data-help-link-label="Pin hotspots"></span>: use <a href="/pin_hotspots.cgi">Pin hotspots</a> to freeze the current-latest blobs of the churniest files. Set a <strong>Drift alert URL</strong> below and DriftSense will page you when any pinned file's current SHA no longer matches its pinned SHA. | |
| 12 | </div> | |
| 5 | 13 | </div> |
| 6 | 14 | |
| 7 | 15 | <div class="module glow-emerald" style="margin-bottom:16px"> |
| 8 | 16 | <div class="module-head"><div class="left"> |
| 9 | 17 | <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> |
| 10 | 18 | <div class="module-title">Create a bookmark</div> |
| 11 | 19 | <span class="module-subtitle">Names the current moment. Everything captured up to now becomes restorable from this label forever.</span> |
| 12 | 20 | </div></div> |
| 13 | 21 | <div class="module-body"> |
| 14 | 22 | <form method="post" action="/named_releases.cgi" style="display:flex;flex-direction:column;gap:12px"> |
| 15 | 23 | <input type="hidden" name="save" value="1"> |
| 16 | 24 | |
| 17 | 25 | <div style="display:flex;gap:12px"> |
| 18 | 26 | <label style="flex:1;display:flex;flex-direction:column;gap:4px"> |
| 19 | 27 | <span class="rb-label">Name</span> |
| 20 | 28 | <input type="text" name="name" required placeholder="e.g. before-schema-refactor" |
| 21 | 29 | 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"> |
| 22 | 30 | </label> |
| 23 | 31 | <label style="flex:2;display:flex;flex-direction:column;gap:4px"> |
| 24 | 32 | <span class="rb-label">Description</span> |
| 25 | 33 | <input type="text" name="description" placeholder="Optional context" |
| 26 | 34 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> |
| 27 | 35 | </label> |
| 28 | 36 | <label style="width:160px;display:flex;flex-direction:column;gap:4px"> |
| 29 | 37 | <span class="rb-label">By</span> |
| 30 | 38 | <input type="text" name="released_by" value="Operator" |
| 31 | 39 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> |
| 32 | 40 | </label> |
| 33 | 41 | </div> |
| 34 | 42 | |
| 35 | 43 | <label style="display:flex;flex-direction:column;gap:4px"> |
| 36 | 44 | <span class="rb-label">Scope <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">— leave "All monitored sites" for a portfolio-wide bookmark</span></span> |
| 37 | 45 | <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"> |
| 38 | 46 | <option value="0">All monitored sites (portfolio-wide)</option> |
| 39 | 47 | [loop:@monitors] |
| 40 | 48 | <option value="$mid">$label</option> |
| 41 | 49 | [/loop] |
| 42 | 50 | </select> |
| 43 | 51 | </label> |
| 44 | 52 | |
| 45 | 53 | <div style="display:flex;gap:12px"> |
| 46 | 54 | <label style="flex:1;display:flex;flex-direction:column;gap:4px"> |
| 47 | 55 | <span class="rb-label">Drift alerts <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">(optional)</span></span> |
| 48 | 56 | <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 | 57 | <option value="none">Off</option> |
| 50 | 58 | <option value="generic_webhook">Generic HTTP webhook</option> |
| 51 | 59 | <option value="slack">Slack webhook</option> |
| 52 | 60 | <option value="discord">Discord webhook</option> |
| 53 | 61 | </select> |
| 54 | 62 | </label> |
| 55 | 63 | <label style="flex:2;display:flex;flex-direction:column;gap:4px"> |
| 56 | 64 | <span class="rb-label">Delivery URL <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">— fires when any pinned file drifts from its pinned SHA</span></span> |
| 57 | 65 | <input type="text" name="alert_delivery_url" placeholder="https://hooks.slack.com/... (leave blank to disable)" |
| 58 | 66 | 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 | 67 | </label> |
| 60 | 68 | </div> |
| 61 | 69 | |
| 62 | 70 | <div style="display:flex;justify-content:flex-end"> |
| 63 | 71 | <button type="submit" class="tr-chip is-active" style="border:none;padding:8px 18px">Save bookmark</button> |
| 64 | 72 | </div> |
| 65 | 73 | </form> |
| 66 | 74 | </div> |
| 67 | 75 | </div> |
| 68 | 76 | |
| 69 | 77 | <div class="module glow-teal"> |
| 70 | 78 | <div class="module-head"><div class="left"> |
| 71 | 79 | <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> |
| 72 | 80 | <div class="module-title">All bookmarks</div> |
| 73 | 81 | <span class="module-subtitle">$total bookmarks. Protected ones (default) survive auto-purge; unlocked ones are eligible for cleanup after the retention window.</span> |
| 74 | 82 | </div></div> |
| 75 | 83 | <div class="module-body tight"> |
| 76 | 84 | [if:$has_rows] |
| 77 | 85 | <table class="tbl"> |
| 78 | 86 | <thead><tr> |
| 79 | 87 | <th>Name</th> |
| 80 | 88 | <th style="width:150px">Scope</th> |
| 81 | 89 | <th style="width:110px">By</th> |
| 82 | 90 | <th style="width:110px">Protection</th> |
| 83 | 91 | <th style="width:130px">Moment</th> |
| 84 | 92 | <th style="width:150px">Actions</th> |
| 85 | 93 | </tr></thead> |
| 86 | 94 | <tbody> |
| 87 | 95 | [loop:@rows] |
| 88 | 96 | <tr> |
| 89 | 97 | <td><strong>$name</strong><div class="dim" style="font-size:11.5px;margin-top:2px">$description</div></td> |
| 90 | 98 | <td> |
| 91 | 99 | <span class="pill $scope_pill" style="font-size:10px">$scope_lbl</span> |
| 92 | 100 | <div class="mono dim" style="font-size:10.5px;margin-top:3px">$scope_h</div> |
| 93 | 101 | </td> |
| 94 | 102 | <td class="dim">$released_by</td> |
| 95 | 103 | <td><span class="pill $lock_pill">$lock_lbl</span></td> |
| 96 | 104 | <td class="mono dim"><span class="ts" data-ts="$released_epoch" data-fmt="datetime">$released_h</span></td> |
| 97 | 105 | <td> |
| 98 | 106 | <a href="/restore_release.cgi?release_id=$id" class="tr-chip" style="padding:3px 10px;font-size:11px">Restore all</a> |
| 99 | 107 | </td> |
| 100 | 108 | </tr> |
| 101 | 109 | [/loop] |
| 102 | 110 | </tbody> |
| 103 | 111 | </table> |
| 104 | 112 | [/if] |
| 105 | 113 | [if:!$has_rows] |
| 106 | 114 | <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px"> |
| 107 | 115 | No bookmarks yet. Save your first one above. |
| 108 | 116 | </div> |
| 109 | 117 | [/if] |
| 110 | 118 | </div> |
| 111 | 119 | </div> |