by TravisPeacock · 2y ago · 0 comments
It's added to the roadmap to investigate more.
maybe some combination of the <noscript> tag and then if so wrapping the buttons in <form> and making the buttons submit those forms?
Have a quick turn around time on the form. Let it be a server problem. Have a hidden field on the form set to "nojs". Let javascript set this to "js".
The server can then decide if this is a bulk edit or not. It can then decide it will batch approvals into one mail or wait a little longer.
Then you can optimize on what you find most clean and/or works best.
Have one form field for easy entry and turn around. Ten as you suggest? But what is the optimum number? 3? 20? And is it "clean" to have 20 form fields which the javascript version then will roll back into one.
So the non-javascript version will never be better. Somethings gotta give. But submitting a form can be superfast. And the page refresh will be super fast. Such is life without javascript.
And now I realize that I made an implied server optimization: Mail approval should in my mind be batched and dampened. 10 seconds might be enough.As long as new inpit is coming we can postpone approval anyway as the user is busy. Findong the correct number is the magic trick. Not too fast. Not too slow.
What's the point of delayed email sending? (Lol tried to find a way to ask that which sounds genuine, but they all read as annoyed me)
The easy way to make it simple is do it as a form and then embellish it with javascript. Maybe counter intuitive but still. Let the javascript mangle the form so it does not look like a form and Bob is your uncle. By always using that pattern you easily end up with good usability and accessibility.
The same as with CSS. Make good content with nice semantic HTML. Then go crazy with super cool CSS.
But I am an old fart who hates Tailwind with a vengance. But I do acknowledge it get work done and many think it is great. So I will sulk in the corner and say that they are doing it wrong. Old man yelling at clouds.
Next: REST is great but misunderstood. I do not miss SOAP.
But know this: I love your sentiment and attitude. Nice job! Grumble ;-)