pcbeltz57 / google-tasks-chrome-extension

Automatically exported from code.google.com/p/google-tasks-chrome-extension
Apache License 2.0
0 stars 0 forks source link

Task sorting is not saved #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click on the icon
2. Choose "Sort by due date" under the actions menu
3. Close the list by clicking outside of the popup
4. Click on the icon again to view your list
5. Notice that the tasks aren't sorted any more

What is the expected output? What do you see instead?
The task sorting should be saved

What version of the product are you using? On what operating system?
Version 1.0, Chrome Stable 12.0.742.91

Original issue reported on code.google.com by reber.br...@gmail.com on 10 Jun 2011 at 2:00

GoogleCodeExporter commented 9 years ago
Yes, I agree.
I prefer sorting by due date but this is not saved when closing popup.

Best.

Original comment by snaca...@gmail.com on 17 Jul 2011 at 9:19

GoogleCodeExporter commented 9 years ago
This makes this extension very frustrating to use.  The Gmail gadget saves the 
sorting preference; not sure why this extension does not.

Original comment by kr...@krellempire.net on 6 Nov 2012 at 2:39

GoogleCodeExporter commented 9 years ago
I agree completely. All the Google Tasks extensions (official and unofficial) 
suffer from the same problem, as far as I can tell. It shouldn't be this hard 
to fix it......

Original comment by matthew.s.schwartz@gmail.com on 29 May 2013 at 10:42

GoogleCodeExporter commented 9 years ago
If it's not possible to save the sort order that is set from the Actions menu, 
wouldn't it be possible to make the sort order an Option ?

With the retirement of iGoogle imminent this would make this extension even 
more valuable.

Original comment by the.dave...@gmail.com on 16 Oct 2013 at 1:43

GoogleCodeExporter commented 9 years ago
Agreed - maybe change this to Enhancement?

Original comment by andy.m.m...@gmail.com on 7 Jan 2014 at 10:42

GoogleCodeExporter commented 9 years ago
I've done a little debugging on this so far. Looking at the source, you can see 
that the extension is really just popping https://mail.google.com/tasks/ig into 
the popup bubble. It's interesting, because the list of tasks at that address 
is not sorted by due date by default. However, the list that displays in Gmail 
IS sorted by due date. 

Looking at the source, the default task sort appears to be controlled by the 
view template at the URL I mentioned earlier. There may be two ways to fix 
this: 1) Change the extension's URL to match what's in Gmail, assuming Gmail is 
doing the same thing and just pulling in content from another URL (Probably 
best), 2) Hack the JS to sort the list after the HTML is rendered, pretty much 
"auto-select" the "Sort by due date" menu option. Any other ideas?

Original comment by ccum...@gmail.com on 11 Jan 2014 at 12:58

GoogleCodeExporter commented 9 years ago
I looked at little more at the Gmail task widget, and the HTML for that widget 
is being rendered elsewhere, then inserted into Gmail when you click the 
"Tasks" link ("Gmail," "Contacts," and "Tasks" near the top left of the main 
Gmail page. I was hoping to find a URL stashed somewhere like the /tasks/ig 
URL, then you could just swap the URL's in the source. I don't think that's 
going to work. The real fix is for Google to update the view template for 
https://mail.google.com/tasks/ig to match what's in Gmail already.
A short term fix for the widget would be to figure out what the "Sort by due 
date" link is doing, and just run that every time the widget fires up. 

Original comment by ccum...@gmail.com on 11 Jan 2014 at 1:27

GoogleCodeExporter commented 9 years ago
the js on https://mail.google.com/tasks/ig appears to be, like most google 
pages, obfuscated. i made an attempt at finding a way to de-obfuscate the 
JavaScript source, but I didn't have much luck. customizing the extensions 
javascript appears to be a hack anyway; i still think google needs to update 
https://mail.google.com/tasks/ig for this to really work smoothly.

Original comment by ccum...@gmail.com on 11 Jan 2014 at 2:19

GoogleCodeExporter commented 9 years ago
The function seems to be TestDriver.switchToDueDateView shown in 
https://mail.google.com/tasks/res/1153796635-gadget.js but I can't figure out 
which variable it's changing in order to do the sort.

It would be great if someone could figure that out to enable a workaround - or 
preferably fix it properly!

Original comment by rodrigo....@gmail.com on 15 Jan 2014 at 4:14

GoogleCodeExporter commented 9 years ago
Good eye finding that function! I was staring at that ...-gadget.js file for a 
while last time I looked at this, but I ran out of gas before I got to where 
you did.

Original comment by ccum...@gmail.com on 15 Jan 2014 at 3:28

GoogleCodeExporter commented 9 years ago
This is a very frustrating issue.  Has anyone come with a solution to save the 
sort order, so it shows by date. This is when you click the Google task 
extension checkmark and a new window pops up listing your tasks.

Thanks!

Original comment by kwi...@gmail.com on 28 Aug 2014 at 12:40

GoogleCodeExporter commented 9 years ago
Please provide an option to save sort order, perhaps by offering a different 
link (https://mail.google.com/tasks/ig-sort-by-date).  I want to use Google 
Tasks but require it to be sorted by date.  Thank you.

Original comment by arnh...@gmail.com on 26 Oct 2014 at 10:00