Skip to content

refactor: simplify settings string summaries#1366

Open
krvstek wants to merge 11 commits intoMorpheApp:devfrom
krvstek:refactor
Open

refactor: simplify settings string summaries#1366
krvstek wants to merge 11 commits intoMorpheApp:devfrom
krvstek:refactor

Conversation

@krvstek
Copy link
Copy Markdown

@krvstek krvstek commented May 4, 2026

Description

This PR cleans up how we handle settings descriptions across all apps. Instead of maintaining separate _on and _off strings for every single toggle, we're moving to a single, unified _summary that just describes what the feature does.

Closes #1097.

Additional context

This cuts down the string payload and reduces the translation work almost in half.

Gonna put this PR into draft first, because it's a massive UX change and somewhat subjective, so I want to get your thoughts first. Let me know if you think I removed a summary that is actually needed.

Test results

  • Tested on both the minimum and maximum supported versions
  • Tested on experimental supported versions (YT 21.18.163, YTM 9.17.51, Reddit 2026.18.0)

@ILoveOpenSourceApplications
Copy link
Copy Markdown
Contributor

@kitadai31, have you started working on a PR or not?

@krvstek krvstek force-pushed the refactor branch 3 times, most recently from 408e4dd to 869ebaf Compare May 5, 2026 15:04
@MarcaDian
Copy link
Copy Markdown
Contributor

MarcaDian commented May 5, 2026

To test this PR, we can compile it in GitHub actions and add it to the manager as a remote source (manager supports PR links as a remote source, need to add Github PAT in settings) or as a local file.

@kitadai31
Copy link
Copy Markdown

@kitadai31, have you started working on a PR or not?

I started working on it a little bit, but soon I got busy with other tasks, so I haven't touched it for a month.
Right now, it's practically the same as doing nothing at all.
Therefore, there is no problem.


The new strings look good.
This solves the problem I was pointing out. Thank you so much!

However, I felt that many of the settings lacked sufficient description.
But we can add those before this PR is merged, so it shouldn't be a problem.

For reference, I tried pushing some code that I had left untouched for a month.
kitadai31@150774e
This only has about 20 strings changed so far, and it's outdated.
However, this is an example of the description I was trying to add.

@krvstek krvstek force-pushed the refactor branch 3 times, most recently from f144cf0 to e86b00f Compare May 6, 2026 13:29
@krvstek
Copy link
Copy Markdown
Author

krvstek commented May 6, 2026

To test this PR, we can compile it in GitHub actions and add it to the manager as a remote source (manager supports PR links as a remote source, need to add Github PAT in settings) or as a local file.

I've tested the changes locally and everything works fine, haven't noticed any bugs so far. I'll do a final review today to make sure my changes align well with the current scope of the PR, do some minor tweaks if needed, and I will mark it as ready today or tomorrow.

@MarcaDian
Copy link
Copy Markdown
Contributor

At first glance, it's LGTM, but since I'm not a native English speaker, I can't help with editing the text.

Also, some menu items don't have summaries right now.

Screenshots

Screenshot_2026-05-07-14-09-35-359_app.morphe.android.youtube.jpg

We also need to test the search, I remember during its development there was a problem with text highlighting after changing the text in the summary when changing the settings.

Maybe there are places of potential optimization somewhere after these changes.

@krvstek
Copy link
Copy Markdown
Author

krvstek commented May 7, 2026

Also, some menu items don't have summaries right now.

That was completely intentional, I felt that many toggles (like 'Hide video ads' or 'Hide fullscreen ads') are entirely self-explanatory, so adding a summary just cluttered the UI.

However, as I mentioned before, UX is highly subjective. If you feel any specific toggles absolutely need their descriptions back for clarity, just let me know and I can add them.

@MarcaDian
Copy link
Copy Markdown
Contributor

Oh, of course, I looked at the YouTube settings, there are also such menu items without a summary. Well yes, it's subjective, personally I don't care, since I almost never go into the settings)). Only when I need to test something.

@krvstek
Copy link
Copy Markdown
Author

krvstek commented May 7, 2026

I'll try to test everything by this evening. I'm also going to do a final review of the strings to see if anything needs further simplification, or if any specific toggle actually requires a summary to avoid confusion. Once I'm done and everything works fine, I'll mark the PR as ready.

@krvstek krvstek marked this pull request as ready for review May 7, 2026 16:24
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
Comment thread patches/src/main/resources/addresources/values/youtube/strings.xml Outdated
<string name="morphe_hide_featured_videos_section_title">Hide Featured videos section</string>
<string name="morphe_hide_gaming_section_title">Hide Gaming section</string>
<string name="morphe_hide_how_this_was_made_section_title">Hide \'How this content was made\' section</string>
<string name="morphe_hide_how_this_was_made_section_title">Hide content disclosure</string>
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.

This change feels against the purpose of the PR. The title is enough isn't it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This change feels against the purpose of the PR. The title is enough isn't it?

I tested the long title (Hide 'How this content was made' section) and the text gets truncated in the UI right around the word 'section'. Using a shorter title (Hide content disclosure) and keeping the exact phrase in the summary is the only way to make it fully readable on mobile screens without cutting off.

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.

4 participants