-
Notifications
You must be signed in to change notification settings - Fork 33
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
# Allow option for viewing custom menu links #229
# Allow option for viewing custom menu links #229
Conversation
Reviewer's Guide by SourceryThis PR implements a new feature that allows users to view custom menu links defined in the Jellyfin web config.json file. The implementation adds a new tab in the navigation bar and a settings toggle to control its visibility. The custom links tab displays a list of menu links that can be opened in a web browser. Class Diagram for Settings and MenuLinkclassDiagram
class Settings {
+boolean showCustomMenuLinks
+number rewindSkipTime
+String optimizedVersionsServerUrl
+String downloadMethod
+boolean autoDownload
}
class MenuLink {
+String name
+String url
+String icon
}
Settings --> MenuLink : uses
note for Settings "Added showCustomMenuLinks attribute"
note for MenuLink "New class for menu link representation"
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @herrrta - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Fix incorrect JavaScript syntax for property existence check (link)
Overall Comments:
- There's a syntax error in the menu links component:
"menuLinks" !in config
is incorrect JavaScript syntax. Use!config.hasOwnProperty("menuLinks")
or!("menuLinks" in config)
instead. - Consider adding proper TypeScript interfaces for the API response data to improve type safety. The config.json response should be properly typed rather than using implicit any types.
Here's what I looked at during the review
- 🔴 General issues: 1 blocking issue, 1 other issue
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
3797a2a
to
d46e182
Compare
Like this feature, would be nice if we could use this for the optimized sever, to automatically connect it. |
- Added new 'Other' setting to toggle new tab visibility - Added new Tab to show custom links - Added icon asset for list
d46e182
to
b41363d
Compare
Requested by me here: #228
This is my first time using something like react native. Let me know if I followed any conventions incorrectly
Tab layout
'Other' setting toggle
Summary by Sourcery
Add a new feature to allow users to toggle and view custom menu links through a new tab in the application. This includes a new setting to control the tab's visibility and the integration of custom links from the Jellyfin web config.json file.
New Features: