-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
french is missing
@skjnldsv: Could need some review.... |
@dartcafe you should have mentioned me sooner! :) |
Ne. I had to play first and understand. |
Hum, this remind me of a codepen I saw not long ago! :) Nice work ! ;) |
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:
in combination with (not) voted by user. |
Looks nice! :) A lot cleaner and less hacky 👍 |
@dartcafe nothing wrong using other's good ideas! ;) |
Changes depend on nextcloud/server#6735, because of the calculation of the time spans. |
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 If the polls are displayed in the app navigation what should be in the main view? |
The main view should be empty then. Just load the first poll. You'll save the user many clicks! :) |
I think doing it like the Tasks app is a good choice: 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 as @skjnldsv states: The left app-navigation is for listing the polls, and the app-content is for displaying one poll. :)
@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 |
@v1r0x well for the empty main view at the start we will have the proper .emptycontent view, looking something like
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. |
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. |
We should move this discussion in an issue 💪 |
I agree with Jan on this, having two views is confusing! :/ We could move this into a new issue yes. We'll list the requirements there. |
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 since the expire message is a problem in core I'm ok with a merge. |
I know it's always tempting to introduce more details, and I don't want to downplay your great work. :) |
So yeah, let's get this improvement in and cntinue in a new issue / pull request. :) |
I'm OK here! :) |
|
@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? |
@jancborchardt do we have a default class for tooltip-init? |
@jancborchardt so everyone has to launch a js script for its own tooltip ? |
|
First attempt for layout switching to flexbox