feat: use /api/ships/showcase for diverse feed
This commit is contained in:
+14
-14
@@ -368,7 +368,7 @@
|
|||||||
async function loadLiveFeed() {
|
async function loadLiveFeed() {
|
||||||
try {
|
try {
|
||||||
const [shipsRes, statsRes] = await Promise.all([
|
const [shipsRes, statsRes] = await Promise.all([
|
||||||
fetch(`${CALVANA_API}/ships?limit=12`),
|
fetch(`${CALVANA_API}/ships/showcase`),
|
||||||
fetch(`${CALVANA_API}/stats`)
|
fetch(`${CALVANA_API}/stats`)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -389,20 +389,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fallback data (updated at deploy time)
|
// Fallback data (updated at deploy time)
|
||||||
const FALLBACK_STATS = { total: 92, shipped: 89, oops: 17 };
|
const FALLBACK_STATS = { total: 92, shipped: 89, oops: 19 };
|
||||||
const FALLBACK_SHIPS = [
|
const FALLBACK_SHIPS = [
|
||||||
{ id: 98, title: "Milestone Recognition: n8n → Mailchimp via donation_warehouse", status: "shipping" },
|
{ id: 98, title: "Milestone Recognition: n8n → Mailchimp via donation_warehouse", status: "shipped" },
|
||||||
{ id: 97, title: "QuikCue site — Git + Dokploy proper deployment", status: "shipping" },
|
{ id: 97, title: "QuikCue site — Git + Dokploy proper deployment", status: "shipped" },
|
||||||
{ id: 96, title: "QuikCue Homepage — Elite Rebrand of Calvana", status: "shipped" },
|
{ id: 96, title: "QuikCue Homepage — Autonomous Systems Studio", status: "shipped" },
|
||||||
{ id: 95, title: "PNPL: Dashboard revamp — header, sidebar, upsell funnel", status: "shipped" },
|
{ id: 84, title: "Supporter Care: Full refund/cancel/edit across Donations & Giving", status: "shipped" },
|
||||||
{ id: 94, title: "PNPL: Mini embed widget + visible back button", status: "shipped" },
|
{ id: 71, title: "CharityRight Admin v4 — Command center redesign", status: "shipped" },
|
||||||
{ id: 93, title: "PNPL — WhatsApp banner redesign + Collect quick-add appeal picker", status: "shipped" },
|
{ id: 52, title: "In-app browser fixes — session, Turnstile, Stripe 3DS, Google Places", status: "shipped" },
|
||||||
{ id: 92, title: "PNPL — Conditional & match funding pledges", status: "shipped" },
|
{ id: 44, title: "Bulletproof consent: Gift Aid (HMRC), email + WhatsApp opt-in", status: "shipped" },
|
||||||
{ id: 91, title: "Scheduled Giving data audit + junk filtering + error fixes", status: "shipped" },
|
{ id: 22, title: "JustVitamin dynamic data + API-driven charts", status: "shipped" },
|
||||||
{ id: 90, title: "PNPL — Fundamental Collect redesign: unified link creation", status: "shipped" },
|
{ id: 13, title: "Calvana DB-backed shipping log — PostgreSQL + API", status: "shipped" },
|
||||||
{ id: 89, title: "Git org cleanup — CharityRight on GitLab, QuikCue on Gitea", status: "shipped" },
|
{ id: 7, title: "QuikCue comms stack — Chatwoot + n8n + WAHA", status: "shipped" },
|
||||||
{ id: 88, title: "PNPL — Landing page philosophy across ALL dashboard pages", status: "shipped" },
|
{ id: 4, title: "CharityRight checkout v2", status: "shipped" },
|
||||||
{ id: 87, title: "Scheduled Giving Dashboard & Navigation Overhaul", status: "shipped" },
|
{ id: 1, title: "Dokploy server migration — Coolify to Dokploy on Incus", status: "shipped" },
|
||||||
];
|
];
|
||||||
|
|
||||||
function renderStats(stats) {
|
function renderStats(stats) {
|
||||||
|
|||||||
Reference in New Issue
Block a user