Skip to content

Implement Supabase backend integration for feedback storage #3

Description

@violettance

Description:

The platform relies on local storage, limiting persistence and multi-device access. Integrate Supabase to store feedback data, enabling scalable storage and real-time updates while supporting future multi-user features.

Tasks:

Set up a Supabase project and retrieve the database URL and API key.
Install @supabase/supabase-js in the Next.js project.
Create a feedback table in Supabase with columns: id (UUID), content (text), timestamp (timestamptz), user_id (text, nullable).
Update feedback submission to save to Supabase instead of local storage.
Migrate existing local storage feedback to Supabase with a script.
Fetch and display feedback from Supabase in the UI.
Handle errors (e.g., network issues) with clear user messages.

Acceptance Criteria:

Feedback saves to and loads from Supabase’s feedback table.
Local storage feedback migrates to Supabase without data loss.
UI shows feedback from Supabase as it did with local storage.
Errors (e.g., “Database connection failed”) display clearly.
No login required (use anonymous access or default user_id).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions