Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Improve admin UX #220

Merged
merged 8 commits into from
Oct 28, 2015
Merged

Improve admin UX #220

merged 8 commits into from
Oct 28, 2015

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Mar 23, 2015

Menus was, and still is, one of less easy to use admin interface. This PR tries to fix it a bit.

I changed 2 main things;

  • Menu admin only shows name + label + menu items, there is no reason to show linking stuff and such in here
  • MenuNode admin does no longer show a "route" and "uri" field, but it shows one "link" field instead. The linkType select input will determine what the value of "link" is (if it's a route or uri)


if (false === $isNew) {
if (!$isNew) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes :-)

@dbu
Copy link
Member

dbu commented Mar 25, 2015

cool, makes a lot of sense!

the only bit i am unsure is the commented out line for the route. are there other reasons why you have "WIP" in the description?

restarted the build to see if it works now - had a composer failure before.

@wouterj
Copy link
Member Author

wouterj commented Mar 25, 2015

are there other reasons why you have "WIP" in the description?

I'm planning to do more UX fixes for the menu admin. However, those doesn't need to be all in the same PR (I know you like quick merging, so +1 to merge if we all agree with the changes and travis is happy too).

@wouterj
Copy link
Member Author

wouterj commented Apr 7, 2015

Fixed the last commit. @dbu do you like this direction I took with simplifying uri/route?

The build errors are because of a BC break in Sonata 2.4 (in 2.4, they typehint against FormBuilderInterface while they typehint against FormBuilder in 2.3). We either do not support 2.4 and use FormBuilder or we have to come up with another plan to avoid using this method.

$linkType = $form->get('linkType')->getData();
$link = $form->get('link')->getData();

dump($linkType);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems leftover debug code

@dbu
Copy link
Member

dbu commented Apr 10, 2015

regarding sonata: i think we should push as much as we can to standard form types and do as little sonata as possible.
afaik we said the next version of the phpcr admin will require base sonata 2.4 so i would opt for the new signature

@wouterj
Copy link
Member Author

wouterj commented Apr 16, 2015

So, we can now start implementing Sonata 2.4 in the CMF? I thought we decided not to go for 2.4 requirements a couple of weeks back. However, going with the 2.4 requirement means we can merge a lot of my PRs about Admin UX improvements.

@dbu
Copy link
Member

dbu commented Apr 19, 2015

https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/blob/master/composer.json#L21
https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/blob/master/composer.json#L40

so the current master of the phpcr admin is for 2.0, and will require sonata admin 2.4. i am hesitating to merge the other PRs until we can be reasonable sure that the phpcr admin 2.0 is ready in time for the release of new versions. with what i just merged, we seem one big step closer to that however. i will try to have a look at this all this week and give my opinion.

@wouterj wouterj changed the title [WIP] Improve admin UX Improve admin UX Oct 27, 2015
@lsmith77
Copy link
Member

1) Symfony\Cmf\Bundle\MenuBundle\Tests\WebTest\Admin\Extension\MenuNodeReferrersExtensionTest::testEdit
Exception: "
                Child "link" does not exist.
            "
Failed asserting that 500 matches expected 200.

@wouterj
Copy link
Member Author

wouterj commented Oct 27, 2015

Should be fixed now.

dbu added a commit that referenced this pull request Oct 28, 2015
@dbu dbu merged commit 3fc8bfe into symfony-cmf:master Oct 28, 2015
@lsmith77 lsmith77 removed the wip/poc label Oct 28, 2015
@dbu
Copy link
Member

dbu commented Oct 28, 2015

thanks!

@wouterj wouterj deleted the admin_ux branch October 28, 2015 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants