-
Notifications
You must be signed in to change notification settings - Fork 45
Export contact and addressbook as vcard + header restructuration fix #349
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
Conversation
|
By analyzing the blame information on this pull request, we identified @jancborchardt, @Henni and @DeepDiver1975 to be potential reviewers |
Current coverage is
|
|
The icons are too close together and look a bit strange on top of each other. I would place them left/right next to each other, with the delete icon on the right. |
|
Yes, but with more padding. The clickable area of an icon needs to be 44*44px at least. |
|
On mobile it could be shown above each other, it’s the less important view. But on desktop it should look proper.
What do you mean by that? The name should always be shown fixed? I would say not because then you have very little space for typing in the fields, when the keyboard is also expanded. |
|
I mean, in css, you need to keep a structure. This is a good example, the header become broken in mobile view. With a good fluid css design, the elements should at least rearrange to display themselves in the page. Because of the absolute we got div out of the view! Not a good idea! Unfortunately, a lot of design part in owncloud use the position absolute option and I don't think this is very convenient. :) |
|
We have the recurring issue that this is not working with 9.0.0 and 9.0.1 because the icon is not in core. |
946085d to
4cf0832
Compare
|
Okay, I wasn't sure how to proceed! Thanks Deep! :) |
|
@skjnldsv actually the absolute positioning in combination with the correct sizing (width percentage), testing and additional responsive rules works very well everywhere. Floats on the other hand are very difficult to control. Most of the time our layout is simple anyway (and I intend to keep it that way), with 3 elements max next to each other, so absolute positioning is fine. |
|
@skjnldsv I suggest that this PR should only introduce the export of a single contact. |
|
Yeah, however the export of the whole address book has higher priority for sure. I would say it should be done first. |
|
@Henni this is a single link for the addressbook too. With just a condition to check the dav lib version. @jancborchardt no, absolute positioning is not fine at all. It works because it's correctly written, but it's terrible coding for css! :p For the priority I worked for things that was possible, I couldn't do the addressbook export as long as we didn't have the possibility. Now we do, commit on his way. Edit: sorry if I sound presumptuous, this isn't on purpose at all, just my opinion (bad or good, you decide) (and i also just came back from work and I'm exhausted ;) ) |
If I remember correctly we have no mechanism on the js side to read the version number .... |
|
Thanks @DeepDiver1975 👍 |
4cf0832 to
ac1fd37
Compare
|
@DeepDiver1975 ok, seems to work. I don't really like using the controller as it seems easier to pass the whole thing into a ng-shown but parseFloat isn't declared into $scope so I can't use it, it occurred to me it was simpler this way. What do you think? Is this over complicated? @jancborchardt I will update the header later :) |
|
@jancborchardt I fixed the whole header. This is now more flexible and cross-device. ps: because there is no profile picture, the missing space is ok. This should be fixed when the upload form will be done by Henni. |
|
@skjnldsv I do like the restructuring except for the removal of the left whitespace. On the most narrow width it’s ok, but on the other widths it’s intentional to line up with the field contents. |
|
The left space is because i'm missing the div that replace the img in #342 :) |
|
Yeah, it should be added please – it gives better visual balance. You can remove it on the most narrow view if you like, but we need to show the avatar in some way there anyway. |
|
No no, I agree with you! :) |
0c3f5ed to
69cfdd4
Compare
69cfdd4 to
44aa0ec
Compare
|
Rebased and ready to go! |
| ctrl.showUrl = false; | ||
| /* globals oc_config */ | ||
| /* eslint camelcase: [2, {properties: "never"}] */ | ||
| ctrl.canExport = parseFloat(oc_config.version.substring(0, 3)) >= 9.1; |
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.
float is not really the right thing to use - generally speaking since 9.1 and 9.10 are equal in terms of float but not in terms of version. Anyway - there will never be a version higher then 9.2.
BUT: 9.1 is not the correct value to test against. you need to test against 9.0.2 because the fix has been backported
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.
Oh okay! Thanks! :)
What should I do then?
45867df to
81afb34
Compare
|
@DeepDiver1975 rebased and fixed. |
templates/addressBook.html
Outdated
| <span class="addressBookName">{{ctrl.addressBook.displayName}}</span> | ||
| <span class="utils"> | ||
| <span class="action" ng-show="ctrl.canExport"> | ||
| <span href="{{ctrl.addressBook.url}}?export" |
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.
span? Doesn't work for me ....
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.
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.
... No comment, I didn't realized! ^^
I must have left some testing.
Thanks for the commit.
Added addressbook export button Fixed header css and export button location + add empty div to replace empty space if no picture
6d0efb0 to
36aba55
Compare
|
Rebased and waiting for tests before merging. |
|
Nice, very cool! |






Fixes #247 and #248
Waiting for owncloud/core#23891 for the white download icons