Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Dec 4, 2025

Upgrade @nextcloud/vue from ^8.27.0 to ^8.34.0 to resolve focus-trap library version mismatch with the guests app. The mismatch caused "_setPausedState is not a function" error when opening the guest invite dialog from the Teams member picker.

Without this the "Invite guest" modal does not work over the "Add team members" modal.

Upgrade @nextcloud/vue from ^8.27.0 to ^8.34.0 to resolve focus-trap
library version mismatch with the guests app. The mismatch caused
"_setPausedState is not a function" error when opening the guest
invite dialog from the Teams member picker.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/focus-trap-version-mismatch branch from 31b818d to ff6515c Compare December 4, 2025 19:48
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@DaphneMuller
Copy link

@nfebe is it a problem that the tests are failing and who would be a good reviewer for this?
@janepie will also give a review

@SebastianKrupinski
Copy link
Contributor

Hi @nfebe

This probably needs a transformation exclusion like in calendar.

https://github.com/nextcloud/calendar/blob/5f1e875a3d36291bbd394c628efdb0e0c97d8c88/package.json#L150

@nfebe
Copy link
Contributor Author

nfebe commented Dec 8, 2025

@nfebe is it a problem that the tests are failing and who would be a good reviewer for this?

Yes, I made a fix but I will review the recently suggested workaround as well.

Should be done today.

1 similar comment
@nfebe
Copy link
Contributor Author

nfebe commented Dec 8, 2025

@nfebe is it a problem that the tests are failing and who would be a good reviewer for this?

Yes, I made a fix but I will review the recently suggested workaround as well.

Should be done today.

The jsdom test environment does not provide structuredClone, which is
used by @nextcloud/vue components.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
Comment on lines +8 to +10
if (typeof structuredClone === 'undefined') {
global.structuredClone = (val) => JSON.parse(JSON.stringify(val))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Available since Node 17 so should not be needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests fail without it for some reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@janepie janepie self-requested a review December 12, 2025 14:46
Copy link
Member

@janepie janepie left a comment

Choose a reason for hiding this comment

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

Fixes the issue

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.

6 participants