-
Notifications
You must be signed in to change notification settings - Fork 503
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 uiFind icons, scroll to first match #367
Merged
everett980
merged 14 commits into
jaegertracing:master
from
everett980:issue-361-and-360-improve-uiFind-interactions
May 3, 2019
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a0e296a
WIP - add uiFind icons, scroll to first match
everett980 ebf9473
Use componentDidUpdate instead of setTimeout
everett980 37f9a20
Clarify focusUiFind function name, fix existing
everett980 bb66f09
Add scrollToFirstVisibleSpan tests
everett980 79f04af
Add scrollToFirstVisibleSpan tests
everett980 79eb6df
Bolster test coverage for files in PR
everett980 8a268c2
Improve TracePageSearchBar styling, choose icons
everett980 5a146ef
Move scroll indicator from set/map to standalone
everett980 43a8ca5
Update CopyIcon to support spanID deep link
everett980 5801d3e
Fix CopyIcon css, Swap in copy-to-clipboard
everett980 73e8691
Improve VirtualizedTraceView shouldComponentUpdate
everett980 7651dbc
Merge branch 'master' into issue-361-and-360-improve-uiFind-interactions
tiffon 9b9f5c0
Remove unnecessary function calls, improve names
everett980 cdbdd9d
Remove nonfunctional focusUiFindMatches call
everett980 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update CopyIcon to support spanID deep link
Signed-off-by: Everett Ross <reverett@uber.com>
- Loading branch information
commit 43a8ca5ab36f5092961d28a18db7d422b6cc4998
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
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.
Why not just using
location.origin
, sanswindow
?Also, it's a bit strange having the magic string
'uiFind'
in several places. I think this makes three. We can consolidate in a different PR.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.
I guess I'm just used to seeing
window.location
instead oflocation
on its own, butlocation
on its own works fine and is shorter so I updated.I agree about consolidating
uiFind
in its own PR. Should that just be whenuiFind
is in a string? If so, this seems to be the only instance based on a quick search (ag --ts '['"'"'"`].+uiFind'
). But I think it would make sense to be a constant whenever it is interacting with the URL (i.e.: here and when interacting withqueryString.parse
/queryString.stringify
)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.
Also, eslint dislikes
location
but doesn't mindwindow.location
. What is your preference on usingwindow.location
vs// eslint-disable-line no-restricted-globals