jbroadway / elefant

Elefant, the refreshingly simple PHP CMS and web framework.
http://www.elefantcms.com
MIT License
209 stars 39 forks source link

Toolbar install/upgrade bug fixes #247

Open techanon opened 9 years ago

techanon commented 9 years ago

Continuing from #236.

-> Fixed incorrect handler link for tools needing upgrade -> Fixed "Click to X" duplication bug -> Added prevention of admin/upgrade being shown in the toolbar editor -> Added CSS to the toolbar editor to signify if an app requires action taken

Let me know if you wanna have a different label for the admin/upgrade tool.

jbroadway commented 9 years ago

I made some changes and I think I left this PR in a partially merged state. Can you fetch the latest from the main repo and help sort that out?

I did make a few stylistic changes:

techanon commented 9 years ago

I'm not sure if you meant keep the Edit Toolbar text to the right or not, so I pushed up what I had for that atm. I can revert that if you wish (though I think the text works better being centered).

Also, note: The old toolbar dropdown layout is self-depreciating due to the fact that any change to the toolbar creates the tools.php file (if it doesn't exist already) that flags the layout as being the new format. I think it'd work best if the fallback (old layout) was left in for the next release, and then removed for the one following.

techanon commented 9 years ago

Bump

jbroadway commented 9 years ago

I did style and move the edit link to the right on purpose. Something about centering it looked off to me...

Thinking about the fallback mode, I'm not sure we need it at all since new releases already include a default tools.php file, and IMO the new menu is much nicer now too.

techanon commented 9 years ago

Done. (Also, might want to check the Travis build... seems a file or class is missing from the tests for php7)

jbroadway commented 9 years ago

I'm a bit confused since this was partially merged before and seems to be working well from what I can tell. Can you let me know what the differences are or what's still outstanding? Thanks :)

Not sure what's up with the PHP7 issue yet, seems to be that PHPUnit moved some things to external packages and a simple pear install didn't fix it. Still investigating that one!

techanon commented 9 years ago

With the removal of the fallback, if there is no tools file avaliable, it will generate the tools.php file from hardcoded defaults. I also found a bug in the tree-drag-drop script. I'm probably going to find something after I say this, but I'm pretty sure that's everything for the toolbar.

techanon commented 9 years ago

Did some more digging around in this PR and haven't found any other bugs needing squashed. Is there anything else that the rest of this PR needs done or explained?

techanon commented 9 years ago

Merged the master branch in. Pardon the git stupidity, there was a local file permissions issue that git was complaining about.