Project

General

Profile

Actions

Design/UX #22941

open

Admin Bar Refresh

Added by Sara Cannon 8 months ago. Updated 6 days ago.

Status:
New
Priority name:
Normal
Assignee:
Category name:
Toolbar
Target version:
Start date:
2025-06-17
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Run:
wp eval-file ~/wp-cli-scripts/blog_public-sync.php


Description

In giving the admin bar a refresh, we will be changing the following:

  • remove the CUNY Academic Commons Name and drop down from the top left (this to be confirmed after analytics check)
  • Adding My Groups and My Sites to the top Admin Bar
  • Add groups and sites into a drop down with a scroll bar
  • Refresh the Help Icon
  • Refresh the Down carrot by the avatar
  • Segment and add new sections to the drop down
  • Remove the "fly out" of the groups and sites
  • Add: Invitations (with number count)
  • Move "My Profile" to the top
  • Add "Commons Home" above log out
  • Make the notification numbers round with 1-2 numbers and expand like a pill
  • make the font Poppins
  • Mobile screens curated to designs that show sites, groups, help icon (no text), avatar & notification count
  • Mobile screens when on a site simplified even further to leave room for site tools

I'm still thinking about mobile when there are too many icons. A ••• menu might work here


Files

Navigation Update.png (38.8 KB) Navigation Update.png Sara Cannon, 2025-06-17 02:56 PM
More Horiz Icon.svg (427 Bytes) More Horiz Icon.svg Sara Cannon, 2025-06-17 03:31 PM
Navigation Update2.png (50.2 KB) Navigation Update2.png Sara Cannon, 2025-06-17 03:31 PM
Navigation - commons-mobile.png (6.66 KB) Navigation - commons-mobile.png Sara Cannon, 2025-06-17 03:31 PM
Navigation - commons-mobilesites.png (19.6 KB) Navigation - commons-mobilesites.png Sara Cannon, 2025-06-17 03:31 PM
Navigation - commons-mobile-more.png (7.81 KB) Navigation - commons-mobile-more.png Sara Cannon, 2025-06-17 03:33 PM
Screen Recording 2025-12-11 at 10.00.04 PM.mov (2.03 MB) Screen Recording 2025-12-11 at 10.00.04 PM.mov Sara Cannon, 2025-12-11 11:00 PM
Screenshot 2025-12-12 at 9.22.53 AM.png (64.7 KB) Screenshot 2025-12-12 at 9.22.53 AM.png Sara Cannon, 2025-12-12 10:23 AM
Screenshot 2025-12-12 at 11.06.57 AM.png (143 KB) Screenshot 2025-12-12 at 11.06.57 AM.png Sara Cannon, 2025-12-12 12:07 PM
cac-logo-top-left.gif (28.2 KB) cac-logo-top-left.gif Raymond Hoh, 2025-12-16 02:41 AM
Screenshot 2025-12-18 at 3.27.54 PM.png (596 KB) Screenshot 2025-12-18 at 3.27.54 PM.png Sara Cannon, 2025-12-18 04:28 PM
menu-firefox.png (105 KB) menu-firefox.png Colin McDonald, 2026-01-12 04:13 PM
menu-chrome.png (113 KB) menu-chrome.png Colin McDonald, 2026-01-12 04:13 PM
Screenshot 2026-01-13 at 10.18.06 AM.png (384 KB) Screenshot 2026-01-13 at 10.18.06 AM.png Sara Cannon, 2026-01-13 11:20 AM
Screenshot 2026-01-13 at 10.18.39 AM.png (134 KB) Screenshot 2026-01-13 at 10.18.39 AM.png Sara Cannon, 2026-01-13 11:20 AM
Help icon white space.mp4 (2.69 MB) Help icon white space.mp4 Colin McDonald, 2026-01-16 10:32 AM

Related issues

Related to CUNY Academic Commons - Design/UX #19624: Mobile Menu TweaksRejectedRaymond Hoh2024-01-29

Actions
Actions #1

Updated by Sara Cannon 8 months ago

  • Tracker changed from Bug to Design/UX
Actions #2

Updated by Sara Cannon 7 months ago

  • Assignee set to Boone Gorges
Actions #3

Updated by Boone Gorges 7 months ago

  • Target version set to 2.6.0

Sara, are you going to be building this as a Figma document for the dev team?

Actions #4

Updated by Sara Cannon 7 months ago

Actions #5

Updated by Boone Gorges 6 months ago

  • Category name set to Toolbar
  • Assignee changed from Boone Gorges to Raymond Hoh
  • Target version changed from 2.6.0 to 2.7.0
Actions #6

Updated by Raymond Hoh 5 months ago

Actions #7

Updated by Raymond Hoh 2 months ago

Hi Sara,

Do you have an updated Figma link? Or if you do not have access to Figma, can you post screenshots of the "My Groups" and "My Sites" dropdown menus when expanded and other assets that haven't already been attached to this ticket such as the Help icon SVG?

Actions #9

Updated by Raymond Hoh 2 months ago

Hi Sara, when I attempt to open the link, I get a message saying that there is an issue with the file sharing options:

Unable to open file

It looks like there’s an issue with this Design file’s sharing settings. We’ve emailed the owner to let them know.

Can you check the Figma permissions?

Actions #11

Updated by Raymond Hoh 2 months ago

Thanks Sara! The new Figma link works.

Actions #12

Updated by Raymond Hoh 2 months ago

I've committed a first pass of the new admin bar refresh design in https://github.com/cuny-academic-commons/cac/commit/0a46a9b216. This is available for testing on cdev. You might need to refresh your browser cache to see the new design.

There's still some work to do for the mobile view, specifically the More overflow menu and the various menu icons that get displayed when the screen width is < 400px, but I'll get to that in later revisions. In the meantime, let me know if you encounter any visual bugs.

Actions #13

Updated by Sara Cannon about 2 months ago

This is looking so great! Can we have the hover states bold like you have it but not make the size of the box it's in expand? hovering moves the vertical lines a bit and it feels better when they stay still. Attaching screen recording that shows the slight movement when the text bolds on hover. All in all though I'm super excited about this change and improvement!!! great work here

Actions #14

Updated by Sara Cannon about 2 months ago


I've added to the figma file a slightly refreshed login dropdown

Actions #16

Updated by Raymond Hoh about 2 months ago

From the team meeting on Friday, we talked a tiny bit about adding back a CUNY Academic Commons icon to the admin bar when you are on a sub-site and logged out.

I've mocked up something with the smaller CAC logo with a little hover popup explaining that the current sub-site is part of the CUNY Academic Commons network. The "Learn more about us" button in the GIF links to the main Commons About page. Let me know what you think.

Actions #17

Updated by Raymond Hoh about 2 months ago

Hi Sara,

This is where I grabbed the smaller CAC logo: https://gcdi.commons.gc.cuny.edu/cac-logo/. The letters look a little jagged due to some compression though.

Actions #18

Updated by Sara Cannon about 2 months ago


I played around with different options, and I like the first one personally. I would love to hear the group's thoughts

Actions #19

Updated by Colin McDonald 21 days ago

Updates on two fronts here, logo choice and testing feedback.

For the logo, we agreed to go with Option 1 from Sara's choices on desktop and to explore Options 6 and 7 on mobile (slight preference for 6 because of the full written Commons wording, but not sure if the text will be too small to read).

Regarding testing, Scott and I have done a pass through and have a few pieces of feedback below. Sara, have you taken a look yet?

- When you add a logo to a site or group, the logo image seems to appear twice in the corresponding admin bar drop-down item.

- Maybe this is a dev site thing, but there are broken images for the group logos in the drop-down, rather than the placeholder image. And on Firefox, the broken image message obscures the menu text. See screenshots for Firefox and Chrome.

- Maybe it's just us, but the way that the arrows flip up/down when you mouse over the drop-downs is a little laggy and distracting. Could that be improved? Or could it just be a static down-pointing arrow whether the menu is hovered/active or not?

Actions #20

Updated by Colin McDonald 21 days ago

One other testing note - what do we think about keeping Create a Site and Create a Group at the top of the My Sites / My Groups drop-downs like we have it now?

Actions #21

Updated by Raymond Hoh 20 days ago

  • Deployment actions updated (diff)

For the logo, we agreed to go with Option 1 from Sara's choices on desktop and to explore Options 6 and 7 on mobile

I've added a first pass of Option 1 in https://github.com/cuny-academic-commons/cac/commit/ca63c61bdaa24b8dda324b81262c1c0df6f510ad. This is available for testing on cdev. I'll work on the mobile versions in later updates.

To confirm, we only wanted to add this logo item for logged-out users, correct?

- When you add a logo to a site or group, the logo image seems to appear twice in the corresponding admin bar drop-down item.

Confirmed, at least on the "My Sites" menu. I've added some code to remove the duplicate logo in the "My Sites" menu in https://github.com/cuny-academic-commons/cac/commit/adb2c52eb08482307fb3de0645f0f6a3124906d8. This is available for testing on cdev.

- Maybe this is a dev site thing, but there are broken images for the group logos in the drop-down

I was able to replicate some of the broken images for private site icons due to private site icons needing to be signed by S3 (also see #22966). I've added some code to address this in https://github.com/cuny-academic-commons/cac/compare/9a6bc07...33eb541. Boone, in https://github.com/cuny-academic-commons/cac/commit/6da28a3c81b80b0324e8a6f27f45910a1b109648, I'm mirroring the blog_public option to BP user blog meta so we can call it efficiently when in a bp_has_blogs() loop and have altered the cac_s3_uploads_is_site_private() function to utilize this. On production, we'll need to sync the blog_public option to blog meta, I've written a script located at ~/wp-cli-scripts/blog_public-sync.php that will need to run before deploying 2.7.0.

For the other broken images, it is likely a S3 / dev site thing. If you see broken images, try re-adding an image for the group or site in question to see if the image shows up again.

Maybe it's just us, but the way that the arrows flip up/down when you mouse over the drop-downs is a little laggy and distracting

I'm utilizing WordPress's built-in 'hover' CSS class here for the arrow flip, which only adds the CSS class when the menu is certain to open up in a mouseover state. This causes the inherent lagginess you are experiencing. (The WP admin bar uses the hoverIntent JS library for this.) If the arrow flip is distracting, I'll remove it and make it static like before.

Actions #22

Updated by Sara Cannon 20 days ago

I am good with a static arrow.

FYI In testing on cdev, the link is blue when I went to a site and the mobile view is a bit wonky (see screenshots)

Actions #23

Updated by Boone Gorges 20 days ago

~/wp-cli-scripts/blog_public-sync.php

Thanks so much, Ray!

Actions #24

Updated by Colin McDonald 17 days ago

Not sure if this is related the blue link Sara mentions in her last comment above, but Scott is also seeing some weird link color behavior when clicking on a My Sites dropdown item and looking at the toolbar in the WP dashboard of that site. See video attached. In his report to me, he says:

"It seems only to occur in the dashboard mode. In Firefox, for some reason (in incognito) , when I click one of my sites, the url changes to the home URL in the dashboard – maybe something with the test system is causing these weirdnesses."

Actions #25

Updated by Boone Gorges 17 days ago

Hi Ray - I've been doing some unrelated work on the 2.7.x branch and have experienced slow load times due to the changes here. Specifically, I'm testing with a user that has perhaps 100 sites and 100 groups, and every page load is taking 60+ seconds. The slowness appears to stem from the avatar calls. I think it's because bp_core_fetch_avatar() does a file_exists() check for a "local" avatar, but in our case, this requires a round trip to S3. In a way, this is a shortcoming in BP itself - it should do a better job caching whether a user has a local avatar, one that doesn't involve filesystem scans. But I think we need to do something to address it.

One effective but broad method might be a high-level cache for menu content. Build all of the 'My Sites' menu markup one time, and then throw it into a transient, or into the object cache with some appropriate cache busting. Initial load would still be slow, but most pageloads would hit the cache. Another strategy might be to build an avatar cache. At first, it could be just for this purpose - so instead of calling bp_get_blog_avatar() when building the menu, call cac_get_avatar( 'blog', $blog_id ), which would check some persistent cache before calling bp_get_blog_avatar(). Over time we could roll this out more broadly, or try to integrate more directly into bp_core_fetch_avatar(). What do you think?

Actions #26

Updated by Raymond Hoh 17 days ago

I am good with a static arrow.

FYI In testing on cdev, the link is blue when I went to a site and the mobile view is a bit wonky (see screenshots)

I've removed the hover arrow and the link for the "A CUNY Academic Commons Site" link should now be white. This is available for testing on cdev.

Scott is also seeing some weird link color behavior when clicking on a My Sites dropdown item and looking at the toolbar in the WP dashboard of that site.

I could not replicate this when visiting the abigclone site in Firefox's Private Window mode. It could be a caching issue. I've bumped the CAC version number on cdev, so that should hopefully bust the cache. Can you ask Scott to try again?

In a way, this is a shortcoming in BP itself - it should do a better job caching whether a user has a local avatar, one that doesn't involve filesystem scans. But I think we need to do something to address it.

I'll look into this. Automattic has some code that caches avatar URLs to user and group meta: https://github.com/Automattic/BuddyPress-VIP-Go/. We'd need to tweak this code to work with our S3 set up, but it looks promising.

Is there a user on cdev that is an admin of a ton of sites and groups? If not, I might have to bulk-generate some so I can do some testing there.

Actions #27

Updated by Colin McDonald 6 days ago

Hi Ray, when you are able to get back to this, just let me know when mobile is ready to test. I still have to see if Scott is still seeing the behavior he had flagged before and will let you know if so.

I also wanted to resurface my suggestion to keep Create a Site and Create a Group at the top of the My Sites / My Groups drop-downs like we have it now. I think it's worth keeping creation a prominent item. I don't think these are elsewhere on the admin bar in one click now.

Actions

Also available in: Atom PDF