Skip to content

refactor(NavigationManager): move navigation definitions into apps#60458

Merged
sorbaugh merged 3 commits into
masterfrom
refactor/navigation-manager
Jun 3, 2026
Merged

refactor(NavigationManager): move navigation definitions into apps#60458
sorbaugh merged 3 commits into
masterfrom
refactor/navigation-manager

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented May 15, 2026

Summary

The manager itself does not need to know what hardcoded-things an app provides, instead the apps itself should handle this.

Adds a bit more separation between apps business logic and the core Nextcloud backend.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 35 milestone May 15, 2026
@susnux susnux added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels May 15, 2026
@susnux susnux force-pushed the refactor/navigation-manager branch 2 times, most recently from 07e7726 to ebb1e3f Compare May 16, 2026 08:21
@susnux susnux marked this pull request as ready for review May 16, 2026 08:21
@susnux susnux requested review from a team, hweihwang and sorbaugh as code owners May 16, 2026 08:21
@susnux susnux requested review from Altahrim, CarlSchwan, icewind1991 and provokateurin and removed request for a team May 16, 2026 08:21
@susnux susnux force-pushed the refactor/navigation-manager branch 2 times, most recently from e94945b to 33914a2 Compare May 17, 2026 09:56
Comment thread apps/settings/lib/AppInfo/Application.php Outdated
}

foreach ($apps as $app) {
if (!$this->userSession->isLoggedIn() && !$this->appManager->isEnabledForUser($app, $this->userSession->getUser())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see why this is necessary now, but doesn't this lead to exposing apps to the user that they shouldn't be able to see?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See line 207-211 its basically already handled because $app is set already to enabled apps for that user

@susnux susnux force-pushed the refactor/navigation-manager branch from 33914a2 to 2b2c21f Compare May 27, 2026 09:34
@susnux susnux requested a review from provokateurin May 27, 2026 09:34
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented May 27, 2026

/backport to stable34

@susnux susnux force-pushed the refactor/navigation-manager branch from 2b2c21f to 6e6b341 Compare June 2, 2026 10:08
<nextcloud min-version="35" max-version="35"/>
</dependencies>

<navigations>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Why?

@susnux susnux force-pushed the refactor/navigation-manager branch from 6e6b341 to 7ab84bb Compare June 2, 2026 13:44
@susnux susnux requested a review from a team as a code owner June 2, 2026 13:44
@susnux susnux requested review from nfebe and removed request for a team June 2, 2026 13:44
@susnux susnux requested a review from skjnldsv June 2, 2026 13:44
susnux added 3 commits June 2, 2026 22:51
The manager itself does not need to know what hardcoded-things an app provides,
instead the apps itself should handle this.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the refactor/navigation-manager branch from 7ab84bb to 0abaf60 Compare June 2, 2026 20:51
@sorbaugh sorbaugh merged commit 50b67c1 into master Jun 3, 2026
197 of 204 checks passed
@sorbaugh sorbaugh deleted the refactor/navigation-manager branch June 3, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants