As a post 3.0 feature, it would be great to introduce a responsive admin toolbar, since the core toolbar looks pretty poor on phone-sized devices.
One candidate would be http://drupal.org/project/navbar, though it needs some maintainership to bring it past alpha.
Screenshot_2_18_13_11_26_AM-2.png

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ezra-g’s picture

Title: Responsive Admin Toolbar » Responsive Admin Toolbar & theme

Let's also include a responsive administrative theme.

ezra-g’s picture

I propose we use the included AT Admin theme.

ezra-g’s picture

ezra-g’s picture

Priority: Normal » Major

jessebeach suggested http://drupal.org/project/tinynav with the following variable config:

tinynav_active_class: "active-trail"
tinynav_css_selector: "#zone-menu .region-menu ul.menu, #toolbar-menu"
tinynav_header: 0
tinynav_media_query: "all and (max-width:780px)"

Bumping this to major given the importance of the mobile experience for folks evaluating Commons as admins.

ezra-g’s picture

Assigned: Unassigned » ezra-g
SocialNicheGuru’s picture

rickvug’s picture

Conceptually I like it. A few comments for improvements:

- We should add a media query to hide the Acquia subscription details at mobile widths.
- Theming is required to match the look and feel (white is out of place)
- What about removing Shortcuts from the list of modules enabled on install? I've never seen anyone actually use the functionality. It just clutters the toolbar as well as your user account with the shortcut sets tab. This is especially problematic at small screen sizes.
- Drop the content in brackets from the links. If the selector was narrower the home button and account links wouldn't wrap when viewing from a mobile device.

ezra-g’s picture

Status: Active » Needs review
FileSize
44.27 KB
2.04 KB

Thanks for the feedback, @rickvug!

@SocialNicheGuru, please see the OP: NavBar is not yet production ready, but would make a great post Commons 3.0 addition with some work.

I have this in a state that I believe is RTBC in the 1920354-tinynav branch of Commons. Attached is a patch showing the proposed changes, and a screenshot of what TinyNav looks like on the admin/people page with AT_Admin theme enabled.

Screenshot_2_21_13_8_21_PM.png

ezra-g’s picture

Title: Responsive Admin Toolbar & theme » Incorporate Navbar responsive toolbar
Assigned: ezra-g » Unassigned
Status: Needs review » Active

Updating with the remaining action item. Would be great to get a comment from the Spark team on any related issues here.

webchick’s picture

jessebeach’s picture

1847084 was committed on March 29.

ezra-g’s picture

Status: Active » Postponed
Issue tags: +Commons 7.x-3.3 radar

Sounds like Navbar could be ready in time to be incorporated into the Commons 3.3. release. Marking postponed and tagging for our 3.3 radar.

Devin Carlson’s picture

FileSize
47.08 KB
292.66 KB

I've compiled some information on the current state of the navbar module:

Dependencies

Modules

Libraries

Issues

The navbar module currently works well (as demonstrated in the screenshots below) but has a few small issues that may require testing/patching:

desktop_horizontal.png
mobile_vertical.png

Devin Carlson’s picture

Status: Postponed » Active

The issues mentioned in #10 have been fixed and were backported from D8 to navbar in 7.x-1.0-alpha9 (release notes) so I'm moving this back to "active".

Devin Carlson’s picture

Assigned: Unassigned » Devin Carlson
Status: Active » Needs review
FileSize
3.47 KB

A patch to add the Navbar and Breakpoints module, add the backbone and underscore libraries and provide an upgrade path from Toolbar to Navbar.

japerry’s picture

Status: Needs review » Needs work

Great work, I'll be really happy to see something better than the crappy admin toolbar we have now. :-)

Two things however:
1) underscore fails to package. the tar.gz is not listed in the whitelist. It should be:
libraries[underscore][download][url] = "https://github.com/documentcloud/underscore/archive/1.4.4.zip"

2) it looks like there is an ordering issue between underscore and backbone.js. Its causing a JS error to be thrown: Timestamp: 6/6/13 9:41:50 AM Error: TypeError: this.$el.off is not a function Source File: http://commons3/profiles/commons/libraries/backbone/backbone-min.js?v=1.0.0 Line: 1

It looks like its a result of backbone.js being called before underscore.

japerry’s picture

Version: » 7.x-3.2
Status: Needs work » Needs review
FileSize
3.58 KB

This patch uses the most recent version of navbar, which appears to fix the issue found in issue 16a and b.

It should be good to go, based on the discussion with Ezra and Jesse

Devin Carlson’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #17 applied cleanly and uses the most recent version of navbar which fixed the issues with -alpha10. I also tested the upgrade path and didn't run into any issues with migrating toolbar permissions to navbar.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.