UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Contacts sorting

    Scheduled Pinned Locked Moved Support
    23 Posts 7 Posters 3.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • L Offline
        lsitongia @lduboeuf
        last edited by

        @lduboeuf I agree, it would be confusing. It would be very strange.

        1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @lduboeuf
          last edited by

          @lduboeuf said in Contacts sorting:

          Just gave a quick view of the issue. There is quite lot of change needed. ( section, fastscroll, sort filters, etc... )

          One question though, currently, contact list used Display Label. That field is hard coded as "FirstName MiddleName LastName" and stored as this in the database, it seems not possible to change that. So the list will still have FirstName LastName whereas the sorting will be based on the LastName. Can't it be confusing ?

          We can modify the UI in address-book by using the "Name + MiddleName + Firstname" instead of the DisplayLabel, at the cost of loosing a bit of performance. The DisplayLabel is the one use thought in Messaging app, Dialer-app and when receiving a call, notification. I can't find a way to set other scheme than FirstName + LastName for now.

          arubislanderA 1 Reply Last reply Reply Quote 0
          • arubislanderA Offline
            arubislander @lduboeuf
            last edited by

            @lduboeuf would this not be better left to do after the migration to QtPIM?

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            lduboeufL L 3 Replies Last reply Reply Quote 2
            • lduboeufL Offline
              lduboeuf @arubislander
              last edited by

              @arubislander said in Contacts sorting:

              @lduboeuf would this not be better left to do after the migration to QtPIM?

              yes, that is what i think too. But i'm already working locally now with the new backend πŸ˜‰

              1 Reply Last reply Reply Quote 2
              • L Offline
                lsitongia @arubislander
                last edited by

                @arubislander
                Where can I read more about this migration? Will it make Nextcloud integration easier (giving address book sync)? Thanks.

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lsitongia @arubislander
                  last edited by

                  @arubislander
                  Strange, I can't find any info on what QtPIM is, let alone this migration. Even the source code repository lacks a document file.

                  lduboeufL 1 Reply Last reply Reply Quote 0
                  • lduboeufL Offline
                    lduboeuf @lsitongia
                    last edited by lduboeuf

                    Should be doable more clean ( not in UI) with new backend.
                    But still need to be implemented.
                    https://github.com/sailfishos/nemo-qml-plugin-contacts provides one, we might take a look.

                    For the source code of QtPIM, with clickable qtcreator properly configured and F1 gives some info.

                    Or online ( doc are in cpp files ) : https://codebrowser.dev/qt5/qtpim/

                    1 Reply Last reply Reply Quote 1
                    • C Offline
                      chris_bavaria @lool_lauris
                      last edited by chris_bavaria

                      @lool_lauris
                      With Thunderbird I have now found a solution.
                      When creating a new contact, TB always generates the display name in the form "First Name Last Name".
                      This can be corrected in Settings->Advanced->Configuration.

                      mail.addr_book.displayName.lastnamefirst -> true
                      The last name is set first in the display name.
                      This only applies to newly created contacts.

                      mail.addr_book.lastnamefirst -> 1
                      The address book is sorted by last name, first name (even if you already have contacts).

                      Since I use the "Cardbook" addon in Thunderbird, I have
                      Right click on the Cardbook Address Book -> Edit Address Book -> Miscellaneous -> Generate Friendly Names

                      The default setting there are:
                      ({{1}} |)({{2}} |)({{3}} |)({{4}} |)({{5}} |)({{6}} |)({ {7}}|)

                      Here is the appropriate setting:
                      ({{4}}, |)({{1}} |)({{2}} |)({{3}} |)({{5}} |)({{6}} |)( {{7}}|)

                      Click on the "Apply to" button and select the desired address book.
                      After synchronization, all my addresses in UT are now sorted by last name and the display name is "Last Name, First Name"
                      For me this question is solved πŸ‘ :beaming_face_with_smiling_eyes:

                      Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

                      lduboeufL 1 Reply Last reply Reply Quote 0
                      • lduboeufL Offline
                        lduboeuf @chris_bavaria
                        last edited by

                        @chris_bavaria
                        :), how do you sync contacts with your TB ?.
                        But when you will edit a contact. the displayName will be changed according to FirstName + LastName

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          chris_bavaria @lduboeuf
                          last edited by

                          @lduboeuf
                          I'm using syncevolution and I created the configuration in the terminal with "--template webdav". My address book is a vCard 3.0.
                          Only the "Display name" field is used in the UT address book. As far as I found out the fields "First Name" "Last Name" are not used/displayed.
                          After the change in Thunderbird, I synchronized my contacts with the Radicale server (starts local in background with TB) and the subsequent syncevolution sync on UT refreshed all contacts.
                          If desired, I can make my configuration for the address book available as a new Topic.

                          Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

                          lduboeufL 1 Reply Last reply Reply Quote 0
                          • lduboeufL Offline
                            lduboeuf @chris_bavaria
                            last edited by

                            @chris_bavaria
                            so you export your contacts to a vcard file from TB ( which is on your PC) to UT and then sync with Evolution ?

                            I ask, because i'm working on the new contact backend, and don't know a lot about that use case.
                            Evolution will be disabled apparently, so i wonder how that kind of task will be done later

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              chris_bavaria @lduboeuf
                              last edited by

                              @lduboeuf
                              I have a small, slim service running on my PC Linux, which I start as soon as I call Thunderbird:
                              https://radicale.org/v3.html
                              Please DO NOT disable Syncevolution!
                              Syncevolution also synchronizes all calendars.
                              Here's how I set up my sync:

                              syncevolution --create-database backend=evolution-contacts database=addressbook
                              syncevolution --configure --template webdav username=chris password=123456789 syncURL=http://192.168.188.21:5232 keyring=no target-config@radicale
                              syncevolution --configure backend=evolution-contacts database=contacts @default addressbook
                              #syncevolution --configure backend=contacts database=contacts @default addressbook
                              # hier die Datenbank ID aus radicale dem Adressbuch zuordnen
                              syncevolution --configure database=http://192.168.188.21:5232/chris/cb7491ce-2181-a6cb-b3e4-ab25d8241d35/ backend=carddav target-config@radicale addressbook
                              syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@radicale username= password= radicale addressbook
                              syncevolution --configure sync=two-way backend=evolution-contacts database=addressbook radicale addressbook
                              syncevolution --sync slow radicale addressbook
                              # [ERROR] remote device ID 'syncevolution-01550ce8-4e8b-4ecb-b381-6538a552feb3' in config does not match the one from the peer 'syncevolution-33965ac5-3011-40cc-931e-7327cdfae0ea' - incorrect configuration?!
                              # Die ID in der ~/.config/syncevolution/radicale/config.ini laut Fehlermeldung austauschen ;-)
                              # anschließend sollte mit <$syncevolution --sync slow radicale addressbook> die Synchronisatino in beide Richtungen erfolgen
                              

                              Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

                              lduboeufL 1 Reply Last reply Reply Quote 0
                              • B Offline
                                Bocephus @lduboeuf
                                last edited by

                                @lduboeuf No, it will not be confusing; it will be a lot better than the current condition in any case.

                                Whoever thought sorting by first name was a good idea anyway? That is just not done, unless you are 5 years old and your only contacts are "Dad", "Gjammy" and "Mom".

                                lduboeufL 1 Reply Last reply Reply Quote 0
                                • lduboeufL Offline
                                  lduboeuf @chris_bavaria
                                  last edited by

                                  @chris_bavaria said in Contacts sorting:

                                  Please DO NOT disable Syncevolution!

                                  cc @mardy πŸ™‚

                                  1 Reply Last reply Reply Quote 0
                                  • lduboeufL Offline
                                    lduboeuf @Bocephus
                                    last edited by

                                    @bocephus said in Contacts sorting:

                                    Whoever thought sorting by first name was a good idea anyway? That is just not done, unless you are 5 years old and your only contacts are "Dad", "Gjammy" and "Mom".

                                    Not an issue for me, but probably not a heavy contact user. User should have the choice yes, that feature is common in address book managements system but the dev impact seems quite heavy.

                                    lduboeufL 1 Reply Last reply Reply Quote 0
                                    • lduboeufL Offline
                                      lduboeuf @lduboeuf
                                      last edited by

                                      @lduboeuf BTW if any developers around, address-book-app is very easy to test at least with clickable ide qtcreator, and we can work with our real data. Show in Phone mode and Desktop.

                                      arubislanderA 1 Reply Last reply Reply Quote 0
                                      • arubislanderA Offline
                                        arubislander @lduboeuf
                                        last edited by

                                        @lduboeuf said in Contacts sorting:

                                        @lduboeuf BTW if any developers around, address-book-app is very easy to test at least with clickable ide qtcreator, and we can work with our real data. Show in Phone mode and Desktop.

                                        @lsitongia ☝🏾

                                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                        Happily running Ubuntu Touch
                                        Google Pixel 3a (20.04 DEV)
                                        JingPad (24.04 preview)
                                        Meizu Pro 5 (16.04 DEV)

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post