Skip to content

Frontend: migrated-files list does not refresh after upload #64

Closed

Description

@amar-python

Problem

After a successful upload, the migrated-files list on the home page does not show the new file until you navigate away and back. Reported earlier; no issue existed for it.

Likely cause (code read at main 59aab1a, not reproduced)

  • src/routes/_authenticated/index.tsx:64 defines filesQuery with key ["csv-files"]; the route loader calls queryClient.ensureQueryData(filesQuery).
  • After upload, line 196 calls router.invalidate(). That re-runs the loader, but ensureQueryData returns the cached list instead of refetching.
  • Nothing calls queryClient.invalidateQueries({ queryKey: ["csv-files"] }).

Suggested fix

Invalidate ["csv-files"] after a successful upload, alongside or instead of router.invalidate(). Add a test next to src/__tests__/job-outcome.test.ts.

Done when

  • A new upload appears in the list without navigation.
  • A test fails if the invalidation is removed.

Generated by Claude Code

Activity

  1. added this to the Frontend and UI milestone on Oct 25, 2026
  2. added a commit that references this issue on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions