Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toolbar UI updates #2320

Merged
merged 3 commits into from
Feb 5, 2014
Merged

toolbar UI updates #2320

merged 3 commits into from
Feb 5, 2014

Conversation

schmunk42
Copy link
Contributor

  • added home icon, because there was no way back to the frontend
  • removed separators with summary sections to make browsing with the panel more intuitive
  • updated version number display, now also shown as label

Screens

bildschirmfoto 2014-02-05 um 01 44 16

bildschirmfoto 2014-02-05 um 01 44 24

bildschirmfoto 2014-02-05 um 01 43 52

added home icon
removed separators with summary sections to make browsing with the panel more intuitive
updated version number display, now also shown as label
</a>
</div>
<div class="yii-debug-toolbar-block">
<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()']) ?>
Copy link
Member

Choose a reason for hiding this comment

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

Why remove the link to phpinfo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it drives you away from your site. When you click through the debug toolbar this links sends you to a dead end page. But we could move the button on the configuration view up. A modal with the phpinfo() contents would be nice here, btw.

And IMO it's also more intuitive to have just one destination for the links in the toolbar, it's way easier to recognize how the toolbar is connected to the views.

Copy link
Member

Choose a reason for hiding this comment

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

I think before we have better solution for showing phpinfo, we should keep the existing solution. It's better than nothing.

Also, from end user point of view, it doesn't matter how toolbar is connected to the views. It's more important for them to see that different block points to different URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What's about opening the phpinfo with target='phpinfo' in a new tab and readd the separator?

Or how do you like this solution (Note: button-style changed to btn-info) ... see screen.
bildschirmfoto 2014-02-05 um 14 26 08

Copy link
Member

Choose a reason for hiding this comment

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

Yes, adding target is fine. We should add back the separator. It's fine using btn-info.

qiangxue added a commit that referenced this pull request Feb 5, 2014
@qiangxue qiangxue merged commit 2698717 into yiisoft:master Feb 5, 2014
@qiangxue
Copy link
Member

qiangxue commented Feb 5, 2014

Thanks!

@samdark
Copy link
Member

samdark commented Feb 5, 2014

I think there's no need for home icon in on-page toolbar.

@qiangxue
Copy link
Member

qiangxue commented Feb 5, 2014

Yeah, I noticed that too. But then I thought this might be useful if you are in a sub-page.
Anyway, I'm fine with either removing or keeping it.

@schmunk42
Copy link
Contributor Author

But then I thought this might be useful if you are in a sub-page.

Exactly. And should be visible everywhere to have a consistent look.

@samdark
Copy link
Member

samdark commented Feb 5, 2014

Nah, any well-designed website should provide an easy way to get to the front page. Usually it's clicking on logo. Home icon presence may give developer false assurance that navigation is OK even in case there's no link on logo.

@schmunk42
Copy link
Contributor Author

Nah, any well-designed website should provide an easy way to get to the front page.

So, how do you get to the front-page from the debug section?

@samdark
Copy link
Member

samdark commented Feb 5, 2014

Debug section is OK. I'm talking about website toolbar.
screenshot 6

@schmunk42
Copy link
Contributor Author

I'm talking about the debug section, which you reach only via the toolbar. And there's no way back to the (frontend) home page.

bildschirmfoto 2014-02-05 um 22 30 01

Since you stated that every well-designed website should have an easy way to get to the home page, I find it logical to add a "home" icon to the toolbar, which serves as a "universal" logo in the debug section.

@samdark
Copy link
Member

samdark commented Feb 5, 2014

Yes, in debug section it's fine but it appears at the website as well and has no good use there.

@schmunk42
Copy link
Contributor Author

One thing is sub-pages as mentioned, another thing would be pages with broken links, while developing or debugging, another thing is look and feel and the home icon is always on the same place and is not hidden on only one page.

PS: We could remove the header from Gii completely and have the same (backend-style) UI everywhere. That would lay out a slick layout foundation for all Yii2 backend extensions.

@cebe cebe added this to the 2.0 Beta milestone Feb 6, 2014
@schmunk42 schmunk42 mentioned this pull request Feb 6, 2014
@schmunk42 schmunk42 deleted the feature/toolbar-ui branch March 17, 2014 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants