Daily brief Day 11: sitemap update (+2 posts), directory/PH prep docs, social post drafts

- Sitemap expanded to 23 URLs: added speed-run-odoo-mcp and speed-run-n8n-skill
- Updated homepage lastmod to 2026-06-19
- docs/directory-submissions.md: BetaList, AlternativeTo, SaaSHub prep + Product Hunt draft
- docs/social-posts-drafts.md: n8n speed run post + launch day placeholder drafts
- Auto-update: operations.json (Day 11, 06:00 UTC) and insights.json
This commit is contained in:
Oliver
2026-06-19 09:03:09 -03:00
parent 1fc63a9ad3
commit 646891bcda
9 changed files with 738 additions and 351 deletions
+45 -122
View File
@@ -255,59 +255,6 @@
margin-top: 4px;
}
/* ── Servers Table ──────────────────── */
.server-grid {
display: grid;
grid-template-columns: 1fr;
gap: 6px;
}
.server-card {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-card);
border-radius: var(--radius-card);
padding: 14px 18px;
}
.server-card .server-name {
font-weight: 600;
font-size: 14px;
color: var(--text);
}
.server-card .server-meta {
display: flex;
gap: 16px;
font-size: 12px;
}
.server-card .server-meta span {
color: var(--text-muted);
}
.server-card .server-meta strong {
color: var(--text);
font-weight: 600;
}
.server-card .server-status {
font-size: 11px;
font-weight: 500;
padding: 2px 10px;
border-radius: 4px;
}
.server-card .server-status.ok {
background: rgba(34,197,94,.12);
color: var(--success);
border: 1px solid rgba(34,197,94,.15);
}
.server-card .server-status.low {
background: rgba(245,158,11,.12);
color: var(--warning);
border: 1px solid rgba(245,158,11,.15);
}
.server-card .server-status.full {
background: rgba(239,68,68,.12);
color: var(--danger);
border: 1px solid rgba(239,68,68,.15);
}
/* ── Campaign Cards ──────────────────── */
.campaign-grid {
display: grid;
@@ -698,27 +645,10 @@
<div class="updated" id="brief-updated">Last updated: &mdash;</div>
</div>
<!-- ════════ SERVERS ════════ -->
<div class="section">
<div class="section-header" onclick="toggleSection('servers-section', this)">
<h2>🖥 Servers</h2>
<span class="section-count count">live</span>
<span class="section-toggle collapsed"></span>
</div>
<div class="section-body" id="servers-section">
<div class="server-grid" id="server-grid"></div>
</div>
</div>
<!-- ════════ GOALS ════════ -->
<div class="section">
<div class="section-header" onclick="toggleSection('goals-section', this)">
<h2>🎯 Q2/2026 Goals</h2>
<span class="section-toggle collapsed"></span>
</div>
<div class="section-body" id="goals-section">
<div class="goals-grid" id="goals-grid"></div>
</div>
<div style="margin-bottom:24px;">
<h2 style="font-size:18px;font-weight:700;margin-bottom:14px;">🎯 07/2026 Goals</h2>
<div class="goals-grid" id="goals-grid"></div>
</div>
<!-- ════════ CAMPAIGNS ════════ -->
@@ -876,6 +806,8 @@
</div>
<script src="data/insights.js"></script>
<script src="data/operations.js"></script>
<script>
/* ════════ DATA ════════ */
/* Campaign label templates — labels stay here, values come from JSON */
@@ -886,12 +818,11 @@
];
const goals = [
{ id: 'active-contacts', label: 'Active Contacts', current: 0, target: 60, note: 'Loading...' },
{ id: 'subscriptions', label: 'Subscriptions', current: 0, target: 50, note: 'Loading...' },
{ id: 'influencers', label: 'Influencers', current: 0, target: 20, note: 'Loading...' },
{ id: 'visitors', label: 'Page Visitors', current: 0, target: 10000, unit: '/mo', note: 'Loading...' },
{ id: 'outreach-sent', label: 'Cold Emails Sent', current: 0, target: 100, note: 'Loading...' },
{ id: 'crm-contacts', label: 'CRM Contacts', current: 0, target: 200, note: 'Loading...' },
{ id: 'seats-sold', label: 'Seats Sold', current: 0, target: 24, note: 'Loading...' },
{ id: 'influencers', label: 'Influencers', current: 0, target: 2, note: 'Loading...' },
{ id: 'visitors', label: 'Page Visitors', current: 0, target: 1000, unit: '/mo', note: 'Loading...' },
{ id: 'outreach-sent', label: 'Cold Emails Sent', current: 0, target: 250, note: 'Loading...' },
{ id: 'replies', label: 'Replies to Mails', current: 0, target: 25, note: 'Loading...' },
];
let campaigns = []; // populated from operations.json via fetchLiveData
@@ -1196,6 +1127,12 @@
}
async function fetchWebsiteStats() {
// Use inline data from script tags (works with file://) or fall back to fetch
if (window.__INSIGHTS__) {
websiteStats = { ...defaultStats, ...window.__INSIGHTS__ };
renderWebsite();
return;
}
try {
const res = await fetch('data/insights.json?t=' + Date.now());
if (!res.ok) throw new Error('Not found');
@@ -1206,6 +1143,23 @@
}
async function fetchLiveData() {
// Use inline data from script tags (works with file://) or fall back to fetch
if (window.__OPERATIONS__) {
const d = window.__OPERATIONS__;
if (d.date) document.getElementById('brief-date').textContent = d.date;
if (d.updated) document.getElementById('brief-updated').textContent = 'Last updated: ' + d.updated;
if (d.goals) d.goals.forEach((g, i) => { if (goals[i]) { goals[i].current = g.current; goals[i].note = g.note || goals[i].note; } });
renderGoals();
if (d.campaigns && d.campaigns.length > 0) {
campaigns = d.campaigns;
renderCampaigns();
}
const badge = document.getElementById('crm-badge');
if (badge && d.comms && d.comms.crm) {
badge.innerHTML = `${d.comms.crm.total} CRM Contacts`;
}
return;
}
try {
const res = await fetch('data/operations.json?t=' + Date.now());
if (!res.ok) throw new Error('Not found');
@@ -1227,51 +1181,20 @@
} catch { /* defaults */ }
}
/* ── Servers ── */
const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server";
function renderServers(servers) {
const grid = document.getElementById('server-grid');
if (!servers || servers.length === 0) {
grid.innerHTML = '<div style="color:var(--text-muted);font-size:13px;padding:12px 0;">No server data available.</div>';
return;
}
grid.innerHTML = servers.map(function(s) {
const name = s.server || '—';
const total = parseInt(s.Seats, 10) || 0;
const taken = parseInt(s['Seats taken'], 10) || 0;
const avail = parseInt(s['Seats Available'], 10) || 0;
let statusClass = 'ok';
let statusLabel = 'Available';
if (avail <= 0) {
statusClass = 'full';
statusLabel = 'Full';
} else if (avail < 10) {
statusClass = 'low';
statusLabel = 'Low';
}
return '<div class="server-card">' +
'<div class="server-name">' + name.charAt(0).toUpperCase() + name.slice(1) + '</div>' +
'<div class="server-meta">' +
'<span>Seats <strong>' + total + '</strong></span>' +
'<span>Taken <strong>' + taken + '</strong></span>' +
'<span>Available <strong>' + avail + '</strong></span>' +
'</div>' +
'<span class="server-status ' + statusClass + '">' + statusLabel + '</span>' +
'</div>';
}).join('');
}
async function fetchServers() {
/* ── Seats Sold (from servers webhook) ── */
async function fetchSeatsSold() {
try {
const res = await fetch(SERVER_WEBHOOK);
const res = await fetch("https://n8n.derez.ai/webhook/server");
if (!res.ok) throw new Error('Not found');
const raw = await res.json();
const list = raw && Array.isArray(raw.data) ? raw.data : Array.isArray(raw) ? raw : [raw].filter(Boolean);
const servers = list.filter(function(s) { return s && s.server; });
renderServers(servers);
} catch {
renderServers(null);
}
const totalTaken = list.reduce((sum, s) => sum + (parseInt(s['Seats taken'], 10) || 0), 0);
const seatGoal = goals.find(g => g.id === 'seats-sold');
if (seatGoal) {
seatGoal.current = totalTaken;
renderGoals();
}
} catch {}
}
/* ── Init ── */
@@ -1283,7 +1206,7 @@
renderInfos();
fetchWebsiteStats();
fetchLiveData();
fetchServers();
fetchSeatsSold();
</script>
</body>
</html>