Conversation
This reverts commit afc7f69.
Summary of ChangesHello @kazukokawagawa, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request performs a full revert of a previous development commit, effectively rolling back a series of feature additions and a significant reorganization of the application's settings. The core impact involves the removal of audio processing features like ReplayGain, a simplification of lyric display options, and a streamlined approach to managing cover visibility and playlist page elements. The settings interface has been restructured to offer a more consolidated and maintainable configuration experience. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request reverts a previous set of changes, removing features like ReplayGain, advanced lyric bracket handling, and various UI customization options. It also significantly refactors the settings pages, reorganizing them into new categories.
While this is a revert, I've identified a couple of potential issues introduced by the changes:
- A potential runtime error when processing song metadata due to less robust type handling for artist information.
- A reactivity issue in the settings UI where a section's visibility will no longer update dynamically.
My review comments provide more details on these points. Please take a look.
| songFile.tag.performers = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"]; | ||
| songFile.tag.albumArtists = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"]; |
There was a problem hiding this comment.
This change introduces a potential runtime error. The expression songData?.artists?.map(...) will fail if songData.artists is a string, which was handled by the previous, more robust implementation. This could lead to crashes when processing metadata. Please consider restoring the type checking for artists.
| { | ||
| title: "下载配置", | ||
| show: computed(() => statusStore.isDeveloperMode), | ||
| show: statusStore.isDeveloperMode, |
There was a problem hiding this comment.
The show property is no longer reactive. By changing from computed(() => statusStore.isDeveloperMode) to just statusStore.isDeveloperMode, the visibility of the '下载配置' section will be determined only once when the settings are initialized. It will not update when developer mode is toggled. To fix this, it should be a function or a computed property.
| show: statusStore.isDeveloperMode, | |
| show: () => statusStore.isDeveloperMode, |
Reverts #782