Presentation updates - #16
Conversation
There was a problem hiding this comment.
You ought to add in some validation here, in case someone puts in data in an unreadable format (for example swaps [] for the { } or something).
There was a problem hiding this comment.
eg maybe,
try:
hide_questions = self.exclude_questions.get(mentoring_block.url_name, [])
except Exception:
# log exception & what self.exclude_questions is|
I see you have two travis builds running on this repo (you have both the push job and the pr job enabled). You can pretty easily fix this: We noticed within the last couple of days that some Travis-run repos are starting two jobs for a pull request. (One job labeled "continuous-integration/travis-ci/pr" and another labeled "continuous-integration/travis-ci/push"). If this is happening to you, you will need the following stanza in your .travis.yml: |
|
@e-kolpakov this seems reasonable. Do you have a sandbox where I can look at this? |
|
@sarina We are actually deliberately running two Travis builds on this repo. One build is just for this branch (the push build), and one tests the result of the merge (the pr build). In addition, we found that the "fix" you mention above seems to sometimes prevent builds when PRs are opened against non-master branches. Edit: another advantage of leaving the "push" build enabled for other branches is that you can get build results before you open a PR, and then when you do open the PR, it will show any intermediate commit builds that it ran during development. |
|
@bradenmacdonald ok, as long as you're fine with it. It was annoying on my repos, but I'm not doing lots of fancy stuff and didn't want to annoy Travis. |
There was a problem hiding this comment.
Put a period and space after the ) here. It is currently appearing as "has number 1)Examples: "
There was a problem hiding this comment.
Also, I'd suggest you rephrase: "Optional rules to exclude specific questions both from displaying in dashboard and from the calculated average. Rules must start with the url_name of a mentoring block, followed by list of question numbers to exclude (the first question being number 1). Must be in JSON format. Examples: ..."
|
@e-kolpakov I forgot to mention this earlier, but the current way that one sets "Questions to be hidden" using JSON is not very user-friendly. If you have the time and are feeling ambitious: you could modify this XBlock so that its |
|
@bradenmacdonald Making "Questions to be hidden" is a good suggestion, but this task is due tomorrow and I'm not feeling ambitious :) So please add this to backlog as an improvement. |
|
@sarina sandbox: not yet, I'll spin it up when I have time (probably in a matter of one hour from now) UPD: sandbox provisioned, link added to PR description |
|
@sarina just a reminder, it would be great if this could be merged today, in time for upcoming release. |
|
Sure thing. Is there a sandbox available to take a look at it? On Fri, Apr 24, 2015 at 3:27 AM, Eugeny Kolpakov notifications@github.com
|
|
@sarina Yup, you have the links in the PR description above - it took me some time to find them too : ) |
|
@e-kolpakov 👍 to merge once the typo is addressed. I do want @cptvitamin to take a look at this block, even if it's after it's merged. He will be back from vacation next week. Could you please keep the sandboxes up until he's gotten a chance to review? |
* Horizontally centering visual progress * Ability to override "Average" label * Added ability to hide numbers in dashboard * Ability to exclude specific questions from dashboard * Slightly improved a11y (aka accessibility)
1088ec6 to
0cf055d
Compare
|
@sarina there's one feature left not implemented: the ability to set up average labels per mentoring (now it's one setting for dashboard). Since this already get thumbs up and release is quite close, I'll merge this PR when the build turns green, and implement that in a follow up PR (probably today, Monday for sure). |
|
@e-kolpakov you're going to keep the sandbox running yes? |
|
@sarina yes, once it's not needed it is just freed to be used later, but not shutdown/disabled/etc. |
There was a problem hiding this comment.
@e-kolpakov I've never seen anyone try to use aria-label on a td element, and I don't blame you for trying since the spec says it is allowed. However, I wanted to perform a quick implementation test for using aria-label on a td element and I found that only Voiceover will read the aria-label, and only if there is an explicit value in the td element, and it reads both. If the cell is empty, it ignores the aria-label. Testing in NVDA and JAWS revealed that only explicit td values are read. aria-labels are ignored.
I recommend using off-screen text (class=sr) inside the table cells in this use case.
JIRA Ticket: https://openedx.atlassian.net/browse/OSPR-543
Details: See JIRA ticket
Sandbox: LMS, CMS
Merge deadline: Friday 24th (in time for upcoming release)
Testing instructions:
2, Set up Dashboard block to draw data from those blocks
Observe the following: