Skip to content

Add to project catalog legend and accessibility fixes - #6120

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
spadgett:catalog-accessibility
Jan 6, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
spadgett:catalog-accessibility

Conversation

@spadgett

Copy link
Copy Markdown
Member
  • Add builder image icon legend to catalog
  • Add sr-only text for builder image icon
  • Add title text to filter by tag links
  • Fix hover style for builder image icon
  • Replace nth-child styles with tile-badge-icon class
  • Remove unused tile-table CSS styles

openshift_web_console

Fixes #4917
See also #5988

/cc @jwforres @sg00dwin

@spadgett
spadgett force-pushed the catalog-accessibility branch from a3a2bde to 735c76e Compare November 30, 2015 16:25
@jwforres

jwforres commented Dec 1, 2015

Copy link
Copy Markdown
Member

Where the legend is makes it look like help text for the filter input :-\ did you look at what we had for v2? i know its a little weird right now since there is only one element in the legend

@jwforres

jwforres commented Dec 1, 2015

Copy link
Copy Markdown
Member

wondering if adding the small icon for the templates would help any

@spadgett

spadgett commented Dec 1, 2015

Copy link
Copy Markdown
Member Author

Where the legend is makes it look like help text for the filter input :-\ did you look at what we had for v2? i know its a little weird right now since there is only one element in the legend

Yeah, wasn't sure where else to put it. In v2, it was floated to the right, but there were several items in the legend. It looked weird to me there with only one. I could add it above the filter?

@sg00dwin

sg00dwin commented Dec 1, 2015

Copy link
Copy Markdown

What about just updating the tooltip text with the more descriptive text?
"Builds application images from source code in a GitHub repository"

On Tue, Dec 1, 2015 at 9:32 AM, Sam Padgett [email protected]
wrote:

Where the legend is makes it look like help text for the filter input :-
did you look at what we had for v2? i know its a little weird right now
since there is only one element in the legend

Yeah, wasn't sure where else to put it. In v2, it was floated to the
right, but there were several items in the legend. It looked weird to me
there with only one. I could add it above the filter?

—
Reply to this email directly or view it on GitHub
#6120 (comment).

@spadgett

spadgett commented Dec 1, 2015

Copy link
Copy Markdown
Member Author

It might not be obvious you can hover for help. Also it doesn't work as on mobile where you might easily tap the tile instead of the small icon.

@spadgett

spadgett commented Dec 1, 2015

Copy link
Copy Markdown
Member Author

@jwforres Were you thinking of moving the legend to the right?

@jwforres

jwforres commented Dec 2, 2015

Copy link
Copy Markdown
Member

If we add the template icon so that we have more than one thing in the
legend then yeah its worth trying.
On Dec 1, 2015 4:42 PM, "Sam Padgett" [email protected] wrote:

@jwforres https://github.com/jwforres Were you thinking of moving the
legend to the right?

—
Reply to this email directly or view it on GitHub
#6120 (comment).

@spadgett

spadgett commented Dec 2, 2015

Copy link
Copy Markdown
Member Author

If we add the template icon so that we have more than one thing in the legend then yeah its worth trying.

Let me try it and see how it looks.

@spadgett

spadgett commented Dec 7, 2015

Copy link
Copy Markdown
Member Author

We show fa-bolt as the default icon for a template when a custom one isn't set. If we use the same for the badge, it might show up twice.

For builder images, we use fa-cube as the default, which is not the same as the badge, but it might be the wrong icon...

@jwforres

jwforres commented Dec 7, 2015

Copy link
Copy Markdown
Member

Yeah this was the same in v2, the icon showed up twice if we didn't have a
different one to show, not ideal, and its worse in v3 since you are far
more likely to have custom templates installed. As far as fa-cube, its
debatable, because it is an image either way, and you'd need to show
fa-cube on the ones that arent builders (the show me all the images
section).

On Mon, Dec 7, 2015 at 9:36 AM, Sam Padgett [email protected]
wrote:

We show fa-bolt as the default icon for a template when a custom one
isn't set. If we use the same for the badge, it might show up twice.

For builder images, we use fa-cube as the default, which is not the same
as the badge, but it might be the wrong icon...

—
Reply to this email directly or view it on GitHub
#6120 (comment).

@spadgett

Copy link
Copy Markdown
Member Author

Feels very unbalanced no matter what I try. We'd need to add more text to the left column, but hesitate to do that just to fill space. It's worse when I add "Learn More" links.

openshift_web_console

openshift_web_console

@spadgett

Copy link
Copy Markdown
Member Author

Below the description:

openshift_web_console

Below the filter control:

openshift_web_console

@liggitt

liggitt commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

What about a greyed single line under the header?

Select Image or Template

Choose from web frameworks, databases, and other components

🎓 – builder image ⚡ – template

@spadgett

Copy link
Copy Markdown
Member Author

@liggitt I'll give it a try, that might be better.

Another possibility:

openshift_web_console

@liggitt

liggitt commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

actually, if we're showing the tag that the icon already derives from, so we care that they have to hover to discover the icon meaning the first time?

@liggitt

liggitt commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

I like #6120 (comment)
What about descriptions on their own line?

🎓 Builder Image
Builds images from source code in a Git repository

⚡ Template
Creates a set of objects from parameter values

@spadgett

Copy link
Copy Markdown
Member Author

openshift_web_console

@spadgett

Copy link
Copy Markdown
Member Author

Collapses to this on mobile. Need to adjust the padding a bit.

openshift_web_console

@spadgett

Copy link
Copy Markdown
Member Author

actually, if we're showing the tag that the icon already derives from, so we care that they have to hover to discover the icon meaning the first time?

Yeah, hover has always worked, but we got several requests for a legend like v2. It's difficult to open the tooltip on mobile as well because it's a small touch target and the whole tile is a link to the next page.

@spadgett

Copy link
Copy Markdown
Member Author

Made the input and button span with width of the column.

openshift_web_console

Also keeping the filter inputs side-by-side at mobile resolutions. There's enough room.

openshift_web_console

@spadgett
spadgett force-pushed the catalog-accessibility branch from 735c76e to 263102f Compare December 23, 2015 20:33
@spadgett

Copy link
Copy Markdown
Member Author

@jwforres ready for review

Latest:

openshift_web_console

@spadgett
spadgett force-pushed the catalog-accessibility branch from 263102f to 658a71b Compare December 23, 2015 20:38
@spadgett

Copy link
Copy Markdown
Member Author

[test]

@spadgett

Copy link
Copy Markdown
Member Author

@jwforres Is this the timeout you were talking about?

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/8119/console

1)  unauthenticated user should be able to log in
  - Error: Wait timed out after 3386ms
      at /data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1425:29
    at /data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15
    at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20)
    at notify (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)
    at [object Object].then (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:522:7)
    at Object.webdriver.promise.asap (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:767:11)
    at newFrame.onComplete (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1670:25)
    at [object Object].webdriver.promise.Frame_.notify_ (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1914:5)
    at [object Object]._onTimeout (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1901:11)
==== async task ====
    at [object Object].webdriver.promise.ControlFlow.wait (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1410:15)
    at [object Object].webdriver.WebDriver.wait (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:646:21)
    at Object.exports.login (/data/src/github.com/openshift/origin/assets/test/integration/helpers.js:31:10)
    at [object Object].<anonymous> (/data/src/github.com/openshift/origin/assets/test/integration/e2e.js:32:9)
    at /data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/jasminewd/index.js:94:14
    at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20)
    at [object Object].webdriver.promise.ControlFlow.runEventLoop_ (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1518:8)
    at [object Object].wrapper [as _onTimeout] (timers.js:261:14)
==== async task ====
Asynchronous test function: it()
    at [object Object].<anonymous> (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/jasminewd/index.js:93:33)
    at [object Object].<anonymous> (/data/src/github.com/openshift/origin/assets/node_modules/protractor/node_modules/minijasminenode/lib/async-callback.js:45:37)
Error
    at [object Object].<anonymous> (/data/src/github.com/openshift/origin/assets/test/integration/e2e.js:21:5)
    at [object Object].<anonymous> (/data/src/github.com/openshift/origin/assets/test/integration/e2e.js:12:3)
    at Object.<anonymous> (/data/src/github.com/openshift/origin/assets/test/integration/e2e.js:4:1)

Executed 14 of 14 specs (1 FAILED) in 51 secs.

The screenshot is just a page that says "Loading..."

unauthenticated user should be able to log in

@spadgett

Copy link
Copy Markdown
Member Author

Wait timed out after 3386ms

Is our timeout only ~3 seconds?

@jwforres

jwforres commented Jan 4, 2016

Copy link
Copy Markdown
Member

Yeah the timeout for login is 3 seconds, we could try bumping it up to 5
and see if that helps any. cc @liggitt

On Wed, Dec 23, 2015 at 4:59 PM, Sam Padgett [email protected]
wrote:

Wait timed out after 3386ms

Is our timeout only ~3 seconds?

—
Reply to this email directly or view it on GitHub
#6120 (comment).

Comment thread assets/app/views/create.html Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe 'Creates a predefined set of resources.' dunno just not sure about the existing sentence

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I think that's better.

@spadgett
spadgett force-pushed the catalog-accessibility branch from 658a71b to 9def1e8 Compare January 4, 2016 18:59
@spadgett

spadgett commented Jan 4, 2016

Copy link
Copy Markdown
Member Author

@jwforres added your suggested template description

@jwforres

jwforres commented Jan 4, 2016

Copy link
Copy Markdown
Member

@spadgett what does it look like at a wider screen width when the catalog's not right next to the other stuff

@spadgett

spadgett commented Jan 4, 2016

Copy link
Copy Markdown
Member Author

@jwforres This is how it looks as wide as my display goes. There's a max width on the content.

openshift_web_console

@spadgett
spadgett force-pushed the catalog-accessibility branch from 9def1e8 to 15b8f75 Compare January 4, 2016 21:37
@spadgett

spadgett commented Jan 4, 2016

Copy link
Copy Markdown
Member Author

Rebased.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 15b8f75

@openshift-bot

Copy link
Copy Markdown
Contributor

@jwforres

jwforres commented Jan 5, 2016

Copy link
Copy Markdown
Member

[merge]

@jwforres jwforres added the lgtm Indicates that a PR is ready to be merged. label Jan 5, 2016
@jwforres

jwforres commented Jan 5, 2016

Copy link
Copy Markdown
Member

[merge]

1 similar comment
@spadgett

spadgett commented Jan 5, 2016

Copy link
Copy Markdown
Member Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4516/) (Image: devenv-rhel7_3084)

@spadgett

spadgett commented Jan 6, 2016

Copy link
Copy Markdown
Member Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 15b8f75

openshift-bot pushed a commit that referenced this pull request Jan 6, 2016
@openshift-bot
openshift-bot merged commit 5e1a2e3 into openshift:master Jan 6, 2016
@spadgett
spadgett deleted the catalog-accessibility branch January 9, 2017 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/web lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants