Skip to content

Revert "Dev cy"#787

Closed
kazukokawagawa wants to merge 1 commit intodevfrom
revert-782-dev-cy
Closed

Revert "Dev cy"#787
kazukokawagawa wants to merge 1 commit intodevfrom
revert-782-dev-cy

Conversation

@kazukokawagawa
Copy link
Copy Markdown
Collaborator

Reverts #782

This reverts commit afc7f69.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @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

  • Reverted ReplayGain Functionality: All code related to ReplayGain audio processing, including its settings and data types, has been removed from the application.
  • Simplified Lyric and Cover Display Settings: The handling of lyric brackets has been simplified, removing advanced replacement options. Granular cover visibility controls have been replaced with a single 'hide all covers' setting, and playlist page element customization has been removed.
  • Reorganized Application Settings: The application's settings panel has been refactored. The 'Appearance' category has been removed, with its settings distributed to 'General' and 'Play'. The 'Network' category has been split into new 'Third-party', 'Streaming', and 'Other' categories for more logical grouping.
  • Removed UI Components and Animations: Dedicated UI components for managing cover visibility and playlist page elements have been removed. Additionally, several router and player animation effects are no longer present.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +640 to +641
songFile.tag.performers = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"];
songFile.tag.albumArtists = songData?.artists?.map((ar: any) => ar.name) || ["未知艺术家"];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

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,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
show: statusStore.isDeveloperMode,
show: () => statusStore.isDeveloperMode,

@kazukokawagawa kazukokawagawa deleted the revert-782-dev-cy branch January 31, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant