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

Swiching table layout to flexbox layout #166

Merged
merged 19 commits into from
Oct 13, 2017
Merged

Swiching table layout to flexbox layout #166

merged 19 commits into from
Oct 13, 2017

Conversation

dartcafe
Copy link
Collaborator

First attempt for layout switching to flexbox

@dartcafe dartcafe requested review from skjnldsv and removed request for MorrisJobke October 1, 2017 08:12
@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 1, 2017

@skjnldsv: Could need some review....

@dartcafe dartcafe requested a review from v1r0x October 1, 2017 08:13
@skjnldsv
Copy link
Member

skjnldsv commented Oct 1, 2017

@dartcafe you should have mentioned me sooner! :)

@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 1, 2017

Ne. I had to play first and understand.

@skjnldsv
Copy link
Member

skjnldsv commented Oct 2, 2017

Hum, this remind me of a codepen I saw not long ago! :)
This is a nice integration of the flex layout. It could use some fixes here and there to increase the usability. Like the title length is too wide, it looks strange. The opacity on the buttons is not consistent. The thumbnail progress is missing?

Nice work ! ;)

@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 3, 2017

Got me. Yes, I used https://codepen.io/vasansr/pen/PZOJXr as a pattern, because it behaves, like I wanted the table to behave. So I could play a little bit with the synchronizion of the columns.

The status icons are back but not finished. Not sure which status we can provide and what are the right icons. I can imagine, that the followinging status are worth displaying:

  • poll finished
  • poll in progress

in combination with (not) voted by user.

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 3, 2017

Looks nice! :) A lot cleaner and less hacky 👍

@skjnldsv
Copy link
Member

skjnldsv commented Oct 3, 2017

@dartcafe nothing wrong using other's good ideas! ;)

@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 6, 2017

Changes depend on nextcloud/server#6735, because of the calculation of the time spans.

@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 8, 2017

Some suggenstions for the status icons:

  • open vote
    open-voted-vote voted by user
    open-unvoted-vote-variant unvoted by user
    open-unvoted-vote variant unvoted by user
  • closed/expired vote
    expired-voted-vote voted by user
    expired-unvoted-vote-variant-2 unvoted by user
    expired-unvoted-vote-variant variant unvoted by user
    expired-unvoted-vote variant unvoted by user

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 8, 2017

Nice work! I think it would be more consistent when closed/expired polls also have an arrow instead of the circle. The red color should be enough for (new) users to indicate that it is expired. What do you think?

open-unvoted-vote-variant unvoted by user
expired-unvoted-vote-variant-2 unvoted by user

are my favorites for unvoted :)

Moving options to "more menu"
@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 8, 2017

I choosed another icon to make it easier for color-blind people. But I think, I have to resize the arrow. I agree with the colors. After that I think we can omit the participated column.

@skjnldsv: I want to close the pull request after the decision for the icons. Can you make a review of the current state? I think, it needs some polish.
@jancborchardt: Do you have some comments?

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 12, 2017

@jancborchardt If the polls are displayed in the app navigation what should be in the main view?
I agree with you that the current UI isn't completely NC-ish, but I'm not sure if it would be better/useful in regard to the (then maybe empty) main view.

@skjnldsv
Copy link
Member

The main view should be empty then. Just load the first poll. You'll save the user many clicks! :)

@splitt3r
Copy link
Contributor

I think doing it like the Tasks app is a good choice:

Tasks

The left navigation allows filtering by active / not active anymore ... the content lists the polls for the current filter and the right sidebar has some further details or even the edit function?

But for this to work we need to nearly recreate the whole app 😁. After doing that the app will be pretty awesome and streamlined. We should consider using the deck / tasks / NC stack with Angular and some HTTP endpoints.

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 12, 2017

The main view should be empty then. Just load the first poll. You'll save the user many clicks! :)

@skjnldsv Many? Not sure about that 😉 If a user opens one poll, they save exactly 0 clicks 😛
I think an empty main view is ugly. There should be something...at least something like that. 😉

@jancborchardt
Copy link
Member

jancborchardt commented Oct 12, 2017

@v1r0x as @skjnldsv states: The left app-navigation is for listing the polls, and the app-content is for displaying one poll. :)

The left navigation allows filtering by active / not active anymore ... the content lists the polls for the current filter and the right sidebar has some further details or even the edit function?

@splitt3r well this is not exactly how the Tasks app does it. Currently the Polls app has a mode in the content: Either list of polls, or one poll. That is confusing. The Tasks app only ever shows tasks in the content.

The more apt comparison would be: Tasks app uses app-navigation for a list of task lists, Polls would use it for a list of polls. Tasks uses app-navigation for a list of the tasks in the selected list, Polls would use it for a list of the participants and answers in that selected poll. (The poll detail view as we have now already.)

What do you think @v1r0x @skjnldsv @dartcafe? The main point is that the two entirely different view modes in the content are very confusing. This is the same issue we have and will fix in the Deck app: nextcloud/deck#12

@jancborchardt
Copy link
Member

@v1r0x well for the empty main view at the start we will have the proper .emptycontent view, looking something like

Polls app icon
No polls created yet
[ Start with your first poll ]

Just as in all other apps, and in empty folders etc.

And as @skjnldsv mentioned, when you open the app, the first poll should be loaded. Or rather, the last one you had open.

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 12, 2017

@v1r0x as @skjnldsv states: The left app-navigation is for listing the polls, and the app-content is for displaying one poll. :)

Yes, I know 😉 But when you open the polls app you have around 90% white and 10% navigation.

Edit: @jancborchardt ok, opening the most recently used or the most important (e.g. expires in 1 hour) is a good alternative.

@splitt3r
Copy link
Contributor

We should move this discussion in an issue 💪

@skjnldsv
Copy link
Member

skjnldsv commented Oct 12, 2017

I agree with Jan on this, having two views is confusing! :/
I like the idea of sorting the poll by importance. :)

We could move this into a new issue yes. We'll list the requirements there.
As a reference, the documentation pr on the app navigation is complete. It will be very helpful!

@dartcafe
Copy link
Collaborator Author

regarding the navigation. #163 was intended for buliding a navigation thru the polls and for filtering. @jancborchardt already stated this and I company the suggestion. #104 alredy has a startfor this. For me the problem is, that I have to fiddle a little bit to get this worked. I would like to continue the diskussion in #163 and not in this PR.

The mal list is not useless IMHO, because a more detailed list can make some sense, if there are many polls to administer.

@dartcafe
Copy link
Collaborator Author

@skjnldsv: @v1r0x: Are there pending change reqests, or can we close the PR? At least we can merge rc-0.8 to the master branch and bake the release...

@v1r0x
Copy link
Collaborator

v1r0x commented Oct 13, 2017

@dartcafe since the expire message is a problem in core I'm ok with a merge.

@jancborchardt
Copy link
Member

The mal list is not useless IMHO, because a more detailed list can make some sense, if there are many polls to administer.

I know it's always tempting to introduce more details, and I don't want to downplay your great work. :)
Nextcloud apps in general focus to be very simple to understand and get out of the way. And for simple votes our competition is Doodle, so we need to be absolutely dead-simple and easy to use. Any confusion is frustration. ;)

@jancborchardt
Copy link
Member

So yeah, let's get this improvement in and cntinue in a new issue / pull request. :)

@skjnldsv
Copy link
Member

I'm OK here! :)

@dartcafe dartcafe mentioned this pull request Oct 13, 2017
@dartcafe dartcafe merged commit 79ed6e9 into master Oct 13, 2017
@dartcafe dartcafe deleted the flexbox-1 branch October 13, 2017 11:16
@dartcafe
Copy link
Collaborator Author

I know it's always tempting to introduce more details, and I don't want to downplay your great work. :)
Hehe. Don't worry. I don't take that personal. I see your view.

@dartcafe dartcafe added this to the 0.8.0 milestone Oct 13, 2017
@dartcafe
Copy link
Collaborator Author

dartcafe commented Oct 29, 2017

@skjnldsv I would like to apply the tooltips, but I don't get it. Can you give me an example, how to get this working?

@skjnldsv
Copy link
Member

@jancborchardt do we have a default class for tooltip-init?

@jancborchardt
Copy link
Member

@dartcafe @skjnldsv you have to use the title attribute and then one line of JS with $('.element').tooltip();

Check how it's done in the personal settings for example (am on mobile atm :)

@skjnldsv
Copy link
Member

@jancborchardt so everyone has to launch a js script for its own tooltip ?
We should support an universal class :)

@jancborchardt
Copy link
Member

@skjnldsv yes, there’s lots to be improved. :) I’m just stating how it works now.

Btw, I opened a new issue about the moving-polls-list-to-navigation discussion we had above: #228

@dartcafe
Copy link
Collaborator Author

$('.alt-tooltip').tooltip(); works for all element with the alt-tooltip class.

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.

5 participants