Giter Site home page Giter Site logo

belohoub / ubsync Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 5.0 24.77 MB

UBsync is the featured OwnCloud/Nextcloud data synchronization app for ubuntu-touch

License: Other

QML 52.86% QMake 2.31% Python 1.36% Shell 0.07% JavaScript 0.42% C++ 42.03% C 0.94%
nextcloud owncloud ubports ubuntu-touch linux-mobile ubuntutouch

ubsync's People

Contributors

altokos avatar anne017 avatar belohoub avatar bittin avatar comradekingu avatar danfro avatar ernesst avatar ivoxavier avatar j2g2rp avatar kalinovka avatar lundrin avatar maciek134 avatar mkljczk avatar sggua avatar sudcapitano avatar umeaboy avatar vistaus avatar weblate avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ubsync's Issues

(Focal) No sync on WiFi, when sync on mobile is not allowed

When the service got started, while cellular data was active in the network-indicator, it is not possible to (manually) initiate a sync, even if WiFi got activated meanwhile.

The Owncloudsynd log:

[07.04.23 14:02] Network Connection Type: "Unknown"
[07.04.23 14:02] Mobile Data Sync:  false
[07.04.23 14:02] No Sync on Mobile Data - Check User Settings - Unable to Sync```

Further testing reveals, that syncing with mobile data does not seem to work at all. Even if is allowed in settings.
In case of active mobile data (network-manager) the Network Connection Type is always "Unknown".
In case of WiFi I already spotted two different types: "Ethernet" and "WLAN".

Feature request: Show Sync Interval set on the Target Page

This request was formulated by Danfro at Telegram:

I think it would be good for targets to show the sync interval set.
Sync interval is set per account. Maybe even make that a link to the relevant account, so the user can quickly change the intervall.

The 'target will sync' could be made ' target will sync every 1 hour'.

Feature request: Layout Evolution

This request was formulated by Danfro at Telegram:

I just had an idea how the apps name in the header could be kept:
Have two tabs. One: sync targets, second: accounts
You could even app an AdaptivePageLayout, so when you turn the phone into landscape, you get both tabs displayed, one on the left half, one on the right half of the screen.

Bug: target list jumps back to top after scrolling down

This issue exists in the xenial and the focal version.

I have configured 13 targets.
As soon as the third target is "leaving" the top of the display, when scrolling down, and the finger is released, the list jumps back and displays the third target at the top.

That makes it very hard, to edit the targets in the bottom of the list. You have to be very quick in tapping it, before it jumps back to top.

ubsync_listjump-2023-04-03_01.34.48.mp4

Disable root synchronization

Root folder at remote server could be accidentally selected (e.g. when network is not available). It should be disabled to prevent full cloud sync.

Optionally, root folder sync could be enabled when confirmed by user twice.

UBsync 'start: job failed to start' error from the UT Log viewer app

Hi,

Firstly, thank you for attempting to port the UBsync app to the arm64 version of UT.

Im having an issue when I click on 'Start' to start the service.

start: Job failed to start
qml: PopupStatusBox.qml - hide
qml: PopupStatusBox.qml - hide
QObject::startTimer: Timers cannot be started from another thread.

Im using an existing connected Nextcloud account that I use for the calendar app and Jotit cloud notes.
When I select that account for UBsync, I get the above errors in the Log Viewer.

Thanks.

multiline strings are not translatable with gettext

Multiline texts as this are not translatable with gettext. Only the very first line will get extracted.

So we need to either make them one line by one or have one long string that is wrapped in another way. One option is to have sentences listed in a model and get a repeater to print them similar to what I did in weather apps changelog. Not sure if that works good here too.

Also html tags are not good in translatable strings since it needs the translator to place them exactly in the same place.

Safety logic or better UX when adding new sync directories

Description

I'm not sure exactly how it happened but I accidentally added my whole NC to sync on my device. I was trying to add a single directory and if I remember correctly, I tried to enter the name/label multiple times. When is the sync actually added anyway? What happened to me is that a correct entry was added but also another one with empty target NC directory and I guess it treated that as the root NC directory.

Target list cannot be scrolled properly

Steps to Reproduce

  1. Add targets that will make the list longer than the phone's height, in short make the list scrollable

Expected Results

List is scrollable as expected

Actual Results

List is scrollable but when you scroll further down, the list seems to reset to the top making it impossible to select the bottom items.

UBsync not in OpenStore, manual install doesn't work

Probably not an issue with UBsync, sorry...

I'm on a OnePlus 5T and last time I installed UT a couple of days ago UBsync was there and worked great.

I then went back to stock on this 5T, and installed UT on another 5T...

..but UBsync isn't in the onboard OpenStore app any more!

So I got UBsync from the OpenStore web page and installed it and it runs apparently OK, but the sync won't start (and I can't uninstall it either).

Again, apologies if this is nothing to do with you, but if you can help me that would be fab!

2FA Support

Authentication fails when 2FA is enabled on server needs 2FA support

Remote view does not refresh properly

Steps to Reproduce

  1. Go to accounts list
  2. Select an account
  3. Add a new target
  4. Select local directory
  5. Select remote directory

Expected Results

Shows the list of root folders of the remote server

Actual Results

No list shown. Only the text on how to add a target is shown.

Additional Information

This issue does not happen when editing the target again from the main page.
Also, the issue stopped happening though not sure what exactly triggered it. Last I remember is I tried to select the remote directory first before the local. After that, it worked fine until I restarted the app

Feature request: Backend Autostart

Add the support for backend autostart configuration.

Currently, the upstart script starts automatically after reboot.

User autostart ON/OFF from UI could be a good solution.

Enhancement request to select specific files for sync

Would like to suggest an enhancement request of being able to select specific files for target sync. currently have a file i wish to sync in a folder where there are lots of folders and files within. so by only being able to select the folder it syncs more than i want.

WebDAV View Fine Tuning

WebDAV currently does not provide any meaningful response to the user in case of failure.

Additionally, code review is needed.

Account "Not configured" when created

Currently, an account is not configured when newly added to UBsync.

It becomes configured immediately when the user does some edit action (e.g. change Account name), but the default behavior seems confusing for users - up now reported twice on Telegram.

I propose to change this default behavior - save account (automatically) to the database immediately when enabled/added.

Problem refreshing when columns are shown (wide screens)

This bug can be reproduced on 0.7.2 when the screen is wide enough to show columns.
When you are creating new targets the left column where targets should be shown is not refreshed (left column). There are two possibilities:

  1. If you are configuring the first targets after select an account on the left column will be showing the startup procedure guiding you to account icon. There is no possibilities to refresh this column manually just closing the app and opening again. If you had configured a target the target is shown there.
  2. If you already had some targets you can refresh the targets scrolling left column.

Errors in systemctl

i'v noticed a lot of erros caused by ubsync, i am not sure what it was caused by, but i was not able to use app, targets were orange and accounts purple may not be relevant, ubuntu focal

output of command journalctl -e | grep UBsync-ui | awk '{$1=$2=$3="";print $0}' | sort | uniq

ubuntu-phablet aa-exec[5002]: file:///opt/click.ubuntu.com/ubsync/0.8.1/UBsync-ui/ui/AccountsPage.qml:281:9: QML Label: Cannot anchor to an item that isn't a parent or sibling.
ubuntu-phablet aa-exec[5002]: file:///opt/click.ubuntu.com/ubsync/0.8.1/UBsync-ui/ui/EditAccount.qml:103: TypeError: Value is undefined and could not be converted to an object
ubuntu-phablet aa-exec[5002]: file:///opt/click.ubuntu.com/ubsync/0.8.1/UBsync-ui/ui/EditTarget.qml:132: TypeError: Value is undefined and could not be converted to an object
ubuntu-phablet aa-exec[5002]: file:///opt/click.ubuntu.com/ubsync/0.8.1/UBsync-ui/ui/HelpPage.qml:34:5: QML Grid: Cannot specify anchors for items inside Grid. Grid will not function.
ubuntu-phablet aa-exec[5002]: file:///opt/click.ubuntu.com/ubsync/0.8.1/UBsync-ui/ui/MenuPage.qml:51:13: QML Grid: Cannot specify anchors for items inside Grid. Grid will not function.
ubuntu-phablet dbus-daemon[2876]: [session uid=32011 pid=2876] Activating service name='com.lomiri.OnlineAccounts.Manager' requested by ':1.131' (uid=32011 pid=5002 comm="/usr/lib/qt5/bin/qmlscene UBsync-ui/Main.qml" label="ubsync_UBsync_0.8.1 (enforce)")

General Discussion: "Target" Term

In a closed telegram "testers" group, we discussed the intuitiveness of the used term "target".

I proposed, that the term should:

  1. be intuitive (most important)
  2. be semantically correct
  3. be not overloaded, and consistently used in the app

Plus a personal feeling: I would prefer a single word (we can use the full name with an adjective like "sync something", but it should be clear without the adjective as well)

The target was proposed by me,. It was inspired by Makefile targets. typical Makefile target: "updated executable"; UBsync target: "synced folders"

However, "target" is suspect not to be intuitive for new users, more intuitive terms proposed: item, directory, folder + adjectives

For now, we retained "target", but the discussion remains "open" for future releases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.