Skip to content

Fix/restore teams UI version gated - #5669

Open
GVodyanov wants to merge 2 commits into
mainfrom
fix/restore-teams-ui-version-gated
Open

Fix/restore teams UI version gated#5669
GVodyanov wants to merge 2 commits into
mainfrom
fix/restore-teams-ui-version-gated

Conversation

@GVodyanov

@GVodyanov GVodyanov commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Reverts #5635 and makes it conditional, because 34 and lower still need the UI.

34 35
34 35

🤖 AI (if applicable)

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

@GVodyanov GVodyanov self-assigned this Aug 25, 2026
@GVodyanov GVodyanov added the 3. to review Waiting for reviews label Aug 25, 2026
@GVodyanov
GVodyanov marked this pull request as draft August 25, 2026 17:30
Comment thread src/store/index.js
// If circles is enabled let's init the store
if (isCirclesEnabled) {
// Only register the teams store when we manage teams ourselves
if (isTeamManagementEnabled) {

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.

You may ask, why am I renaming this?

isCirclesEnabled used to check whether the circles "app" was installed and that's it, meanwhile isTeamManagementEnabled checks both if the app is installed and if the server version supports it. I figured seeing as it's a slightly different thing it would be best to separate the naming to not generate confusion

@GVodyanov
GVodyanov marked this pull request as ready for review August 25, 2026 17:38
This reverts commit d91b271.

The team management UI was removed in preparation for the Teams app, but
main serves Nextcloud 33 to 35. Once the app was updated on a 34
instance, teams could no longer be managed there at all.

Restore the UI unchanged here; the following commit puts it behind a
server version gate so it stays hidden on 35 and newer.

Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
Assisted-by: ClaudeCode:claude-opus-5
Teams are managed by the server itself from Nextcloud 35 on, so the app
only renders its own team management UI up to 34. The existing
isCirclesEnabled state now also requires that version and is renamed to
isTeamManagementEnabled, so every call site says what it gates. The team
route is only registered when the gate is open, because it depends on the
circles store module that is registered under the same condition.

Two pieces of the restored code were not put back verbatim: the
UserGroupContent element referenced a component that does not exist, and
the mounted hook read logger and the gate off the component instance
where neither is a property, which threw on every load once the gate is
closed.

Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
Assisted-by: ClaudeCode:claude-opus-5
@GVodyanov
GVodyanov force-pushed the fix/restore-teams-ui-version-gated branch from afeb555 to 9ff433f Compare August 25, 2026 17:40

@ChristophWurst ChristophWurst left a comment

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.

Linked the reverted PR in the PR description

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants