Share reward and less robot load on shared links
CI / test (push) Successful in 1m9s
CI / build (push) Successful in 5m9s
CI / deploy (push) Skipped

The first visit of a shared link by someone else earns the sharer one free
natal analysis, once per user. The share page reports visits from the
visitor's browser; robots, the logged-in sharer and the address the link was
made at do not count. The share button is a proper card that says so in small
print; /v1/me tells whether the reward is used up.

Robots: reading a share writes nothing (view_count counts people only), the
frontend keeps shared content for five minutes (cleared when a link is
revoked), and robots.txt turns away the known AI crawlers while leaving the
link preview robots alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-19 09:26:06 +00:00
co-authored by Claude Opus 5.5
parent c7600608d3
commit 19df36369c
16 changed files with 370 additions and 23 deletions
+17 -1
View File
@@ -697,7 +697,23 @@ a.pair-row:hover strong { color: var(--gold); }
}
/* Sharing a chart (summary card) and the public share page */
.share { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.share { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.share-button {
display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left; cursor: pointer;
border: 1px solid rgba(217, 180, 106, 0.55); border-radius: 12px; color: var(--ink); font: inherit;
background: linear-gradient(135deg, rgba(217, 180, 106, 0.14), rgba(217, 180, 106, 0.03));
transition: border-color 0.15s, background 0.15s;
}
.share-button:hover { border-color: var(--gold); background: linear-gradient(135deg, rgba(217, 180, 106, 0.22), rgba(217, 180, 106, 0.06)); }
.share-button:disabled { opacity: 0.7; cursor: default; }
.share-icon {
flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
background: var(--gold); color: var(--gold-ink);
}
.share-button-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-button-text strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.share-button-text small { font-size: 12.5px; color: var(--gold); }
.share-fine { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.share-open { align-items: stretch; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); }
.share-link { display: flex; gap: 8px; }
.share-link .inp { min-height: 36px; font-size: 14px; }