-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Add ability to recognize links to the same page #16994
Conversation
See test results for failed build of commit faef7e208e |
@nvdaes may I suggest "isSamePage", and in other cases, "same page" instead of "internal"?
I think (not 100%) that other screen readers use the phrasing "in-page link" or "same page link" for this.
|
Hi @nvdaes we're just waiting to see how the PR approach develops before it is marked as ready for review and given the conceptApproved label |
This approach is missing some things @jcsteh mentioned in #141 (comment), notably changes to the virtual buffer code. |
@LeonarddeR , as mentioned by me, I don't have experience with C++, so I was waiting for further guidance. |
Add IAccessible::value to vbuf
See test results for failed build of commit c78e95c866 |
@LeonarddeR has done a great work here, and I think we can include him as the first author of this in the changelog entry, and thanks also Jamie for his guidance. |
See test results for failed build of commit af3213bbf6 |
See test results for failed build of commit ae331b776e |
See test results for failed build of commit 72332730ff |
…ort link type states
@LeonarddeR , I think that the cpp file hchanges are not following the style of this project, since space is used after |
See test results for failed build of commit 4516d2d20c |
|
@coderabbitai review |
Tip For best results, initiate chat on the files or code changes. @nvdaes, I've reviewed the latest changes, and I can confirm that the missing translator comments have been successfully added to the Analysis chainScripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Fetch the latest diffs for the most recent commits in the PR to review the changes made.
git log -p -1
Length of output: 835 |
@coderabbitai, unit test are failing now. Can you comment on this? |
Tip For best results, initiate chat on the files or code changes. @nvdaes, the unit test failures are due to a To resolve this issue, please ensure that the from source.utils.urlUtils import isSamePageURL Once the import is correctly set up, the tests should be able to recognize the Analysis chainScripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Fetch the details of the failing unit tests from the most recent build logs.
# The logs will help identify which tests are failing and why.
# Extract the last commit hash to ensure we're analyzing the latest build.
last_commit=$(git log -1 --format="%H")
# Fetch the unit test results from the latest build associated with the last commit.
curl -s "https://ci.appveyor.com/api/buildjobs/mlgnc1u3l7m8fw86/log" | grep -A 20 "FAILED TESTS"
Length of output: 177 Script: #!/bin/bash
# Fetch the details of the failing unit tests from the most recent build logs.
# The logs will help identify which tests are failing and why.
# Extract the last commit hash to ensure we're analyzing the latest build.
last_commit=$(git log -1 --format="%H")
# Fetch the unit test results from the latest build associated with the last commit.
curl -s "https://ci.appveyor.com/api/buildjobs/mlgnc1u3l7m8fw86/log" | grep -E -A 50 "FAIL|ERROR|Traceback"
Length of output: 32759 |
@coderabbitai, can you check if function and variable names should be improved for English or to follow recommended conventions? |
Tip For best results, initiate chat on the files or code changes. @nvdaes, I've reviewed the variable names extracted from the
The other variable names, such as Let me know if you need any further assistance or if you'd like to discuss these suggestions! Analysis chainScripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Extract function and variable names from the urlUtils.py file for review.
# Extract function names
echo "Function Names:"
ast-grep --lang python --pattern 'def $_($_):' -- source/utils/urlUtils.py
# Extract variable names
echo "Variable Names:"
rg --python --pcre2 --no-heading --no-line-number --only-matching '\b\w+\b(?=\s*=)' source/utils/urlUtils.py
Length of output: 680 Script: #!/bin/bash
# Extract function and variable names from the urlUtils.py file for review.
# Extract function names using ast-grep
echo "Function Names:"
ast-grep --lang python --pattern 'def $_($_):' -- source/utils/urlUtils.py
# Extract variable names using rg without the invalid --python flag
echo "Variable Names:"
rg --no-heading --no-line-number --only-matching '\b\w+\b(?=\s*=)' source/utils/urlUtils.py
Length of output: 478 Script: #!/bin/bash
# Extract function and variable names from the urlUtils.py file for review.
# Extract function names using ast-grep
echo "Function Names:"
ast-grep --lang python --pattern 'def $_($_):' -- source/utils/urlUtils.py
# Extract variable names using rg with the --pcre2 flag to support look-around assertions
echo "Variable Names:"
rg --pcre2 --no-heading --no-line-number --only-matching '\b\w+\b(?=\s*=)' source/utils/urlUtils.py
Length of output: 421 |
h@coderabbitai, NVDA project doesn't use the snakeCase style. |
Tip For best results, initiate chat on the files or code changes. @nvdaes, the Analysis chainScripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Extract function and variable names from the test_urlUtils.py file for review.
# Extract function names using ast-grep
echo "Function Names:"
ast-grep --lang python --pattern 'def $_($_):' -- test_urlUtils.py
# Extract variable names using rg with the --pcre2 flag to support look-around assertions
echo "Variable Names:"
rg --pcre2 --no-heading --no-line-number --only-matching '\b\w+\b(?=\s*=)' test_urlUtils.py
Length of output: 365 Script: #!/bin/bash
# Search for files with names that include "urlUtils" or similar.
fd -i urlUtils
Length of output: 79 Script: #!/bin/bash
# Extract function and variable names from the correct test_urlUtils.py file for review.
# Extract function names using ast-grep
echo "Function Names:"
ast-grep --lang python --pattern 'def $_($_):' -- tests/unit/test_util/test_urlUtils.py
# Extract variable names using rg with the --pcre2 flag to support look-around assertions
echo "Variable Names:"
rg --pcre2 --no-heading --no-line-number --only-matching '\b\w+\b(?=\s*=)' tests/unit/test_util/test_urlUtils.py
Length of output: 288 |
@coderabbitai, can you check if function names in test_urlUtils should be improved? |
Tip For best results, initiate chat on the files or code changes. @nvdaes, I've reviewed the function names in Analysis chainScripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Extract function names from the test_urlUtils.py file for review.
ast-grep --lang python --pattern 'def $_($_):' -- tests/unit/test_util/test_urlUtils.py
Length of output: 89 Script: #!/bin/bash
# Search for function definitions in the test_urlUtils.py file using rg.
rg --no-heading --line-number --only-matching 'def \w+' tests/unit/test_util/test_urlUtils.py
Length of output: 450 |
@seanbudd, can we tell the rabbit in the config file, that we use cammelCase, and not to suggest snake_case?
|
See test results for failed build of commit 3bc70532e5 |
@XLTechie sure that can be proposed as a PR to the config file. |
Sean wrote:
OK, thanks for the clarification. I think that this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, and well done on closing one of our older issues!
@coderabbitai resolve |
Fixes issue #17127 Fixup of PR #16994 Summary of the issue: Same page links are reported, but not on local files. Description of user facing changes: Same page links will be also reported on local files like HTML documents. Description of development approach: In the `samePageURL` function, "file" has been added to `validSchemes`. Testing strategy: - Tested manually with NVDA's user guide. - Performed unit tests.
Link to issue number:
Fixes #141
Summary of the issue:
NVDA cannot recognize when link destination points to the same document, and reporting this information is desired by many users.
Description of user facing changes
NVDA can report if a link destination points to the same document.
Description of development approach
controlTypes.State
.INTERNAL_LINK
state is added in_get_states
, in IAccessible/IA2web and in UIA/Chromium.Testing strategy:
Tested manually:
Known issues with pull request:
None
Code Review Checklist:
Summary by CodeRabbit
Summary by CodeRabbit
New Features
isInternalLink
property for better identification of internal links.Bug Fixes