Skip to content

fix: remove useFileDetails dependency on wallet address in renewal page#215

Merged
kaf-lamed-beyt merged 2 commits into
seetadev:mainfrom
kaf-lamed-beyt:fix/renewal
Mar 24, 2026
Merged

fix: remove useFileDetails dependency on wallet address in renewal page#215
kaf-lamed-beyt merged 2 commits into
seetadev:mainfrom
kaf-lamed-beyt:fix/renewal

Conversation

@kaf-lamed-beyt

Copy link
Copy Markdown
Collaborator

the renewal page was showing "unable to load file" because useFileDetails was fetching file metadata by scanning upload history, keyed on the user's wallet address. if the address wasn't resolved yet, the hook silently never fired. and even when it did, pre-chain-integration uploads had NULL payment_chain and were excluded from the query result.

removed useFileDetails entirely — the renewal cost endpoint already returns file metadata, so now it reads fileName, fileSize, and expiration directly from useRenewalCost. also added the 0008 backfill migration to set payment_chain on all NULL rows, fixing the history filter for old SOL uploads.

the renewal page was showing "unable to load file" because `useFileDetails` was fetching file metadata by scanning upload history, keyed on the user's wallet address. if the address wasn't resolved yet, the hook silently never fired. and even when it did, pre-chain-integration uploads had NULL `payment_chain` and were excluded from the query result.

removed useFileDetails entirely — the renewal cost endpoint already returns file metadata, so now it reads `fileName`, `fileSize`, and expiration
directly from useRenewalCost. also added the 0008 backfill migration to set `payment_chain` on all NULL rows, fixing the history filter for old SOL uploads.
@kaf-lamed-beyt kaf-lamed-beyt merged commit fcc02d7 into seetadev:main Mar 24, 2026
5 checks passed
@kaf-lamed-beyt kaf-lamed-beyt deleted the fix/renewal branch March 24, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant