Skip to content
This repository was archived by the owner on Aug 2, 2026. It is now read-only.

fix: dashboard invoice visibility - filter by originator_id, surface insert errors - #73

Merged
samjay8 merged 1 commit into
masterfrom
sync/20260712192216
Jul 12, 2026
Merged

fix: dashboard invoice visibility - filter by originator_id, surface insert errors#73
samjay8 merged 1 commit into
masterfrom
sync/20260712192216

Conversation

@samjay8

@samjay8 samjay8 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Synced from the invofi monorepo.

Changes

Dashboard (src/app/dashboard/page.tsx)

  • The invoice query filtered .eq('originator', user.id) - but originator stores the wallet public key (G...), while user.id is the Supabase auth UUID, so the filter never matched and the dashboard always showed zero invoices. Now filters on originator_id.

InvoiceForm (src/components/invoices/InvoiceForm.tsx)

  • The Supabase insert result was ignored - an RLS rejection failed silently while the success toast still showed. Insert errors are now surfaced in the error toast.

Test plan

  • Register an invoice while signed in - it appears on the dashboard immediately
  • Registered invoices appear in the marketplace (status Pending)

@samjay8
samjay8 merged commit e66cdf6 into master Jul 12, 2026
2 checks passed
@samjay8
samjay8 deleted the sync/20260712192216 branch July 12, 2026 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant