[Bug/inconvenience] Refreshing whilst task is open "closes" the list #1808

Closed
opened 2021-07-12 09:20:41 +00:00 by Gensokian · 7 comments

When opening a task from the List view, or refreshing the page whilst having the floating editor open in the KANBAN view opens the task in a "Full screen" editor.

I am not able to see any way to return to the list besides either clicking the list again in the sidebar (Which is tideous when using a lot of namespaces/lists) or clicking the listname in the breadcrumbs in the top-left

A "Done" or "X" button on the top/bottom right side would be an intuitive addition so the user can easily return to where they were.

When opening a task from the List view, or refreshing the page whilst having the floating editor open in the KANBAN view opens the task in a "Full screen" editor. I am not able to see any way to return to the list besides either clicking the list again in the sidebar (Which is tideous when using a lot of namespaces/lists) or clicking the listname in the breadcrumbs in the top-left A "Done" or "X" button on the top/bottom right side would be an intuitive addition so the user can easily return to where they were.
Owner

You could use the back button of your browser. That would take you back to the kanban view.
Another option would also be to click on the list title beneath the task title though that will not take you back to the kanban view.

The problem is there's no way to find out from the url alone if the task detail view was opened from kanban or any other view.

You could use the back button of your browser. That would take you back to the kanban view. Another option would also be to click on the list title beneath the task title though that will not take you back to the kanban view. The problem is there's no way to find out from the url alone if the task detail view was opened from kanban or any other view.
Author

Couldn't somethign like this fit the job?

<button onclick="done()">Done!</button>

<script>
function done() {
  window.history.back();
}
</script>

Edit:

Googled shortly, found this one-liner
<a href="javascript:history.back()">Done!</a>

I'll look into the project-code today eve.

Couldn't somethign like this fit the job? ``` <button onclick="done()">Done!</button> <script> function done() { window.history.back(); } </script> ``` Edit: Googled shortly, found this one-liner `<a href="javascript:history.back()">Done!</a>` I'll look into the project-code today eve.
Owner

That would interfer with the "Done" button on the page which is used to mark the task as done. You would also need to make sure it is only shown when there is something in the history (not sure if that's even possible?).

A cleaner solution would maybe be to put some query string or something like that in the url when the task detail view was opened from kanban and then check if that's present when loading and open the popup again in that case.

That would interfer with the "Done" button on the page which is used to mark the task as done. You would also need to make sure it is only shown when there is something in the history (not sure if that's even possible?). A cleaner solution would maybe be to put some query string or something like that in the url when the task detail view was opened from kanban and then check if that's present when loading and open the popup again in that case.
Author

I just thought about this again, what if the button would just use the same link of the list, the task is in?

I just thought about this again, what if the button would just use the same link of the list, the task is in?
Owner

Like the list title underneath the task title?

Like the list title underneath the task title?
Author

Exactly, that one allways brings the user to the list, no matter if the task is opened in the list view as fullscreen, or floating like in the kanban view

Exactly, that one allways brings the user to the list, no matter if the task is opened in the list view as fullscreen, or floating like in the kanban view
Owner

Fixed in b812c422f9 - Now clicking on the list title will take you back to the view you originally came from.

I had some logic in there (which didn't work), now it seems to work better.

Fixed in b812c422f97945c818e437b42b152a86a4766d4b - Now clicking on the list title will take you back to the view you originally came from. I had some logic in there (which didn't work), now it seems to work better.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1808
No description provided.