-
Notifications
You must be signed in to change notification settings - Fork 0
feat(ui): add bible reader settings #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: d5a9e02 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
ce129bd to
fa352be
Compare
- refactor popover component to have consistent styling across multiple components and reduce duplication in code. - add bible reader settings and save the users settings to localStorage.
Greptile SummaryThis PR adds bible reader settings functionality with localStorage persistence and refactors the Key Changes:
Issues Found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Toolbar
participant SettingsPopover
participant Context
participant LocalStorage
participant Content
User->>Toolbar: Click Settings button
Toolbar->>SettingsPopover: Open popover
User->>SettingsPopover: Click font size button (+/-)
SettingsPopover->>Context: setCurrentFontSize(prev => newValue)
Context->>Context: Update state (12-20 range)
Context->>LocalStorage: setItem('youversion-platform:reader:font-size', value)
Context->>Content: Re-render with new fontSize
User->>SettingsPopover: Click font family button
SettingsPopover->>Context: setCurrentFontFamily('Inter'|'Source Serif')
Context->>Context: Update state
Context->>LocalStorage: setItem('youversion-platform:reader:font-family', value)
Context->>Content: Re-render with new fontFamily
Note over Context,LocalStorage: On initial mount
LocalStorage->>Context: getItem('youversion-platform:reader:font-size')
LocalStorage->>Context: getItem('youversion-platform:reader:font-family')
Context->>Content: Initialize with stored or default values
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9 files reviewed, 2 comments
fa352be to
1916e5e
Compare
1916e5e to
c59dcfa
Compare
mic-mart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few comments that we should resolve before reviewing again.
- add a min and max fontSize for the BibleReader - add youversion-platform:reader:* namespacing for reader settings
|
@greptileai Can you review this PR again? There's been a couple changes since, and I just want to make sure that if there's anything that should be caught, we catch it, and for me to just get a better understanding of this PR. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
12 files reviewed, 1 comment
cameronapak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this works, and I've had a couple small suggestions. Thank you for your work on this, Brenden
cameronapak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Popovercomponent to reduce code duplication throughout codebase and consistency.Light Mode:

Dark Mode:
