YPE-1141: Add loading spinner to BibleVersionPicker#161
Conversation
|
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Greptile SummaryAdded a loading spinner to the BibleVersionPicker component to improve user experience during version fetching. The implementation properly tracks the
The changes include:
All tests properly mock the Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User Opens BibleVersionPicker] --> B{versionsLoading?}
B -->|true| C[Show LoaderIcon in Badge]
B -->|false| D[Show Version Count in Badge]
B -->|true| E{filteredVersions.length == 0?}
E -->|true| F[Show LoaderIcon in Version List Area]
E -->|false| G[Show Version Items]
B -->|false| H{filteredVersions.length == 0?}
H -->|true| I[Show 'No versions found' Message]
H -->|false| G
J[useVersions Hook] --> K[Returns loading state]
K --> L[versionsLoading passed to Context]
L --> M[Components render based on versionsLoading]
Last reviewed commit: 69cbbde |
… disable lint for the entire bible picker test file.
cameronapak
left a comment
There was a problem hiding this comment.
Works like a charm. Approved. Please see if you need to make any changes based on Jared's PR comment
Summary
Test plan
Run pnpm --filter @youversion/platform-react-ui test