Skip to content
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

Additional link to picture menu #1645

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

call-me-matt
Copy link
Member

It took me a while to find the menu where I can delete contact pictures, so here is a proposal to add an overlay and make it more visible to users. Also: moved and merged the menu from the modal, which currently has different menu entries than the button.

hidden-icon

Related issues: #1513

Implementation is very rudimentary, just to give you an idea. Next steps would be to optimize the style (edit or photo icon instead of text, chose color/transparency) and then implement it well in the scss.

@codecov
Copy link

codecov bot commented May 26, 2020

Codecov Report

Merging #1645 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1645   +/-   ##
=========================================
  Coverage     34.06%   34.06%           
  Complexity       99       99           
=========================================
  Files            14       14           
  Lines           273      273           
=========================================
  Hits             93       93           
  Misses          180      180           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d66fc3e...e6a1199. Read the comment docs.

@call-me-matt call-me-matt marked this pull request as draft May 26, 2020 00:02
@jancborchardt
Copy link
Member

Actually the button being invisible below there is not by design. :) What should happen is that the action menu shows in the top right of the viewer, next to the x button. Then clicking the image anywhere just opens the image, and from there it can be edited.

@call-me-matt
Copy link
Member Author

call-me-matt commented May 26, 2020

Why don't we put it where everyone else places this function?

github facebook google ebay
profile-github profile-facebook profile-google or profile-google2 profile-ebay

@jancborchardt
Copy link
Member

Ok, sure. :) Then let's do it like Facebook or the left example of Google do it: Overlaying the menu button on the bottom right, and having an image filetype icon.

@call-me-matt
Copy link
Member Author

I liked the other implementation from google, because it is more decent (only shown on mouse over). It's at the spot where you are looking for it and at the same time not disturbing in regular operation. Are you sure you prefer the bubble?

@jancborchardt
Copy link
Member

jancborchardt commented May 26, 2020

Sorry – you are right, I meant to say it’s good to only show the bubble on hover/focus of the picture. :) (Make sure focus also works for keyboard accessibility.)

(Closing was accidental. :)

@call-me-matt
Copy link
Member Author

Like this?
I think I don't need to treat the accessibility, as it is just an additional button, see:

overlay

@jancborchardt
Copy link
Member

Yes, almost perfect – only that the action menu should open from the overlaid image button, not from this invisible action button below the image. :)

@call-me-matt
Copy link
Member Author

Should we merge the buttons? Maybe a css pro can help?

@call-me-matt
Copy link
Member Author

I have tested it with Firefox and Chromium. Looking forward to your comments.

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good now, great job @call-me-matt! :)

Needs another code review @nextcloud/contacts

@skjnldsv
Copy link
Member

Nice!!

@skjnldsv
Copy link
Member

Is thsi ready for reviews or just a draft?

@call-me-matt
Copy link
Member Author

Is thsi ready for reviews or just a draft?

It needs a code review from someone who knows scss, I'd say

@skjnldsv skjnldsv marked this pull request as ready for review June 16, 2020 06:10
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jul 14, 2020
@skjnldsv
Copy link
Member

skjnldsv commented Jul 14, 2020

Please rebase @call-me-matt I'll do another review on this once we have the menu back in the Modal too :)

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments :)

@skjnldsv
Copy link
Member

Also, don't forget to squash and use fixups. We're already at 12 commits ;)

@skjnldsv skjnldsv added this to the next minor milestone Jul 25, 2020
@call-me-matt call-me-matt force-pushed the unhide-pic-btn branch 4 times, most recently from af9c2c4 to 4d0df73 Compare July 27, 2020 16:13
@call-me-matt
Copy link
Member Author

Design question (@jancborchardt)
Is it intentional to have the folder-icon themed?
grafik

@skjnldsv
Copy link
Member

Is it intentional to have the folder-icon themed?

Yes :p
But maybe not for the menus 🤔

@call-me-matt
Copy link
Member Author

I realized the "chose from files" icon is an image in the avatar-menu and a folder on the modal-menu. Which one to take?

@skjnldsv
Copy link
Member

I realized the "chose from files" icon is an image in the avatar-menu and a folder on the modal-menu. Which one to take?

Let's leave it like that for now? @jancborchardt

Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Jul 29, 2020
@skjnldsv skjnldsv merged commit 5a21445 into nextcloud:master Jul 29, 2020
@welcome
Copy link

welcome bot commented Jul 29, 2020

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/contacts/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
Most developers hang out on IRC. So join #nextcloud-contacts and #nextcloud-dev on Freenode for a chat!

@skjnldsv skjnldsv modified the milestones: next minor, next Sep 6, 2020
@skjnldsv skjnldsv modified the milestones: next, 3.4.0 Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants