Skip to content
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

Fix part of #3602: Add accessibility label for ProfileEditActivity #4894

Merged
merged 15 commits into from
Mar 23, 2023

Conversation

kkmurerwa
Copy link
Collaborator

@kkmurerwa kkmurerwa commented Mar 8, 2023

Explanation

Fix part of #3602: When merged, this PR will;

  • Create a strings item in vaues/strings.xml with the accessibility text label for the ProfileEditActivity.
  • Add a label for the activity in the manifest file.
  • Remove the activity from the accessibility_label_exemptions.textproto file.
  • Add test to check that the appropriate label is displayed for ProfileEditActivity.
  • Modified tests in ProfileEditActivityTest to reflect new title behavior and remove any checks for the username as the toolbar title.
  • Removed deprecated testProfileEdit_updateName_checkNewNameDisplayed() test that checked for previous title behaviour.

New changes after 22/03/23 review;

  • Rename the string from R.string.profile_edit_activity_label to R.string.profile_edit_activity_title
  • Update the Manifest file to reflect this change.
  • Modify the ProfileEditActivityTest class to reflect the change and test for the toolbar title.
  • Linting check fixes.

Essential Checklist

  • 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: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

When merged, this commit will;
- Create a strings item in R.strings with the accessibility text for the activity.
- Add a label for the activity in the manifest file.
- Remove the activity from the accessibility_label_exemptions.textproto file.
Copy link
Collaborator

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

Thanks @kkmurerwa!
I have a two comments:

  • The PR explanation should start with "Fix part of [A11y] Add label for all non-test activities #3602" so you can link this PR to the issue. (Also, you added the explanation above the heading instead of below it)
  • Could you edit the testProfileEditActivity_hasCorrectActivityLabel() test for this change?

@kkmurerwa kkmurerwa changed the title Fixes part of #3602: Add accessibility label for ProfileEditActivity Fix part of #3602: Add accessibility label for ProfileEditActivity Mar 9, 2023
Copy link
Collaborator

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @kkmurerwa! Just had one comment looking for clarity. Are we actually changing the title in this PR or just the accessibility label? Bit confused about the test changes here.

@BenHenning BenHenning assigned kkmurerwa and unassigned BenHenning Mar 11, 2023
@adhiamboperes
Copy link
Collaborator

Hi @kkmurerwa, when you'd like someone to take the next action on your PR you can mention them by @xxx PTAL and then oppiabot should assign them for you. Also review the wiki here on general code review guidelines.

@kkmurerwa
Copy link
Collaborator Author

@BenHenning PTAL

@oppiabot oppiabot bot assigned BenHenning and unassigned kkmurerwa Mar 16, 2023
@oppiabot
Copy link

oppiabot bot commented Mar 16, 2023

Unassigning @kkmurerwa since a re-review was requested. @kkmurerwa, please make sure you have addressed all review comments. Thanks!

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @kkmurerwa. Had one follow-up--PTAL.

@BenHenning BenHenning assigned kkmurerwa and unassigned BenHenning Mar 22, 2023
- Rename the string from R.string.profile_edit_activity_label to R.string.profile_edit_activity_title
- Update the Manifest file to reflect this change.
- Modify the ProfileEditActivityTest class to reflect the change and test for toolbar title.
@kkmurerwa
Copy link
Collaborator Author

Hey @BenHenning. I renamed the string, modified the manifest and the relevant test. I hope everything is good now. I have updated the PR comment with the changes made under today's date (22/03/23). PTAL and let me know if there are any further changes needed.

@kkmurerwa
Copy link
Collaborator Author

@BenHenning PTAL

@oppiabot oppiabot bot assigned BenHenning and unassigned kkmurerwa Mar 22, 2023
@oppiabot
Copy link

oppiabot bot commented Mar 22, 2023

Unassigning @kkmurerwa since a re-review was requested. @kkmurerwa, please make sure you have addressed all review comments. Thanks!

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @kkmurerwa! This LGTM!

One note: please make sure to reply directly to all comments between review passes (to ensure it's explicitly clear that you've addressed the comments).

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Oops, meant to approve.

@BenHenning BenHenning merged commit 81956ba into oppia:develop Mar 23, 2023
Uticodes pushed a commit to Uticodes/oppia-android that referenced this pull request Apr 4, 2023
…ty (oppia#4894)

<!-- 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 part of oppia#3602: When merged, this PR will;
- Create a strings item in vaues/strings.xml with the accessibility text
label for the ProfileEditActivity.
- Add a label for the activity in the manifest file.
- Remove the activity from the accessibility_label_exemptions.textproto
file.
- Add test to check that the appropriate label is displayed for
ProfileEditActivity.
- Modified tests in ProfileEditActivityTest to reflect new title
behavior and remove any checks for the username as the toolbar title.
- Removed deprecated testProfileEdit_updateName_checkNewNameDisplayed()
test that checked for previous title behaviour.

New changes after 22/03/23 review;
- Rename the string from R.string.profile_edit_activity_label to
R.string.profile_edit_activity_title
- Update the Manifest file to reflect this change.
- Modify the ProfileEditActivityTest class to reflect the change and
test for the toolbar title.
- Linting check fixes.

## 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)).

---------

Co-authored-by: Ben Henning <ben@oppia.org>
@kkmurerwa kkmurerwa deleted the add-label-for-profileeditactivity branch May 10, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants