Improvement to drafts (and posting, actually) I need to do

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #15 on March 22nd, 2012, 04:43 PM »
Commit it, deploy it, if it works, great, if not, we'll fix it :)
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #16 on March 22nd, 2012, 04:47 PM »
All I can say is, I kept a textarea open for a while and it didn't save anything. But maybe it was already the case before :)
Then again, I haven't had a 'dirty' draft for over 2 hours -- i.e. back when I last used my iPod to navigate here.
I'm off to take a half-hour break. I'll try to see if it keeps doing it on the iPod!

PS: lol, it's broken I think... I'm not seeing any draft saved, even after typing for a minute or so!
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #17 on March 22nd, 2012, 06:59 PM »
Fixed some of the bugs. Maybe all? Lol I dunno.
Works in Opera AND iOS when it comes to empty posts. No longer triggers anything if empty. If I type something, it triggers.
Doesn't seem to trigger on iOS when typing text.
Ah well.
Posted: March 22nd, 2012, 06:55 PM

And, working!! :)
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #18 on March 22nd, 2012, 07:04 PM »
Sounds good to me, though I'd not actually had any problems on iOS with my iPad, curiously enough. I'm starting to wonder if iPad 1 / iOS 5.0 does things a bit differently to everyone else :-/
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #19 on March 22nd, 2012, 07:43 PM »
Dunno. That's a possibility.
I'd be most interested in knowing if anyone else's getting the problem I have on my 4.2 -- unresponsive keyboard when I tap a textarea or input box. Because as of now, I have no idea how to fix that...
Posted: March 22nd, 2012, 07:27 PM

Okay, I'm done with my commit -- won't spend more time today on drafts and blog posts, so if you want to look into the 'recent posts first' bugs, please do it... :) (That's valid for anyone ;))

I also didn't touch the menu icon overlay code -- just forgot about it. And I'm still a bit wary of touching that area again... (Just like I was wary about touching Class-CSS.php this morning, as it's grown to be so complex :P)
So, if anyone could remind me to do it later...
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Pandos

  • We-Gen
  • the only wedge you'll ever need
  • Posts: 105
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #20 on March 22nd, 2012, 08:16 PM »
Sorry, but for me it doesn't work. Even if i "save it as draft".
The only message i get:


You have no draft messages saved at this time
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #21 on March 22nd, 2012, 09:45 PM »
Can anyone confirm whether it works or not for them?
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #22 on March 22nd, 2012, 09:46 PM »
Btw my New Revs post draft wasn't deleted.
Maybe because it is a locked topic?
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #23 on March 22nd, 2012, 09:57 PM »
Hmm, it seems to be working for me just fine?

If you happen to post between the first AJAX submission and it coming back, it won't be deleted because it won't have the id to delete. What we could do, potentially, is block posting while sending off the AJAX request, but if there's a problem it's still going to disappear into the aether like that.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #24 on March 22nd, 2012, 10:57 PM »
Imagine that: clicking the submit button right when the autosave triggers.
It's only a problem for a week at the most, though.
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #25 on March 22nd, 2012, 11:05 PM »
Sure, and it's not like the odds are that high of doing it either, maybe just bad luck :/

I'd note that disabling the save button is exactly what WP does when autosaving drafts but of course that's a slightly different context in which to do it.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #26 on May 26th, 2012, 10:03 AM »
Suggesting an improvement for drafts...

I submitted a post and got a "There was a reply..." message and the full post again.
I then got a browser crash while opening Dragonfly. (Thank you, Opera 12...)
I restarted, and my draft only had half of the post.

So my suggestion would be to save the draft automatically when you hit Preview or you get an error message and the full post page.
What do you think...?
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #27 on May 26th, 2012, 02:05 PM »
Seems meaningful enough, shouldn't be a big deal - in theory there will already be a draft id to work with at that point. The trick is to seamlessly fold it into the different routes of saving drafts.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • Madman
  • With a Box
  • If you say so.....
  • Posts: 13,078
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #28 on May 29th, 2012, 05:26 PM »
(And that's where my expertise stops dead... :P)
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Arantor

  • With a Box
  • I'm a shooting star leaping through the skies, like a tiger defying the laws of gravity...
  • Posts: 14,001
Re: Improvement to drafts (and posting, actually) I need to do
« Reply #29 on May 29th, 2012, 05:34 PM »
You know what, though? I wrote the damn thing and I only barely remember how I did it :P
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.