Skip to content

Conversation

@EurFelux
Copy link
Collaborator

@EurFelux EurFelux commented Oct 23, 2025

What this PR does

image

Fixes #10885

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Breaking changes

If this PR introduces breaking changes, please describe the changes and the impact on users.

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note


- Add hide disabled providers toggle in provider settings
- Update preference schema to store the setting
- Refactor provider list layout to accommodate new toggle
@EurFelux EurFelux linked an issue Oct 23, 2025 that may be closed by this pull request
4 tasks
@EurFelux EurFelux added the v2 label Oct 23, 2025
'app.proxy.mode': PreferenceTypes.ProxyMode
// redux/settings/proxyUrl
'app.proxy.url': string
'app.settings.provider.hide_disabled': boolean
Copy link
Collaborator

@0xfullex 0xfullex Oct 24, 2025

Choose a reason for hiding this comment

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

Note

This comment was translated by Claude.

Preference already contains setting. This naming is semantically redundant.
Additionally, the app prefix refers to globally effective and application-wide related configurations, so it shouldn't be used here.
The correct naming should be ui.provider.show_disabled.

  1. This is a UI category option related to providers.
  2. We generally conventionally use affirmative rather than negative expressions for options (so use show instead of hide, and the default value needs to be adjusted accordingly).

Original Content

preference就是包含setting。这个命名语义重复了
此外,app前缀是指全局生效和应用整体相关的配置,这里不应该用app
正确应该是 ui.provider.show_disabled

  1. 这是一个ui类别的,和provider相关的选项
  2. 我们一般约定用正义而不是反义来表达选项(所以用show而不是hide,对应默认值需要调整)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

…roviders

Update the provider settings to use a more intuitive "show disabled" toggle instead of "hide disabled". This includes updating the preference schema, default value, and UI components to reflect this change.
…/cherry-studio into feat/show-enabled-provider-only
@Loongphy
Copy link

UX-wise this workaround is still hard to discover and bulky for bulk operations.
Here’s an alternative interaction.

If this direction sounds good, I can push a PR later.

Key points:

  • The ON switch is no longer displayed on the right side of the provide setting
  • By default, it is considered added and enabled
  • Deleted platforms are uniformly stored in the "Hidden Group" collapsible panel
image
@EurFelux
Copy link
Collaborator Author

EurFelux commented Oct 27, 2025

Note

This issue/comment/review was translated by Claude.

UX-wise this workaround is still hard to discover and bulky for bulk operations. Here's an alternative interaction.

That's not a bad idea either. However, the notion of enabling all providers by default isn't ideal, as it would force new users to individually disable the providers they don't need. Building on this idea, we could divide the entire list into two groups: enabled and disabled, with the disabled group collapsed by default.

Moreover, this solution should not require adding new data, so there's no need to wait for v2; it can be quickly merged into main.


Original Content

UX-wise this workaround is still hard to discover and bulky for bulk operations. Here's an alternative interaction.

That's not a bad idea either. However, the notion of enabling all providers by default isn't ideal, as it would force new users to individually disable the providers they don't need. Building on this idea, we could divide the entire list into two groups: enabled and disabled, with the disabled group collapsed by default.

Moreover, this solution should not require adding new data, so there's no need to wait for v2; it can be quickly merged into main.

@0xfullex 0xfullex added this to the v2.0.0 milestone Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 participants