-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Add other Nextcloud apps to settings as suggestions #2530
Add other Nextcloud apps to settings as suggestions #2530
Conversation
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…add-other-nextcloud-apps-to-settings-as-suggestions Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> # Conflicts: # Nextcloud.xcodeproj/project.pbxproj # iOSClient/NCGlobal.swift
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…add-other-nextcloud-apps-to-settings-as-suggestions Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> # Conflicts: # Nextcloud.xcodeproj/project.pbxproj
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@jancborchardt @marinofaggiana Here is the new look on phone: And yes, I noticed that on iPhone 14s (with the new notches) the content does not have any padding (indicated with the red border). This is because we completely ignore the safe area when we render the cells. This is what we do to render them:
Fixing this is out of scope of this ticket, but I will make a new one after this is finished. |
Will also test iPad and post it here |
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@jancborchardt This is iPad: We can either increase the size of the icons or text, or reduce the max width. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #2530 +/- ##
===========================================
+ Coverage 9.37% 10.27% +0.90%
===========================================
Files 185 188 +3
Lines 26355 26354 -1
Branches 9827 9833 +6
===========================================
+ Hits 2471 2709 +238
+ Misses 23669 23417 -252
- Partials 215 228 +13
☔ View full report in Codecov by Sentry. |
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
fe41b5a
to
24e323c
Compare
please @mpivchev rebase thx |
…add-other-nextcloud-apps-to-settings-as-suggestions
@marinofaggiana done. how is this design wise? @jancborchardt ping in case missed |
@marinofaggiana I fixed the bugs with the missing sections, and from my tests everything was correct (including external sites section), but if you have time please test as well :) |
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
good ! |
That can't really work since it's a stack view |
will make some test |
@jancborchardt can be a valid alternative ?
|
@marinofaggiana this is unfortunately not really discoverable – we had it look very similar years ago where we had only "Files ⏷" displayed in the header, and few people got that Nextcloud was more than other apps. The problem is the same no matter which kind of switcher we have. Directly showing the other apps is a great way to make it very obvious. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mpivchev design-wise, the solution in #2530 (comment) looks great to me. :)
@hannesfritz in case you have input regarding how it looks on iPad – basically a pick between stretching or max-width for the group.
@mpivchev I prefer the maximum width at this point (iPad, max) ... |
@marinofaggiana @jancborchardt I think currently it looks ok and keeping going back on forth on the design is a waste of time. Waiting for approval on the code. |
@mpivchev Resolve conflicts and merge thanks! |
…add-other-nextcloud-apps-to-settings-as-suggestions Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> # Conflicts: # Nextcloud.xcodeproj/project.pbxproj
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
756367e
to
50f06b3
Compare
@marinofaggiana Added the flag + reduce complexity of section code. Tested with flag to true + external site menu and it seems to work fine. @Ivansss @tobiasKaminsky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good design-wise! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the showMoreAppsSection must be moved in NCBrand, as disable_NextcloudApps
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
please make a rebase |
…add-other-nextcloud-apps-to-settings-as-suggestions
@@ -449,7 +449,7 @@ class NCGlobal: NSObject { | |||
var capabilityExternalSites: Bool = false | |||
var capabilityGroupfoldersEnabled: Bool = false // NC27 | |||
|
|||
// MORE APPS | |||
// MORE NEXTCLOUD APPS | |||
let talkSchemeUrl = "nextcloudtalk://" | |||
let notesSchemeUrl = "nextcloudnotes://" | |||
let talkAppStoreUrl = "https://apps.apple.com/de/app/nextcloud-talk/id1296825574" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use the address apple ?
use the app scheme, if do not open you can open the "https://www.apple.com/us/search/nextcloud?src=globalnav"
example
// nextcloudtalk://open-conversation?server={serverURL}&user={userId}&withRoomToken={roomToken}
if metadata.name == NCGlobal.shared.talkName {
let pathComponents = metadata.url.components(separatedBy: "/")
if pathComponents.contains("call") {
let talkComponents = pathComponents.last?.components(separatedBy: "#")
if let roomToken = talkComponents?.first {
let urlString = "nextcloudtalk://open-conversation?server=(appDelegate.urlBase)&user=(appDelegate.userId)&withRoomToken=(roomToken)"
if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
... bla bla bla
return
}
}
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I check if the app is already installed, if not them we open the app store page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but this is the page open in emulator (Talk)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the use of app scheme nextcloudtalk:// avoids these problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I use, check the code. The app store does not open in the simulator, you have to test on actual device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understand but this
https://github.com/nextcloud/NextcloudKit/blob/a5bad2b6238ac25b3a59c9e7d91826b4f74c16c3/Sources/NextcloudKit/NKShareAccounts.swift#L120
works in simultor and not and do not required the link to apple
let talkSchemeUrl = "nextcloudtalk://"
let notesSchemeUrl = "nextcloudnotes://"
we have already all so this, so you can use thappstorelink for open the browser "https://www.apple.com/us/search/nextcloud?src=globalnav" (works with emulator)
No description provided.