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

Enh/beta improvements #41481

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Enh/beta improvements #41481

merged 4 commits into from
Nov 22, 2023

Conversation

marcoambrosini
Copy link
Member

@marcoambrosini marcoambrosini commented Nov 15, 2023

@marcoambrosini
Copy link
Member Author

marcoambrosini commented Nov 15, 2023

There's a problem with the starring method, it does not work. Nor in master nor in this pr. Investigating the issue
@nextcloud/server-frontend any ideas?

@marcoambrosini marcoambrosini requested review from jancborchardt, a team, nfebe, sorbaugh, emoral435 and AndyScherzinger and removed request for a team November 15, 2023 05:54
@marcoambrosini marcoambrosini mentioned this pull request Nov 15, 2023
13 tasks
@marcoambrosini
Copy link
Member Author

marcoambrosini commented Nov 15, 2023

Those unquoted symbols don't look right @jancborchardt

Making the input and comments full width, solves the issue too and tidies up things a lot:

Before After
Screenshot 2023-11-15 at 15 04 41 Screenshot 2023-11-15 at 15 04 15

@marcoambrosini marcoambrosini self-assigned this Nov 15, 2023
@marcoambrosini marcoambrosini added pending documentation This pull request needs an associated documentation update enhancement 2. developing Work in progress and removed pending documentation This pull request needs an associated documentation update labels Nov 15, 2023
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.

  • The favorite indicator needs to show left in the subline still, no? Or is this related to your comment about the favoriting not working?
  • I think the unquoted symbols are fine, the quotes are much too busy. If possible the symbols could be color-main-text (not bold) to make them stand out a bit.
  • Not keeping a left gap for the avatars (and not indenting the messages) just looks off and too busy. If you look at Discord mobile for example, they also habe a gap on the left. Additionally in Talk, we sticky the avatar so on long messages you still have the context, which is great. So we should keep that. As discussed, the issue in Talk is more the space reserved for the timestamp on the right. So let's look at that separately.

@marcoambrosini
Copy link
Member Author

favorite indicator needs to show left in the subline still, no

yes, done!

@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2023

Do we display the favorited state now anywhere in the sidebar? If not, would that be a regression?

@marcoambrosini
Copy link
Member Author

marcoambrosini commented Nov 15, 2023

Yes @szaimen, in the subline

Screenshot 2023-11-15 at 18 27 25

@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2023

Yes @szaimen, in the subline

ah nice! Then looks good to me from the screenshots 👍

@@ -246,7 +261,6 @@ export default {
},
compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen,
loading: this.loading,
starred: this.fileInfo.isFavourited,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should then decide if we simply want to drop this in the library as well.

Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -189,7 +203,8 @@ export default {
* @return {string}
*/
subtitle() {
return `${this.size}, ${this.time}`
const starredIndicator = this.fileInfo.isFavourited ? '★ ' : ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const starredIndicator = this.fileInfo.isFavourited ? ' ' : ''
const starredIndicator = this.fileInfo.isFavourited ? ' ' : ''

If we want to make it more discoverable / prominent that the file is a favorite we might want to use this instead.

Copy link
Member

Choose a reason for hiding this comment

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

Is this accessible? The grey one would meet the contrast requirements I would hope.

CC @JuliaKirschenheuter

Copy link
Member

Choose a reason for hiding this comment

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

I think we would have to use an icon with alt text / aria-label, right @JuliaKirschenheuter @marcoambrosini?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well we have --icon-starred-yellow as an icon that fulfills accessibility requirements for bright and dark mode.

Copy link
Member Author

@marcoambrosini marcoambrosini Nov 16, 2023

Choose a reason for hiding this comment

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

The problem is that the NcAppSidebar only accepts a string in that subline. I suggest we add the text "favorite" beside the star, so a screen reader would read out the info too.
Contrast is ok, yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also not possible, there it's either the switch or nothing. I suggest we go ahead with this and we modify the sidebar component so that we can slot in a proper icon there as @susnux suggests

Copy link
Member

Choose a reason for hiding this comment

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

Also not possible, there it's either the switch or nothing.

Why is this not possible? Since the current solution is not accessible ("star" is not understandable as "favorite", and we can not add an aria-label) we need to do it otherwise.

Can we please do:

  • Just use an icon on the top right of the filetype icon, non-interactive like in the file list
  • The action to toggle it would be in the action menu, like you did here

@marcoambrosini @szaimen

Copy link
Contributor

Choose a reason for hiding this comment

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

Just use an icon on the top right of the filetype icon, non-interactive like in the file list

Screenshot from 2023-11-22 13-44-55

and we have already everything we need

Copy link
Contributor

Choose a reason for hiding this comment

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

Since the current solution is not accessible ("star" is not understandable as "favorite", and we can not add an aria-label) we need to do it otherwise.

I don't think that this is not accessible.

Emoji is read by a screen reader. It could be unclear that "star" means "favorite". But it is the same for all users. Any user needs to understand that "star" is "a starred file" which means "favorite".

This would be good to have a description here. But not required if we appeal to a common user experience of "starring".

Copy link
Member

Choose a reason for hiding this comment

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

Ok, thanks for the assessment @ShGKme – then @AndyScherzinger and I would agree we should merge this as-is for now.

In the long term however it could possibly be better to have an image with aria-label which is more explicit, which we could also place on the top right of the filetype icon so it is symmetric to the files list.

@solracsf solracsf added this to the Nextcloud 28 milestone Nov 21, 2023
@blizzz blizzz mentioned this pull request Nov 22, 2023
5 tasks
Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: Marco <marcoambrosini@icloud.com>
@AndyScherzinger
Copy link
Member

/compile amend /

Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Beta design feedback
8 participants