proudcity / wp-proudcity

The ProudCity WordPress platform

Home Page:https://proudcity.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix alt text enhancements

lukefretwell opened this issue · comments

Builds

Issue

Source
The source of the issue (ex: Customer: #CustomerName#).

ProudCity

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Only to make certain items invisible to admins.

What feature would you like to improve
A clear and concise description of the current feature.

Hide:

  • Current settings box on dashboard page
  • Settings tab
  • Notices? (example below references settings)
  • Warnings? (example below references settings)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Additional context
Add any other context or screenshots about the feature request here.

Current settings:

Screenshot 2024-05-14 at 10-45-41 Fix Alt Text ‹ ProudCity — WordPress

Settings tab:

Screenshot 2024-05-14 at 10-46-07 Settings

Notices:

Screenshot 2024-05-14 at 10-45-56 Alt Text

Warning:

Screenshot 2024-05-14 at 11-58-07 Fix Alt Text ‹ ProudCity — WordPress

Deploy

  • add new settings to allow editors
{
  "option": "fix_alt_text",
  "db_version": "1.7.0",
  "db_version_history": [],
  "access_tool_roles": [
    "editor"
  ],
  "access_settings_roles": [
    "editor"
  ],
  "debug": false,
  "blocks": [
    "core/image",
    "core/media-text",
    "core/gallery"
  ],
  "others": [
    "Media Library"
  ],
  "scan_post_types": [
    "attachment",
    "page",
    "wp_block",
    "post",
    "wp_template_part",
    "wp_template"
  ],
  "scan_taxonomies": [
    "category",
    "post_tag",
    "wp_template_part_area",
    "wp_theme"
  ],
  "scan_users": true,
  "site_id": 1
}

When ready:

  • give WP editors permissions
  • Link to better documentation

@kevindherman @lukefretwell this is up in Beta for testing. @kevindherman what specifically did you mean when you asked for a link to better documentation? I'm not sure where I would put that.

@curtismchale awesome. I'm trying to get the first scan going but it's just spinning. Are you able to generate a scan?

For documentation, I think the idea was to add links to support articles. There will likely be a future article for the specific tool but for now, this is the newest and best alt text article: https://help.proudcity.com/alt-text-and-accessible-images/

@lukefretwell I think you had more specific ideas on helpful doc placement?

Maybe it's phase 1 using the existing article to get this out and then we add more useful documentation down the line.

@curtismchale Beta has a lot of images and my guess is that many don't have alt text so I wonder if the size of the scan is part of the issue. Scanning San Rafael and Petaluma respectively took a couple of goes.

@kevindherman @lukefretwell so this still isn't quite running on Beta, but it doe work on another test site. I assume that @kevindherman idea above is correct, there are lots of images on beta and it may just be bogging things down. I'm letting the Fix Alt Text plugin run on Beta for a while to see if it works eventually.

For now check out the other test site to verify that this works as expected.

@curtismchale @lukefretwell this is great.

Dashboard:
@lukefretwell there are extra items in the dashboard report which makes the total issues found number bigger. If you click on "alt text missing" it brings you to the filtered list. We talked about limiting that but I think it's helpful as long as we provide context.

@curtismchale are we able to limit to just alt text missing? That could be a good phase 1 and then the other items we could role out later if @lukefretwell is concerned about freaking people out with a big number of issues when alt text missing is the main problem.

Total images
@curtismchale I think it's worth testing the ballpark of when a site has too many images for the tool. Can do a big bulk delete of images on BETA to bring it down say 250-500 images and see where the tool starts scanning right. @lukefretwell this could be a good way of getting customers to clean out/delete old images. "If you have more than 2000 image files, the scan can time out. Accumulating 2000 images over the course of years is also weighing down your site, consider deleting images from your media library to bring you under #### to have the scan work better and optimize your site."

I'm not as concerned about the number of images causing alarm. Would be great to understand (and see) what we can hide per specs here: #2550 (comment)

@lukefretwell it looks like everything was edited out from your comments. Do you think this message/alert should also be edited out?
Screen Shot 2024-06-20 at 2 28 23 PM

@kevindherman I'm not sure that the amount of images is the problem with Beta. I just ran it on my site with 3500 images and it took about 1 minute to run. It showed progress within about 10 seconds. I'm deploying to proudcity now to test there again to see if the image processing works.

I don't think we should limit the report either. It's possible with CSS to hid things, but it's just a list of items so I have to use CSS that counts the items. If they ever change the order or add one item the CSS isn't going to work as we expect. I think we should focus on education, good alt text is a requirement they have to meet. I don't think hiding the issue serves customers well at all.

Ballpark image numbers

We know that 3500 work on my site. I just ran it locally on a client site with 4500 images and it worked fine. I'm grabbing a copy of a client site with 11k images to test as well. That's taking a bit so I'll update if it doesn't work.

What we hide

@lukefretwell we hide everything you asked for except the bell icon because I missed that arrow. I'll do that now. We only hide that if you're not a WordPress Administrator. I know there is 1 or 2 customers that have this access but for the vast majority, everything you wanted is hidden.

I'll do a new build shortly to hide the bell as well.

I'm totally fine with not limited the report, it was just discussed previously.

Sounds like we could be close to getting out.