diff --git a/.kiro/specs/phantom-platform/design.md b/.kiro/specs/phantom-platform/design.md new file mode 100644 index 0000000..7dda6ea --- /dev/null +++ b/.kiro/specs/phantom-platform/design.md @@ -0,0 +1,40 @@ +# PHANTOM Platform Design + +## Product intent + +PHANTOM brings the social pattern of Bulletin Board Systems into a modern community network. People choose focused rooms, contribute to conversations, and preserve useful knowledge in a searchable archive. The product deliberately avoids an algorithmic infinite feed. + +## Main application + +- Next.js App Router renders the landing page, authentication routes, and community workspace. +- Supabase Auth provides member identity. +- Supabase Postgres stores profiles, rooms, memberships, messages, archive entries, and content reports. +- Row Level Security is the authorization boundary for database access. +- Supabase Realtime streams new room messages to connected members. +- Render hosts the public application. + +The browser UI is not the security boundary. Membership and content permissions must remain enforced by database policies. Secret credentials stay on the server. + +## Guest demonstration + +The `/demo` route is an isolated, browser-only preview. It uses clearly identified sample rooms, sample conversations, and sample field notes. Guest messages, memberships, and saved notes are temporary local state. They are not written to Supabase and must never be presented as live community activity. + +The guided tour demonstrates three product ideas: +1. Join a focused room. +2. Contribute a message to that room. +3. Open and save a useful field note. + +The preview must not claim that messages are encrypted, that sample member counts are live, or that local guest actions are persistent. + +## Interaction principles + +- Every primary demo action should produce a visible state change. +- A guest must join a room before sending a message in it. +- Archive search should filter the sample notes. +- Field notes should be readable and savable within the guest session. +- The demo should explain how to enter the authenticated main network. +- Controls should remain keyboard accessible and usable on narrow screens. + +## Known boundaries + +The guest preview is not a substitute for end-to-end verification of authentication, database permissions, realtime delivery, moderation, or persistence. Those require testing against the deployed Supabase-backed application. diff --git a/README.md b/README.md index 202ff24..e2157fa 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ [View the source code](https://github.com/devshieldhq/phantom) -The demo is open to everyone. No account or setup is needed. Explore sample rooms, send local demo messages, search the knowledge archive, and discover the network. Demo activity is temporary, runs entirely in the browser, and resets when you leave. +The demo is open to everyone. No account or setup is needed. Follow the guided tour to join a sample room, send a local message, and save a field note. Search the knowledge archive and explore the room directory. Demo activity is temporary, runs entirely in the browser, and is not stored in the main community database. The main application is the live Supabase backed experience. Sign in is required for joining rooms, posting persistent messages, publishing archive entries, and reporting content. @@ -71,11 +71,15 @@ Apply the SQL migrations in `supabase/migrations` to a fresh Supabase project in - Joining rooms, posting messages, publishing archive entries, and submitting reports require authentication. - Keep private content out of public caches and offline storage. +## Kiro and project specifications + +The root `.kiro` directory contains PHANTOM product steering, platform requirements, and the implementation task plan. See [the Kiro usage write-up](docs/kiro-usage.md) for an honest summary of the Kiro workflow and its limits. The [submission checklist](docs/submission-checklist.md) tracks remaining competition work. + ## Current development status The interactive demo is available without authentication. The main application includes the room directory, authentication foundation, room membership, persistent messages, realtime updates, public archive, and report intake. -Further work includes moderator review and removal tools, server enforced rate limits, offline archive and draft sync, AI assisted summaries, multiplayer experiences, and full end to end QA. +Further work includes moderator review and removal tools, server enforced rate limits, offline archive and draft sync, AI assisted summaries, multiplayer experiences, and full end to end QA. The guest demo is a local preview; authentication, database permissions, realtime delivery, and moderation still require end to end verification. ## Competition build notes diff --git a/app/demo/page.tsx b/app/demo/page.tsx index 2e6f0d6..cd26155 100644 --- a/app/demo/page.tsx +++ b/app/demo/page.tsx @@ -50,14 +50,14 @@ export default function DemoPage() { const filteredEntries = useMemo(() => entries.filter((entry) => (entry.title + " " + entry.excerpt + " " + entry.category).toLowerCase().includes(search.toLowerCase()) ), [search]); + const hasJoinedRoom = joined.some((roomId) => roomId !== "the-lobby"); + const hasSentMessage = messages.some((message) => message.self); + const hasSavedNote = savedEntries.length > 0; function sendMessage(event: FormEvent) { event.preventDefault(); const body = draft.trim(); - if (!body) return; - if (!joined.includes(activeRoom)) { - setJoined((current) => [...current, activeRoom]); - } + if (!body || !joined.includes(activeRoom)) return; setMessages((current) => [...current, { id: Date.now(), room: activeRoom, author: "you", time: new Date().toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), body, self: true }]); @@ -100,9 +100,9 @@ export default function DemoPage() {
GUEST SESSION
No account needed
- {showGuide &&
-

YOUR QUICK START

Choose a room, share an idea, save a field note, and meet the community.

- + {showGuide &&
+

YOUR 60 SECOND TOUR

Try the three actions that make PHANTOM different. Your progress updates as you explore.

+
} @@ -121,7 +121,7 @@ export default function DemoPage() {
COMMUNITY ROOMS
- {rooms.map((room) => )} + {rooms.map((room) => )}
G1

guest 01

EXPLORER

@@ -130,17 +130,17 @@ export default function DemoPage() { {tab === "rooms" &&
COMMUNITY{currentRoom.slug.toUpperCase()}

{currentRoom.name}

{currentRoom.description}

-
TRANSMISSIONS / {roomMessages.length.toString().padStart(2, "0")} ENCRYPTED CHANNEL PREVIEW
+
TRANSMISSIONS / {roomMessages.length.toString().padStart(2, "0")} SAMPLE CONVERSATION
{roomMessages.length ? roomMessages.map((message) =>
{message.author.slice(0, 2).toUpperCase()}
{message.author}{message.self && YOU}{message.time}

{message.body}

) :
This channel is quiet. Start the signal.
}
-
QUICK TRANSMISSIONLOCAL DEMO
setDraft(event.target.value)} maxLength={240} placeholder="Say something worth remembering..." className="min-w-0 flex-1 bg-transparent text-xs text-[#e1ebe3] outline-none placeholder:text-[#53665a]"/>
+
QUICK TRANSMISSIONLOCAL DEMO
setDraft(event.target.value)} maxLength={240} placeholder={joined.includes(activeRoom) ? "Say something worth remembering..." : "Join this room to take part..."} disabled={!joined.includes(activeRoom)} className="min-w-0 flex-1 bg-transparent text-xs text-[#e1ebe3] outline-none placeholder:text-[#53665a]"/>
} {tab === "archive" &&
THE KNOWLEDGE VAULT

Keep the good stuff.

A useful library built by its members. Search a topic and open any note to read, then save the ones you want to revisit.

setSearch(event.target.value)} placeholder="Search knowledge..." className="w-full bg-transparent py-3.5 text-xs outline-none placeholder:text-[#53665a]"/>
{filteredEntries.map((entry) => )}{filteredEntries.length === 0 &&

No entries match that search. Try another signal.

}
} - {tab === "network" &&
NETWORK TOPOLOGY

Small rooms. Real connections.

Explore the channels that make up this little corner of the internet. No feed to beat. No algorithm to please.

{rooms.map((room, index) => )}
COMMUNITY POWERED

265

DEMO MEMBERS

{messages.length.toString().padStart(2, "0")}

TRANSMISSIONS

OPEN

COMMUNITY ACCESS

} + {tab === "network" &&
NETWORK TOPOLOGY

Small rooms. Real connections.

Explore the channels that make up this little corner of the internet. No feed to beat. No algorithm to please.

{rooms.map((room, index) => )}
COMMUNITY POWERED

04

PUBLIC ROOMS

03

SAMPLE FIELD NOTES

LOCAL

GUEST SESSION

}
SESSION ACTIVE / YOUR CHANGES ARE LOCAL
diff --git a/docs/kiro-usage.md b/docs/kiro-usage.md new file mode 100644 index 0000000..ec5b8f9 --- /dev/null +++ b/docs/kiro-usage.md @@ -0,0 +1,23 @@ +# How PHANTOM Used Kiro + +PHANTOM's project workflow used Kiro CLI 3.8.0 during project planning and implementation work. The repository keeps the project context in the root `.kiro` directory so the product goals, constraints, and implementation sequence are reviewable. + +## Spec-driven project context + +The platform requirements define the competition MVP, including public room discovery, authenticated membership, room messaging, a searchable knowledge archive, content reporting, responsive access, and truthful demo data. + +The task plan records the implementation sequence and distinguishes code and schema work from end-to-end checks that still require browser verification. + +Product steering captures the intended audience and design principles: community ownership, durable knowledge, low-bandwidth resilience, privacy, graceful degradation, and clear attribution. + +## Development workflow + +Kiro CLI was used as an AI-assisted development interface while shaping the project plan and working through implementation decisions. The spec and steering files provide persistent project context for that work. The project was also validated through TypeScript checks and a production Next.js build in its deployment workflow. + +## What was not used + +To keep this account accurate, PHANTOM does not claim custom Kiro agents, agent hooks, MCP integrations, property-based testing, or Kiro powers. These were not part of the documented project workflow. + +## Verification still required + +The deployed application and guest demo need a final browser pass. Authentication, room membership, Supabase Realtime, archive publishing, and content reporting must be tested end to end before those flows are described as fully verified. diff --git a/docs/submission-checklist.md b/docs/submission-checklist.md new file mode 100644 index 0000000..5696751 --- /dev/null +++ b/docs/submission-checklist.md @@ -0,0 +1,31 @@ +# Kiroween 2026 Submission Checklist + +## Required project materials + +- [x] Public GitHub repository. +- [x] Open-source MIT license at the repository root. +- [x] Root `.kiro` directory committed and not ignored. +- [x] Public deployed application URL. +- [x] Public guest demo URL. +- [x] Project requirements and implementation task plan. +- [x] Kiro usage write-up with limitations stated honestly. +- [ ] Final end-to-end browser verification. +- [ ] Public YouTube demonstration video shorter than three minutes. +- [ ] Devpost project description and feature summary. +- [ ] Devpost category set to Resurrection. +- [ ] Add public application and GitHub repository URLs to Devpost. +- [ ] Add YouTube URL to Devpost. +- [ ] Add judge access instructions if any feature requires sign-in. + +## Final review + +- [ ] Confirm the live site and demo load without errors. +- [ ] Confirm the guest demo clearly labels sample data and temporary actions. +- [ ] Confirm the main app sign-in and core database actions work. +- [ ] Confirm no secrets, private keys, or personal data are exposed. +- [ ] Confirm the repository license is visible in GitHub About. +- [ ] Confirm the `.kiro` directory is present on the default branch. + +## Deadline + +The official Kiroween 2026 submission deadline is December 4, 2026 at 2:00 PM Pacific Time. In Kenya, that is December 5, 2026 at 1:00 AM EAT. Submit before the deadline; the official rules state that late submissions are not accepted.