Skip to content

Conversation

@leftybournes
Copy link
Contributor

Summary

Guests are currently created through file shares and this simplifies creation by allowing users to invite guests through the contacts menu on the top right.

Before:
image

After:
image

Checklist

@leftybournes leftybournes added this to the Nextcloud 32 milestone Aug 8, 2025
@leftybournes leftybournes added the 3. to review Waiting for reviews label Aug 8, 2025
@leftybournes leftybournes marked this pull request as ready for review August 8, 2025 08:10
@leftybournes leftybournes requested review from a team as code owners August 8, 2025 08:10
@leftybournes leftybournes requested review from nfebe, skjnldsv and susnux and removed request for a team August 8, 2025 08:10
Comment on lines 189 to 191
if (OCA.Guests && OCA.Guests.openGuestDialog) {
this.$refs.contactsmenu.closeMenu()
OCA.Guests.openGuestDialog('core')
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (OCA.Guests && OCA.Guests.openGuestDialog) {
this.$refs.contactsmenu.closeMenu()
OCA.Guests.openGuestDialog('core')
}
if (window?.OCA?.Guests?.openGuestDialog) {
this.$refs.contactsmenu.closeMenu()
OCA.Guests.openGuestDialog('core')
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I would also prefer a small (not public) API here the other way around to allow adding a button.
And put the registration into guests app.

Because having external apps references in server feels the wrong way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same with what we're doing for files sharing here? https://github.com/nextcloud/guests/blob/main/src/main.js#L54

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done here: #54474 and nextcloud/guests#1380

We can just close this PR if the above ones are approved and merged.

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Added comments

@leftybournes leftybournes force-pushed the leftybournes/feat/guests_creation_simplification branch from f64f0e0 to f41652b Compare August 18, 2025 06:15
@leftybournes
Copy link
Contributor Author

Closing this in favor of:
#54474
nextcloud/guests#1380

@leftybournes leftybournes deleted the leftybournes/feat/guests_creation_simplification branch August 19, 2025 07:12
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
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.

4 participants