Support #10416
openLoading animation for document data extraction in pca phase 1 and auto papulate data from the pdf
100%
Subtasks
Related issues
Updated by Ramu Kodali about 1 month ago
- % Done changed from 0 to 100
Today I added a proper loading state for the places where the app reads data out of an uploaded PDF. Those parses run on the server and take anywhere from a few seconds to about 45 seconds for a multi-page OCR, and until now the screen gave almost no feedback, which made a working extraction look like a frozen form. I built a reusable ExtractionLoader component using the "searching" Lottie animation, shown as a full-screen overlay with the animation, a title, and a line naming the fields being pulled out, and wired it into all three document-reading points: the PVWatts report upload and the "Refresh from Documents" re-parse in PCA Phase 1, and the solar design upload in Site Assessment — the last of these being the slowest, and handled inside the shared extraction function so every upload path in that stage gets it from one place. The animation JSON is about 100KB, so it is code-split and fetched only the first time an extraction actually runs, then reused for the rest of the session rather than being shipped in the main bundle — a production build confirms it lands as its own 4.5KB (gzipped) chunk. Verified with type-checking, linting and a full production build.