Improve Component Communication Logic#9730
Merged
chidozieononiwu merged 1 commit intoAzure:mainfrom Jan 29, 2025
Merged
Conversation
Member
chidozieononiwu
commented
Jan 29, 2025
- Improve component communication logic for codeline search
Contributor
There was a problem hiding this comment.
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
Files not reviewed (2)
- src/dotnet/APIView/ClientSPA/src/app/_components/review-page-options/review-page-options.component.html: Language not supported
- src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.html: Language not supported
Comments suppressed due to low confidence (4)
src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.ts:499
- The use of setTimeout with a delay of 0 might be unnecessary and could introduce unexpected behavior. Ensure this is intentional and necessary.
setTimeout(() => { this.codeLineSearchInfo = (value) ? new CodeLineSearchInfo(value.currentMatch, value.totalMatchCount) : undefined; }, 0);
src/dotnet/APIView/ClientSPA/src/app/_components/review-page-options/review-page-options.component.ts:376
- The term 'Naviation' is misspelled. It should be 'Navigation'.
this.codeLineSearchNaviationEmmiter.emit(navigationPosition!);
src/dotnet/APIView/ClientSPA/src/app/_components/review-page-options/review-page-options.component.ts:376
- [nitpick] The parameter name 'number' is ambiguous. It should be renamed to 'direction'.
navigateSearch(number: 1 | -1)
src/dotnet/APIView/ClientSPA/src/app/_components/code-panel/code-panel.component.ts:853
- The optional chaining operator
?.should be used consistently. ThecurrentMatchproperty is already checked, sovalueshould not use?..
this.scrollToNode(this.codeLineSearchInfo?.currentMatch.value.nodeIdHashed, undefined, false, false);
praveenkuttappan
approved these changes
Jan 29, 2025
d02dab4 to
af62e88
Compare
af62e88 to
188fab2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.