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

Move task-body actions into Action dropdown #866

Merged
merged 6 commits into from Mar 6, 2020
Merged

Conversation

raimund-schluessler
Copy link
Member

@raimund-schluessler raimund-schluessler commented Feb 12, 2020

This PR moves the action icons / buttons into an Action component dropdown. This cleans up the task-body and allows to align the dates and icons better. We also have a delete action in the drop-down now which was requested as well at some point (and it makes sense, we have that for files as well).

It looks like this:
Screenshot_2020-03-02 Tasks - Nextcloud

With menu open:
Screenshot_2020-03-02 Tasks - Nextcloud(2)

The alignment of the date is not perfect, since for some tasks there are no actions to show (tasks in read-only calendars without subtasks). And since the due dates might have different widths the position of the icons left of the due dates might also shift. But I think it is as good as it gets in terms of alignment. Also, it looks a bit cleaner now, since most of the icons are now in the action dropdown.

Closes #854.

Feedback would be welcome @jancborchardt @skjnldsv @nextcloud/designers.

@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #866 into master will increase coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #866      +/-   ##
==========================================
+ Coverage   30.95%   31.11%   +0.15%     
==========================================
  Files          25       25              
  Lines        1305     1305              
  Branches      235      235              
==========================================
+ Hits          404      406       +2     
+ Misses        766      764       -2     
  Partials      135      135

@raimund-schluessler
Copy link
Member Author

raimund-schluessler commented Mar 2, 2020

Updated my comment #866 (comment). PR is ready to be merged.

@Valdnet
Copy link
Contributor

Valdnet commented Mar 3, 2020

In my opinion, the date column should have a constant width. This would exclude shifting of the "Description" icon of the task, which for eg "Today" and "Yesterday" appears on the date field. It slightly disrupts the visualization.

obraz

Isn't that better? I know it takes up some space, but that's enough you can afford 😉.

obraz

@raimund-schluessler
Copy link
Member Author

In my opinion, the date column should have a constant width. This would exclude shifting of the "Description" icon of the task, which for eg "Today" and "Yesterday" appears on the date field. It slightly disrupts the visualization.

I also thought about that, but the problem is that the width of the due date might vary with different languages. We would need to ellipsise the date in case this happens. I don't know if we want this.

@skjnldsv
Copy link
Member

skjnldsv commented Mar 3, 2020

I also thought about that, but the problem is that the width of the due date might vary with different languages. We would need to ellipsise the date in case this happens. I don't know if we want this.

Yep, this is the issue without subgrid or table :(
I'd put it to a sufficient size and pray for the best 😁

@Valdnet
Copy link
Contributor

Valdnet commented Mar 3, 2020

@raimund-schluessler This takes the minimum table width for the date and the maximum width for the word. I think that in another language they are not long enough to take up a lot of space.

@raimund-schluessler
Copy link
Member Author

I'd put it to a sufficient size and pray for the best 😁

Let's do it like this.

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Remove after nextcloud-libraries/nextcloud-vue#641 is merged

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler
Copy link
Member Author

raimund-schluessler commented Mar 6, 2020

I set a fixed width for the date now and put an ellipsis in case it overflows. Looks quite good.

I realised the delete action might be clicked accidentally now that it is near the other actions, so I will add an undo option like we have it for the calendars list.

  • Implement delete undo

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler
Copy link
Member Author

Looks like this now:

Screenshot_2020-03-06 Tasks - Nextcloud(1)

Task scheduled for deletion:

Screenshot_2020-03-06 Tasks - Nextcloud

@raimund-schluessler raimund-schluessler merged commit 567f695 into master Mar 6, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/854 branch March 6, 2020 19:38
@Valdnet
Copy link
Contributor

Valdnet commented Mar 7, 2020

@raimund-schluessler It looks awesome now. Undoing task deletion - a very good idea 🏆.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alignment of the column
3 participants