-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No differentiation between completed lessons and locked lessons in topics tab #4648
Comments
Hi @vrajdesai78! Nice find! Although the TalkBack should have automatically worked as expected correctly, as there weren't any specific changes introduced to that part, but I'll investigate on this and work on a fix. Thanks! |
Unassigning myself so that someone else can pick this issue. Although I haven't digged into the details but this might be a good first/second issue. WDYT @BenHenning ? |
I think so, but @JishnuGoyal could you provide a few code points and a brief write-up (e.g. bullet items of what roughly needs to change; this should be in a reply comment not a doc) of how you think this can be solved? That's more or less the bar that we're trying to establish for starter issues moving forward (to reduce the back-and-forths needed with new contributors who are trying to familiarize themselves). |
Problem Statement and CauseI was able to successfully replicate the issue. As stated in the issue, In-progress and completed lessons are read correctly but locked lessons are considered in-progress lessons. This is caused by a logic flaw. The control structure in the Proposed SolutionBelow is my suggested approach to the problem;
That should be able to successfully fix the issue. |
… and in-progress lessons (#4958) <!-- READ ME FIRST: Please fill in the explanation section below and check off every point from the Essential Checklist! --> ## Explanation <!-- - Explain what your PR does. If this PR fixes an existing bug, please include - "Fixes #bugnum:" in the explanation so that GitHub can auto-close the issue - when this PR is merged. --> Fix #4648: When this PR is merged, it will fix the issue of locked, completed and in progress lessons not being differentiated by Talkback. ## Essential Checklist <!-- Please tick the relevant boxes by putting an "x" in them. --> - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only <!-- Delete these section if this PR does not include UI-related changes. --> If your PR includes UI-related changes, then: - Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes - For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see [RTL guide](https://github.com/oppia/oppia-android/wiki/RTL-Guidelines)) - Add a video showing the full UX flow with a screen reader enabled (see [accessibility guide](https://github.com/oppia/oppia-android/wiki/Accessibility-A11y-Guide)) - Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing
Describe the bug
In topic lessons tab, when we use screen reader there is not differentiation between completed lessons and locked lessons. Also, locked lessons are having content description as "lessons in progress" which should be locked lessons.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The content description for completed lessons, locked lessons and In Progress lesson should be appropriate to it's state. For example, for locked chapter content description should have locked chapter in the end.
Demonstrationtion
https://user-images.githubusercontent.com/43074241/195417529-357236fe-1d37-45a1-888f-51158ea89822.mp4
Environment
The text was updated successfully, but these errors were encountered: