Skip to content

Dead code: BatchStreamCreator.tsx is never imported by any page and its submit action is a hardcoded dead end #328

Description

@Jaydbrown

components/stream/BatchStreamCreator.tsx is not imported anywhere under app/ (grep -rl "BatchStreamCreator" app/ returns nothing outside its own test file) — it isn't mounted on /create or any other route, so it's currently unreachable by a real user despite having its own test file (components/__tests__/BatchStreamCreator.test.tsx) and a fully-built interactive form (add a recipient, see it listed with its rate, remove it, etc.).

On top of being unreachable, handleBatchCreate() (lines 48-51) doesn't actually create anything even if it were mounted — it just sets an error: "Batch stream creation is not yet available. Please create streams individually." The submit button is only disabled={recipients.length === 0}, so if this component ever does get wired into a page, it would present as a fully-functional-looking form that dead-ends only after a user has already validated and added addresses.

Either wire this into /create (e.g. as a "batch mode" toggle) and implement handleBatchCreate() for real, or remove it along with its test file if batch creation isn't currently planned — right now it's dead weight that a future contributor could easily assume is live functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions