Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
239 lines
18 KiB
HTML
239 lines
18 KiB
HTML
<title>Co-Lite Blueprint</title>
|
|
<meta name="claude:viewport-fit-sides" content="cover">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap">
|
|
<style>
|
|
/* Layout: one reading column on a faint drafting grid; sections read top to bottom as now, next, later. */
|
|
:root {
|
|
--bg: #f4f7fb; --panel: #ffffff; --fg: #142235; --muted: #5a6b80; --line: #d3dce8;
|
|
--grid: rgba(30, 90, 160, .06); --accent: #1d5fa8; --accent-soft: #e3edf9;
|
|
--done: #1f7a4d; --done-soft: #e2f3ea; --now: #b26a00; --now-soft: #fbefd9; --owed: #a33b2b; --owed-soft: #f8e4e0;
|
|
--f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
|
|
--f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
|
|
--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
|
|
}
|
|
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
|
|
--bg: #0d1724; --panel: #13202f; --fg: #e3ebf5; --muted: #93a4b8; --line: #263649;
|
|
--grid: rgba(120, 170, 230, .06); --accent: #7fb2ec; --accent-soft: #1a2d44;
|
|
--done: #6fcf9b; --done-soft: #15301f; --now: #f0b65a; --now-soft: #33260f; --owed: #f08b7a; --owed-soft: #3a1c17; color-scheme: dark } }
|
|
:root[data-theme="dark"] {
|
|
--bg: #0d1724; --panel: #13202f; --fg: #e3ebf5; --muted: #93a4b8; --line: #263649;
|
|
--grid: rgba(120, 170, 230, .06); --accent: #7fb2ec; --accent-soft: #1a2d44;
|
|
--done: #6fcf9b; --done-soft: #15301f; --now: #f0b65a; --now-soft: #33260f; --owed: #f08b7a; --owed-soft: #3a1c17; color-scheme: dark }
|
|
|
|
* { box-sizing: border-box }
|
|
body {
|
|
background: var(--bg);
|
|
background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
color: var(--fg); font: 15px/1.6 var(--f-body);
|
|
padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
|
|
padding-block: 40px 64px;
|
|
}
|
|
.wrap { max-width: 980px; margin: 0 auto; display: grid; gap: 48px }
|
|
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.2 }
|
|
h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.01em }
|
|
h2 { font-size: 1.45rem }
|
|
h3 { font-size: 1.05rem }
|
|
p { margin: 0; max-width: 68ch }
|
|
.eyebrow { font: 500 .75rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
|
|
.muted { color: var(--muted) }
|
|
section { display: grid; gap: 18px }
|
|
.sheet { font: .78rem var(--f-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line); padding-top: 10px }
|
|
|
|
/* header */
|
|
header { display: grid; gap: 14px }
|
|
.lede { font-size: 1.08rem }
|
|
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 6px }
|
|
.fact { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 12px 14px; min-width: 0 }
|
|
.fact b { display: block; font: 600 1.5rem var(--f-display); font-variant-numeric: tabular-nums }
|
|
.fact span { font-size: .85rem; color: var(--muted) }
|
|
|
|
/* status chips */
|
|
.chip { display: inline-block; font: 500 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; white-space: nowrap }
|
|
.chip.done { background: var(--done-soft); color: var(--done) }
|
|
.chip.now { background: var(--now-soft); color: var(--now) }
|
|
.chip.owed { background: var(--owed-soft); color: var(--owed) }
|
|
.chip.later { background: var(--accent-soft); color: var(--accent) }
|
|
|
|
/* architecture */
|
|
.arch { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px }
|
|
.tier { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center }
|
|
.tier > .label { font: 500 .75rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em }
|
|
.boxes { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0 }
|
|
.box { border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; font-size: .85rem; background: var(--bg) }
|
|
.box code { font: .78rem var(--f-mono); color: var(--accent) }
|
|
.box.new { border-style: dashed; border-color: var(--now); }
|
|
.down { text-align: center; color: var(--muted); font: .8rem var(--f-mono) }
|
|
@media (max-width: 560px) { .tier { grid-template-columns: 1fr; gap: 6px } }
|
|
|
|
/* shipped grid */
|
|
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px }
|
|
.group { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0 }
|
|
.group ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .92rem }
|
|
|
|
/* owed list */
|
|
.owed-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
|
|
.owed-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--owed); border-radius: 6px; padding: 10px 14px }
|
|
|
|
/* roadmap */
|
|
.road { display: grid; gap: 0; position: relative }
|
|
.stage { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 22px; position: relative }
|
|
.stage::before { content: ""; position: absolute; left: 27px; top: 44px; bottom: 0; width: 2px; background: var(--line) }
|
|
.stage:last-child::before { display: none }
|
|
.num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--f-display); background: var(--panel); border: 2px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums }
|
|
.stage.current .num { border-color: var(--now); color: var(--now) }
|
|
.stage-body { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; min-width: 0 }
|
|
.stage.current .stage-body { border-color: var(--now) }
|
|
.stage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px }
|
|
.stage-body ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .92rem }
|
|
.changes { display: grid; gap: 6px }
|
|
.change { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: .9rem }
|
|
.change code { font: .8rem var(--f-mono); color: var(--accent) }
|
|
|
|
/* tables */
|
|
.tbl { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px }
|
|
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px }
|
|
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
|
|
th { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
|
|
tr:last-child td { border-bottom: 0 }
|
|
|
|
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px }
|
|
.decision { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0 }
|
|
.decision .when { font: .72rem var(--f-mono); color: var(--muted) }
|
|
</style>
|
|
|
|
<div class="wrap">
|
|
|
|
<header>
|
|
<span class="eyebrow">Product blueprint · revision 4 December 2026</span>
|
|
<h1>Co-Lite Blueprint</h1>
|
|
<p class="lede">Co-Lite starts as an event CRM for INS and CV: it captures leads at events and from landing pages, and sales follows them up. It is growing into an event hosting platform with tickets, merch and membership, and will later open to any company as self-serve SaaS. <strong>Leads stay at the centre at every stage.</strong> Free events feed sales, and paid events feed sales too.</p>
|
|
<div class="facts">
|
|
<div class="fact"><b>40</b><span>changes shipped and archived</span></div>
|
|
<div class="fact"><b>27</b><span>capabilities with live specs</span></div>
|
|
<div class="fact"><b>2</b><span>companies at go-live (INS, CV)</span></div>
|
|
<div class="fact"><b>15 Jan 2027</b><span>go-live deadline</span></div>
|
|
</div>
|
|
</header>
|
|
|
|
<section>
|
|
<span class="eyebrow">How it fits together</span>
|
|
<h2>Platform architecture</h2>
|
|
<p class="muted">Spring Boot services cloned from the Solvway platform, with the MLM modules (bonus, stockist, inventory, tree) dropped. A rebuilt Next.js portal serves both staff screens and public visitor pages. Dashed boxes come with the second ticketing change.</p>
|
|
<div class="arch">
|
|
<div class="tier"><span class="label">Visitors</span><div class="boxes">
|
|
<span class="box">Landing pages <code>/p/</code></span><span class="box">QR sign-up <code>/r/</code></span><span class="box">Invites <code>/i/</code></span><span class="box">Check-in <code>/c/</code></span><span class="box">Orders <code>/o/</code></span><span class="box new">Tickets <code>/t/</code></span>
|
|
</div></div>
|
|
<div class="tier"><span class="label">Staff</span><div class="boxes">
|
|
<span class="box">Admin portal (Next.js): events, leads, dashboard, pages, WhatsApp, users, roles, audit</span>
|
|
</div></div>
|
|
<div class="down">▼ HTTPS</div>
|
|
<div class="tier"><span class="label">Edge</span><div class="boxes"><span class="box">api-gateway: JWT, public path list, request log</span><span class="box">mobile-api: <code>/api/admin/**</code> and <code>/api/public/**</code>, rate limits</span></div></div>
|
|
<div class="down">▼ internal</div>
|
|
<div class="tier"><span class="label">Services</span><div class="boxes">
|
|
<span class="box">counter: events, leads, pages, check-in<span class="new"></span></span><span class="box">system: companies, users, roles, labels</span><span class="box">auth</span><span class="box">email</span><span class="box">whatsapp</span><span class="box">log</span><span class="box">member (kept for later)</span>
|
|
</div></div>
|
|
<div class="tier"><span class="label">Data</span><div class="boxes"><span class="box">MySQL, one schema per service, every new table carries <code>company_id</code></span><span class="box">Redis: sessions, rate limits</span></div></div>
|
|
<div class="tier"><span class="label">Runs on</span><div class="boxes"><span class="box">Docker Compose locally</span><span class="box">Kubernetes manifests (kustomize base + prod overlay)</span></div></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<span class="eyebrow">Built</span>
|
|
<h2>What is shipped <span class="chip done">done</span></h2>
|
|
<div class="groups">
|
|
<div class="group"><h3>Foundation and operations</h3><ul>
|
|
<li>Repository, local stack, seed data</li><li>Release CI and image packaging</li><li>Kubernetes manifests</li><li>Gateway request logging without bodies</li></ul></div>
|
|
<div class="group"><h3>Admin, access and security</h3><ul>
|
|
<li>Users, roles, permission modules</li><li>Login security, lockout, temporary passwords</li><li>Company scoping: INS and CV see only their own data</li><li>Audit log, email log</li></ul></div>
|
|
<div class="group"><h3>Events and leads</h3><ul>
|
|
<li>Events with teams, interests</li><li>Staff lead capture, listings, export</li><li>Lead dashboard, follow-up notifications</li><li>QR self-registration with personal codes</li><li>Invitations, capacity and invite cap</li><li>Venue check-in and attendance numbers</li></ul></div>
|
|
<div class="group"><h3>Landing pages</h3><ul>
|
|
<li>Visual on-page editor, drafts, templates</li><li>Hero, sections, features, steps, trust, FAQ, CTA</li><li>Sign-up forms with UTM tracking</li><li>Custom HTML, image upload, anchors</li><li>Top bar, footer, thank-you text, contact links</li><li>INS hotel-technology page built natively</li></ul></div>
|
|
<div class="group"><h3>Ticket orders</h3><ul>
|
|
<li>Tickets switch, payment instructions, hold days per event</li><li>Ticket types with price, quantity, sales end</li><li>Tickets page section; seats locked per order</li><li>Order page and order emails; holds expire</li><li>Staff orders: mark paid, cancel order or ticket, resend</li><li>Buyer becomes an event lead</li></ul></div>
|
|
<div class="group"><h3>Messaging and language</h3><ul>
|
|
<li>WhatsApp inbox</li><li>Simplified Chinese interface</li><li>Message catalogue filter</li></ul></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<span class="eyebrow">Before 15 January 2027</span>
|
|
<h2>Still owed for go-live <span class="chip owed">open</span></h2>
|
|
<ul class="owed-list">
|
|
<li><span class="chip owed">deploy</span><span>Kubernetes dry run on the real cluster, then the first apply.</span></li>
|
|
<li><span class="chip owed">verify</span><span>WhatsApp end-to-end check once the business account is linked.</span></li>
|
|
<li><span class="chip owed">legal</span><span>PDPA owner to confirm the shortened privacy notice on the landing form.</span></li>
|
|
<li><span class="chip owed">content</span><span>Rebuild the INS landing page on the real server; it exists only in the local database today.</span></li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<span class="eyebrow">Where it is going</span>
|
|
<h2>Roadmap</h2>
|
|
<p class="muted">Order agreed with the owner on 4 December 2026. Each stage is brainstormed and approved as its own design before it is built.</p>
|
|
<div class="road">
|
|
|
|
<div class="stage current"><div class="num">1</div><div class="stage-body">
|
|
<div class="stage-head"><h3>Event ticketing</h3><span class="chip now">in progress</span></div>
|
|
<p>Paid events sell tickets; free events keep today's lead flow. Buyers pay outside Co-Lite for now, by bank transfer or a payment link, and staff mark the order paid.</p>
|
|
<div class="changes">
|
|
<div class="change"><code>add-event-ticket-orders</code><span class="chip done">done</span><span class="muted">Ticket types, Tickets page block, orders with seat locking, holds that expire, order page and emails, staff order screens, buyer becomes a lead.</span></div>
|
|
<div class="change"><code>add-event-tickets</code><span class="chip now">next</span><span class="muted">QR ticket per seat, buyer names attendees later, attendee consent, check-in at the door, invites count as free tickets.</span></div>
|
|
</div>
|
|
</div></div>
|
|
|
|
<div class="stage"><div class="num">2</div><div class="stage-body">
|
|
<div class="stage-head"><h3>Merch collected at events</h3><span class="chip later">planned</span></div>
|
|
<ul><li>Products with variants (size, colour) and a stock count</li><li>Sold alongside tickets in the same order</li><li>Handed over at check-in</li></ul>
|
|
</div></div>
|
|
|
|
<div class="stage"><div class="num">3</div><div class="stage-body">
|
|
<div class="stage-head"><h3>Merch shop with manual shipping</h3><span class="chip later">planned</span></div>
|
|
<ul><li>Standalone shop, not tied to an event</li><li>Delivery address on the order; staff ship and mark it shipped</li><li>No courier integration at first</li></ul>
|
|
</div></div>
|
|
|
|
<div class="stage"><div class="num">4</div><div class="stage-body">
|
|
<div class="stage-head"><h3>Membership</h3><span class="chip later">planned</span></div>
|
|
<ul><li>Member accounts: profile, My tickets, events attended. Tickets already held are claimed by mobile or email.</li><li>Member-only events, early access and member prices on tickets and merch</li><li>Points earned at check-in and on paid tickets, spent as discounts; tiers later</li><li>Referrals through invite links, one level only</li><li>Leads from free events invited to join; likely built on the kept customer portal</li></ul>
|
|
</div></div>
|
|
|
|
<div class="stage"><div class="num">5</div><div class="stage-body">
|
|
<div class="stage-head"><h3>Self-serve SaaS</h3><span class="chip later">planned</span></div>
|
|
<ul><li>Companies sign up themselves on a Free or Premium plan</li><li>No admin needs to create the company by hand</li><li>Built on the company scoping already in place</li></ul>
|
|
</div></div>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<span class="eyebrow">At any stage</span>
|
|
<h2>Upgrades that wait for a trigger</h2>
|
|
<div class="tbl"><table>
|
|
<thead><tr><th>Upgrade</th><th>Trigger</th><th>What it changes</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>Payment gateway (FPX, card)</td><td>A gateway account is chosen</td><td>Adds "pay now" to the same order; holds shrink from days to minutes</td></tr>
|
|
<tr><td>Faster seat updates</td><td>An event with thousands rushing at once</td><td>Single conditional update instead of the event lock; CAPTCHA, cached pages, a load test</td></tr>
|
|
<tr><td>Launch-day protection</td><td>Concert-size launches</td><td>Virtual waiting room, queued orders, member-only sales, ticketing as its own service</td></tr>
|
|
<tr><td>Receipts, invoices, SST</td><td>When payment moves inside Co-Lite</td><td>Issued from the order instead of outside the system</td></tr>
|
|
</tbody>
|
|
</table></div>
|
|
</section>
|
|
|
|
<section>
|
|
<span class="eyebrow">Settled</span>
|
|
<h2>Decisions that shape the build</h2>
|
|
<div class="decisions">
|
|
<div class="decision"><span class="when">foundation</span><h3>Leads are their own table</h3><p class="muted">Not a status on members. Every route in (QR, invite, page, ticket) creates or reuses a lead.</p></div>
|
|
<div class="decision"><span class="when">30 Nov 2026</span><h3>Every new table has a company</h3><p class="muted">So INS and CV stay apart now, and SaaS later is a sign-up flow, not a rebuild.</p></div>
|
|
<div class="decision"><span class="when">4 Dec 2026</span><h3>One order for every kind of item</h3><p class="muted">Order lines carry a kind: ticket now, merch pickup and shipping later, one checkout like a fan-platform shop.</p></div>
|
|
<div class="decision"><span class="when">4 Dec 2026</span><h3>Attendees consent themselves</h3><p class="muted">A buyer's partner can attend without joining; they become a lead only after ticking the consent.</p></div>
|
|
<div class="decision"><span class="when">4 Dec 2026</span><h3>No walk-ins on paid events</h3><p class="muted">Venue check-in admits ticket holders and registered invited guests only.</p></div>
|
|
<div class="decision"><span class="when">4 Dec 2026</span><h3>No inventory service</h3><p class="muted">Seats and later merch stock are counted in the counter service with one locked, all-or-nothing write.</p></div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="sheet"><span>Source: openspec/specs, openspec/changes/archive, docs/superpowers/specs/2026-12-04-event-ticketing-design.md</span><span>Status as of 4 December 2026</span></div>
|
|
|
|
</div>
|