Repository navigation
Replace MuseScore with Audacity branding and remove dead code - #10633
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 9e9e024bedb8128dfb9dcfde92d12ba82dc01bef and 1690821. 📒 Files selected for processing (25)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR rebadges MuseScore-specific identifiers and UI to Audacity/app terminology, replacing many Sequence Diagram(s)Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
f21e1bd to
33355fb
Compare
There was a problem hiding this comment.
Actionable comments posted: 7
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
buildscripts/packaging/Linux+BSD/portable/AppRun.in (1)
31-31:⚠️ Potential issue | 🟡 Minor
MUSE_APP_INSTALL_SUFFIXshould be renamed to remove the MuseScore branding from the build system.This variable is a MuseScore remnant that has not been renamed. While this specific occurrence is in
AppRun.in, the variable is used systematically throughout the build configuration—in executable naming, icon files, desktop entries, AppData files, and MIME type definitions. Renaming toAUDACITY_APP_INSTALL_SUFFIX(or similar) would be required insrc/app/CMakeLists.txt,ci_build.cmake, and multiple packaging scripts for consistency with the Audacity branding goals.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 37ddc353-52e0-4dba-b146-3953df83cbf3
📥 Commits
Reviewing files that changed from the base of the PR and between e7be04e and 33355fbe4bf47c1b6b35101a7c57cd1ee530f390.
📒 Files selected for processing (24)
buildscripts/packaging/Linux+BSD/portable/AppRun.inbuildscripts/packaging/Windows/PortableApps/help.htmlsrc/appshell/appshelltypes.hsrc/appshell/iappshellconfiguration.hsrc/appshell/internal/applicationactioncontroller.cppsrc/appshell/internal/applicationuiactions.cppsrc/appshell/internal/appshellconfiguration.cppsrc/appshell/internal/appshellconfiguration.hsrc/appshell/internal/splashscreen/newinstanceloadingscreenview.cppsrc/appshell/qml/Audacity/AppShell/AboutDialog.qmlsrc/appshell/qml/Audacity/AppShell/Main.wasm.qmlsrc/appshell/qml/Audacity/AppShell/aboutmodel.cppsrc/appshell/qml/Audacity/AppShell/aboutmodel.hsrc/appshell/qml/Audacity/AppShell/platform/win/AppTitleBar.qmlsrc/appshell/qml/Audacity/AppShell/projectpagemodel.cppsrc/appshell/qml/Audacity/AppShell/projectpagemodel.hsrc/playback/internal/playbackuiactions.cppsrc/preferences/qml/Audacity/Preferences/UpdatePreferencesPage.qmlsrc/preferences/qml/Audacity/Preferences/internal/AutomaticUpdateSection.qmlsrc/preferences/qml/Audacity/Preferences/internal/PublishMuseScoreComSection.qmlsrc/preferences/qml/Audacity/Preferences/updatepreferencesmodel.cppsrc/preferences/qml/Audacity/Preferences/updatepreferencesmodel.hsrc/project/internal/opensaveprojectscenario.cppsrc/project/internal/projectuiactions.cpp
💤 Files with no reviewable changes (5)
- src/project/internal/projectuiactions.cpp
- src/preferences/qml/Audacity/Preferences/internal/PublishMuseScoreComSection.qml
- src/appshell/appshelltypes.h
- src/appshell/qml/Audacity/AppShell/projectpagemodel.h
- src/appshell/qml/Audacity/AppShell/projectpagemodel.cpp
| UiAction("about-audacity", | ||
| au::context::UiCtxAny, | ||
| au::context::CTX_ANY, | ||
| TranslatableString("action", "&About MuseScore…") | ||
| TranslatableString("action", "&About Audacity…") | ||
| ), |
There was a problem hiding this comment.
Keep about-musescore as a compatibility alias.
Changing the primary action code to about-audacity without an alias is a breaking rename for any persisted shortcut/menu bindings that still reference about-musescore. This table already preserves compatibility for other renamed action identifiers, so this one should too.
Compatibility-safe change
- UiAction("about-audacity",
+ UiAction("about-audacity",
+ { "about-musescore" },
au::context::UiCtxAny,
au::context::CTX_ANY,
TranslatableString("action", "&About Audacity…")
),There was a problem hiding this comment.
@kryksyh, you're right — I apologize for the noise. Since about-musescore was an action code inherited from the MuseScore fork and was never a valid Audacity identifier, there are no real-world persisted bindings to worry about. The rename to about-audacity is a straightforward and correct cleanup with no compatibility concerns.
| std::string AppShellConfiguration::appRevision() const | ||
| { | ||
| return std::string(); | ||
| //return MUSESCORE_REVISION; | ||
| } | ||
|
|
||
| bool AppShellConfiguration::isNotationNavigatorVisible() const | ||
| { | ||
| return false; | ||
| //return uiConfiguration()->isVisible(NOTATION_NAVIGATOR_VISIBLE_KEY, false); | ||
| } | ||
|
|
||
| void AppShellConfiguration::setIsNotationNavigatorVisible(bool visible) const | ||
| { | ||
| UNUSED(visible); | ||
| //uiConfiguration()->setIsVisible(NOTATION_NAVIGATOR_VISIBLE_KEY, visible); | ||
| } | ||
|
|
||
| muse::async::Notification AppShellConfiguration::isNotationNavigatorVisibleChanged() const | ||
| { | ||
| return muse::async::Notification(); | ||
| //return uiConfiguration()->isVisibleChanged(NOTATION_NAVIGATOR_VISIBLE_KEY); | ||
| } |
There was a problem hiding this comment.
appRevision() currently blanks the visible revision.
AboutModel::appRevision() just forwards this value, so the About dialog now shows Revision: with no build id even though copyRevisionToClipboard() still has the real revision. Returning the same revision string here keeps both surfaces consistent.
Keep the UI and clipboard output aligned
std::string AppShellConfiguration::appRevision() const
{
- return std::string();
+ return application()->revision().toStdString();
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| std::string AppShellConfiguration::appRevision() const | |
| { | |
| return std::string(); | |
| //return MUSESCORE_REVISION; | |
| } | |
| bool AppShellConfiguration::isNotationNavigatorVisible() const | |
| { | |
| return false; | |
| //return uiConfiguration()->isVisible(NOTATION_NAVIGATOR_VISIBLE_KEY, false); | |
| } | |
| void AppShellConfiguration::setIsNotationNavigatorVisible(bool visible) const | |
| { | |
| UNUSED(visible); | |
| //uiConfiguration()->setIsVisible(NOTATION_NAVIGATOR_VISIBLE_KEY, visible); | |
| } | |
| muse::async::Notification AppShellConfiguration::isNotationNavigatorVisibleChanged() const | |
| { | |
| return muse::async::Notification(); | |
| //return uiConfiguration()->isVisibleChanged(NOTATION_NAVIGATOR_VISIBLE_KEY); | |
| } | |
| std::string AppShellConfiguration::appRevision() const | |
| { | |
| return application()->revision().toStdString(); | |
| } |
There was a problem hiding this comment.
To be fixed later during the overhaul of the about dialog.
There was a problem hiding this comment.
@kryksyh, understood — I'll note this for the upcoming about dialog overhaul. Would you like me to open a GitHub issue to track the fix for appRevision() returning an empty string so it doesn't get lost?
| text: qsTrc("appshell/about", "Copyright © 1999-2025 Audacity contributors and others.\nPublished under the <a href=\"%1\">GNU General Public License version 3</a>.") | ||
| .arg("https://www.gnu.org/licenses/gpl-3.0.html") | ||
| .replace("\n", "<br>") |
There was a problem hiding this comment.
Update the copyright year before release.
As of March 31, 2026, this string is already stale: it still says 1999-2025. Please compute the trailing year instead of hard-coding it so the About dialog does not ship outdated legal text.
One way to keep it current
- text: qsTrc("appshell/about", "Copyright © 1999-2025 Audacity contributors and others.\nPublished under the <a href=\"%1\">GNU General Public License version 3</a>.")
- .arg("https://www.gnu.org/licenses/gpl-3.0.html")
+ text: qsTrc("appshell/about", "Copyright © 1999-%1 Audacity contributors and others.\nPublished under the <a href=\"%2\">GNU General Public License version 3</a>.")
+ .arg(new Date().getFullYear())
+ .arg("https://www.gnu.org/licenses/gpl-3.0.html")
.replace("\n", "<br>")| QVariantMap AboutModel::privacyPolicyUrl() const | ||
| { | ||
| //! TODO AU4 | ||
| // QUrl museScorePrivacyPolicyUrl(QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl())); | ||
| // return makeUrl(museScorePrivacyPolicyUrl); | ||
| // QUrl url(QString::fromStdString(updateConfiguration()->privacyPolicyUrl())); | ||
| // return makeUrl(url); | ||
| return QVariantMap(); | ||
| } |
There was a problem hiding this comment.
privacyPolicyUrl() is wired to a dead stub.
AboutDialog.qml now builds the privacy-policy anchor from this method, but the implementation always returns an empty QVariantMap. That leaves the link empty/undefined at runtime and effectively removes the privacy-policy path from the About dialog. Please restore a real source before switching the UI over to this accessor.
If useful, I can sketch the minimal wiring to surface the real URL again.
🧰 Tools
🪛 Cppcheck (2.20.0)
[style] 69-69: The function 'privacyPolicyUrl' is never used.
(unusedFunction)
There was a problem hiding this comment.
@kryksyh, understood — the //! TODO AU4 comment already flags it as a known gap. Would you like me to open a follow-up GitHub issue to track restoring the real privacy policy URL wiring in privacyPolicyUrl()?
e198d56 to
9e9e024
Compare
|
|
||
| wrapMode: Text.WordWrap | ||
| maximumLineCount: 3 | ||
| } | ||
|
|
||
| StyledTextLabel { | ||
| Layout.fillWidth: true | ||
| text: qsTrc("appshell/about", "Copyright © 1999-2024 MuseScore BVBA and others.\nPublished under the <a href=\"%1\">GNU General Public License version 3</a>.") | ||
| text: qsTrc("appshell/about", "Copyright © 1999-2025 Audacity contributors and others.\nPublished under the <a href=\"%1\">GNU General Public License version 3</a>.") |
There was a problem hiding this comment.
Actionable comments posted: 2
♻️ Duplicate comments (1)
buildscripts/packaging/Windows/PortableApps/help.html (1)
156-157:⚠️ Potential issue | 🟡 MinorReplace the remaining plaintext Audacity link with HTTPS.
Line 157 still uses
http://www.audacityteam.org; switch it to HTTPS to avoid plaintext navigation.🔧 Suggested patch
-It has all the same great features as Audacity and it leaves nothing behind on the machine you run it on. <a href="http://www.audacityteam.org">Learn more about Audacity...</a></p> +It has all the same great features as Audacity and it leaves nothing behind on the machine you run it on. <a href="https://www.audacityteam.org">Learn more about Audacity...</a></p>
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 65b065c9-7e6c-48ef-b27a-feb1cb68dd74
📥 Commits
Reviewing files that changed from the base of the PR and between 33355fbe4bf47c1b6b35101a7c57cd1ee530f390 and 9e9e024bedb8128dfb9dcfde92d12ba82dc01bef.
📒 Files selected for processing (13)
buildscripts/packaging/Windows/PortableApps/help.htmlsrc/appshell/internal/appshellconfiguration.cppsrc/appshell/internal/splashscreen/newinstanceloadingscreenview.cppsrc/appshell/internal/splashscreen/newinstanceloadingscreenview.hsrc/appshell/qml/Audacity/AppShell/AboutDialog.qmlsrc/appshell/qml/Audacity/AppShell/Main.wasm.qmlsrc/appshell/qml/Audacity/AppShell/platform/win/AppTitleBar.qmlsrc/preferences/qml/Audacity/Preferences/UpdatePreferencesPage.qmlsrc/preferences/qml/Audacity/Preferences/internal/AutomaticUpdateSection.qmlsrc/preferences/qml/Audacity/Preferences/internal/PublishMuseScoreComSection.qmlsrc/preferences/qml/Audacity/Preferences/updatepreferencesmodel.cppsrc/preferences/qml/Audacity/Preferences/updatepreferencesmodel.hsrc/project/internal/opensaveprojectscenario.cpp
💤 Files with no reviewable changes (1)
- src/preferences/qml/Audacity/Preferences/internal/PublishMuseScoreComSection.qml
| text: qsTrc("appshell/about", "For privacy information, see our <a href=\"%1\">privacy policy</a>.") | ||
| .arg(aboutModel.museScorePrivacyPolicyUrl().url) | ||
| .arg(aboutModel.privacyPolicyUrl().url) |
There was a problem hiding this comment.
privacyPolicyUrl().url will be undefined at runtime.
Per the implementation in aboutmodel.cpp (lines 70-75), privacyPolicyUrl() returns an empty QVariantMap() with a TODO AU4 marker. Accessing .url on an empty map yields undefined, causing the privacy policy link to be broken.
Consider either:
- Returning a placeholder URL until the TODO is addressed
- Adding a conditional to hide the privacy policy section when the URL is empty
Verify the broken link behavior
#!/bin/bash
# Check the privacyPolicyUrl implementation
rg -n -A5 'privacyPolicyUrl\(\)' --type cpp| QString UpdatePreferencesModel::privacyPolicyUrl() const | ||
| { | ||
| return QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl()); | ||
| } |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
Incomplete rename: internal call still uses MuseScore-branded method.
The public API is correctly renamed to privacyPolicyUrl(), but the implementation still delegates to updateConfiguration()->museScorePrivacyPolicyUrl(). This creates a naming inconsistency between the Audacity-branded public API and the MuseScore-branded internal configuration interface.
Since the PR description states changes are "not intended to be comprehensive," this may be acceptable as a follow-up item. Consider adding a TODO comment or tracking this for a future cleanup pass to rename IUpdateConfiguration::museScorePrivacyPolicyUrl() to privacyPolicyUrl() for full consistency.
📝 Optional: Add tracking comment
QString UpdatePreferencesModel::privacyPolicyUrl() const
{
+ // TODO: Rename IUpdateConfiguration::museScorePrivacyPolicyUrl() to privacyPolicyUrl()
return QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl());
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| QString UpdatePreferencesModel::privacyPolicyUrl() const | |
| { | |
| return QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl()); | |
| } | |
| QString UpdatePreferencesModel::privacyPolicyUrl() const | |
| { | |
| // TODO: Rename IUpdateConfiguration::museScorePrivacyPolicyUrl() to privacyPolicyUrl() | |
| return QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl()); | |
| } |
| @@ -52,7 +52,7 @@ void UpdatePreferencesModel::setNeedCheckForNewAppVersion(bool value) | |||
| emit needCheckForNewAppVersionChanged(value); | |||
| } | |||
|
|
|||
| QString UpdatePreferencesModel::museScorePrivacyPolicyUrl() const | |||
| QString UpdatePreferencesModel::privacyPolicyUrl() const | |||
| { | |||
| return QString::fromStdString(updateConfiguration()->museScorePrivacyPolicyUrl()); | |||
There was a problem hiding this comment.
museScorePrivacyPolicyUrl
There was a problem hiding this comment.
this guy comes from the framework, to be fixed there
| static const DockName NOTATION_NAVIGATOR_PANEL_NAME("notationNavigatorPanel"); | ||
| static const DockName NOTATION_BRAILLE_PANEL_NAME("notationBraillePanel"); | ||
|
|
||
| static const DockName MIXER_PANEL_NAME("mixerPanel"); |
There was a problem hiding this comment.
i understand mixerpanel will comeback later
luapmartin
left a comment
There was a problem hiding this comment.
I can't see the src/preferences/qml/Audacity/Preferences/internal/PublishMuseScoreComSection.qml online but the rest is checked with some comments
9e9e024 to
1690821
Compare
Removes dead MuseScore code, replaces MuseScore with Audacity where appropriate
This is not a comprehensive PR, we may need to do follow-up changes.
Recommended:
QA: