-
Notifications
You must be signed in to change notification settings - Fork 177
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 contacts menu integration #173
Conversation
Signed-off-by: Christoph Wurst <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #173 +/- ##
==========================================
- Coverage 16% 15.58% -0.42%
==========================================
Files 50 52 +2
Lines 1050 1142 +92
==========================================
+ Hits 168 178 +10
- Misses 882 964 +82
Continue to review full report at Codecov.
|
3fd93f2
to
bbb0fcd
Compare
@ChristophWurst is this already up for first review or too much in-development state? :) |
still WIP |
Signed-off-by: Christoph Wurst <[email protected]>
bbb0fcd
to
7df5447
Compare
A few bugs so far:
cc @nextcloud/contacts help appreciated. :) |
@nextcloud/contacts any idea how I can distinguish between vcards from the system address book and the user address book? The data structures looks similar unfortunately, there's nothing specific to contacts from the contacts app it seems 🤔 |
Signed-off-by: Christoph Wurst <[email protected]>
If you have access to the URI, it should contain |
Thanks. Apparently the URI for system contacts is their UID. However, I've found what I was looking for: |
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
@@ -60,6 +57,11 @@ public function process(IEntry $entry) { | |||
return; | |||
} | |||
|
|||
if ($entry->getProperty('isLocalSystemBook') === true) { | |||
// Cannot show details -> ignore | |||
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.
Will this still show their email address though? Because that can be set in the personal details. :) The only thing which should be hidden is the details icon, not the whole entry.
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.
email actions are added by the server, also for internal users
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.
it doesn't hide the entry. it just doesn't add any action 😉
@skjnldsv you mentioned that it's easy to add that. Could you please tell me where I have to adjust the code? I presume it starts with a dedicated route in |
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
Kinda figured out how to possibly do that: 026d509 |
@ChristophWurst found the reason (https://github.com/nextcloud/contacts/blob/contactsmenu-integration/js/components/contactList/contactList_controller.js#L142) and fixed it with a commit. Will make some changes to the url design in a follow-up pr ref. owncloud/contacts#45 (comment) |
@irgendwie thanks a lot \o/ |
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.
Can’t see any immediate issues 👍
WIP - requires nextcloud/server#3233
TODO