Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: disable community projects tab in QField in certain cases #5910

Open
woutergd opened this issue Dec 23, 2024 · 4 comments
Open

Proposal: disable community projects tab in QField in certain cases #5910

woutergd opened this issue Dec 23, 2024 · 4 comments

Comments

@woutergd
Copy link
Contributor

Describe the issue

For certain projects we are working on, we want to use QField. However, the UI of QField provides for inexperienced users way too many buttons and options that can cause issues or wrong buttons to be pressed, so we want to have it as clean as possible.

One of these issues we encounter is during the initial sign in / loading of a project process. The community tab with public projects is always shown, while most of the times this is empty.

We would like to propose a change that this tab can be hidden, either automatically when no public projects are found, or based on a flag on the QFieldCloud server that can be linked to a user or subscription, or even server-wide.

If we implement this change, would this fit the design of QField and be accepted? Or are there already ways to implement / modify this behaviour?

@nirvn
Copy link
Member

nirvn commented Dec 30, 2024

@woutergd , have thought about this a bit, we'd be perfectly fine having the community tab disabled if the endpoint URL (i.e. cloudConnection.url) isn't *.qfield.cloud. That'd be an acceptable change we'd merge right away :)

I think on the longer run, we'd want a QFieldCloud server capabilities listing or something (that's passed on by the server when logging in or validating the session token), but IMHO, it'd be an overkill at the moment.

@m-kuhn
Copy link
Member

m-kuhn commented Dec 30, 2024

@woutergd , have thought about this a bit, we'd be perfectly fine having the community tab disabled if the endpoint URL (i.e. cloudConnection.url) isn't *.qfield.cloud. That'd be an acceptable change we'd merge right away :)

👍

I think on the longer run, we'd want a QFieldCloud server capabilities listing or something (that's passed on by the server when logging in or validating the session token), but IMHO, it'd be an overkill at the moment.

I think this would need a cross-check with the QFC team (CC @suricactus) for a proper architecture

@suricactus
Copy link
Collaborator

It is not clear to me if the community tab is empty when using the service at app.qfield.cloud or a on-premise installation @woutergd . I would assume the same as @nirvn that we talk about on-premise installation and I do agree with the proposal that the community tab makes sense only for the service provided under the *.qfield.cloud domain.

@woutergd
Copy link
Contributor Author

woutergd commented Jan 3, 2025

@m-kuhn @nirvn thanks for the feedback, we will propose a PR within the upcoming weeks with a check in the way as you propose. It is indeed currently for a self-hosted / onprem Cloud-instance, but I can imagine that in the future some kind of configuration for this can be helpfull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants