nextcloud / contacts

đŸ“‡ Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
568 stars 172 forks source link

Save Contact notes to Notes app #1293

Open sunjam opened 5 years ago

sunjam commented 5 years ago

This casual request is for Contact notes to be accessible for viewing and editing within the Notes app.

skjnldsv commented 5 years ago

@korelstar, is there an easy way? :) Is there an api for this? Ref the bookmark thread here: #1272

korelstar commented 5 years ago

It depends on where the actual note should be saved. I see the following possibilities (see also https://github.com/nextcloud/notes/issues/389#issuecomment-541391749):

use existing attribute field in contact

Currently, the notes app uses files in order to save notes. This has to be extended by another storage-backend for notes in a contact. Such notes could be shown in a special category (e.g. "Contacts"). Creating notes in that category from the notes app can't be possible due to the missing contact.

This approach requires some major changes in the notes app. Furthermore, the impact on the REST-API has to be evaluated.

link external note from contact

In this approach, the note is saved using existing means (I.e. a file in the file system). The notes app needs to provide an URI for creating and opening a new note (should be easy). But the contacts app has to manage the link from contact to the actual note. This could be done by saving the note's id in the contact's note field together with a special marker that indicates, that the note is saved externally.

Issues have to be solved for use-cases like deleting a contact (linked note should be deleted, too) and opening the linked contact from notes app. Furthermore, the note's content is not editable anymore from another contacts app (e.g. the contacts app on your smartphone).

edit in text-app instead

Another possibility would be to not connect contacts app and notes app, but open contact's notes in the new text editor. The notes app will also use that editor in the future, so you will have the same markdown editor across apps. This should be the easiest approach. However, you don't have your contacts' notes directly in the notes app.

skjnldsv commented 5 years ago

I think what OP wish is a way to export a note from a contact and directly open the notes app with the already filled text ?

korelstar commented 5 years ago

Oh, then please clarify this issue, @sunjam !

jancborchardt commented 4 years ago

Just like for "Save contact website" let’s keep it simple :) ( https://github.com/nextcloud/contacts/issues/1272#issuecomment-570118890 )

Design-wise:

That’s a simple first implementation. :)

brainchild0 commented 4 years ago

The count of very closely related discussions is becoming unmanageable, indicating a clear need to consolidate specific requests into general discussions. In the present case, the author of this issue has already created a more general discussion of the same flavor as the current one.

I strongly suggest closing this issue, as well as any others that are redundant or special cases of open, productive discussions.

sunjam commented 4 years ago

@brainchild0 I will not close this. It is doubtful specific app devs will be kept aware of what is going on if the issue is closed in their repos. The fact that they've been so responsive shows they obviously care; hopefully they can figure out what they want to do to better streamline communication. :heart:

Any discussion we continue should move to the forums.