-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(replays) - add playlist support from Issue Details and Insights #103007
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
Merged
Merged
Changes from 118 commits
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
e336a81
feat(replays): Enhance replay details navigation with start and end t…
jerryzhou196 76b424d
ref(replays): Simplify ReplayDetailsUserBadge component. Removed unus…
jerryzhou196 81f8b76
ref(replays): Update ReplayDetails and Breadcrumbs for improved navig…
jerryzhou196 0481f7e
ref(replays): Update replay navigation icons and structure
jerryzhou196 b92a135
ref(replays): Simplify replay time handling in ReplayTable and relate…
jerryzhou196 e9cf08f
remove erroneous comment
jerryzhou196 dda816f
Merge branch 'master' into replay-carousal
jerryzhou196 411821b
Merge branch 'master' into replay-carousal
jerryzhou196 ba35080
fix(replay-table): Enhance sorting functionality and update query par…
jerryzhou196 24c97a4
Merge branch 'master' into replay-carousal
jerryzhou196 d2ecfbf
fix(replay): fix typo in DEFAULT_SORT
jerryzhou196 8f60afe
Merge remote-tracking branch 'origin/master' into replay-carousal
jerryzhou196 7a46ed8
refactor(replayTable): Rename 'start' to 'end' for replay timestamps
jerryzhou196 0b6ba8d
fix(replayTable): Update comment for sort query string handling
jerryzhou196 8383216
feat(replayDetails): remove location.query
jerryzhou196 d70cc2d
refactor(replayTable): Remove unused end timestamp and update query h…
jerryzhou196 6277a38
added left margin to buttons
jerryzhou196 f5f3700
address Billy's code review
jerryzhou196 40be3b2
feat(replayTable): Integrate EventView into ReplayTable and related c…
jerryzhou196 d2f35ac
fix(replayDetails): Correct nextReplay calculation to handle edge cas…
jerryzhou196 00a8a90
feat(replayTable): normalize eventView handling in ReplayTable and co…
jerryzhou196 3db7bba
feat(replayTable): Enhance eventView query handling with stats period…
jerryzhou196 ab71b4c
Merge branch 'master' into replay-carousal
jerryzhou196 1ab7a54
removed changes for issueDetail Column view
jerryzhou196 8d8da21
undo replayController
jerryzhou196 c5ae428
Merge branch 'master' into replay-carousal
jerryzhou196 40b2262
remove export
jerryzhou196 a2646bb
fix(replayTable): Refactor query generation to include playlist start…
jerryzhou196 3c2e433
feat(replayDetails): move hover state to only be in copy button for r…
jerryzhou196 525f5d8
fix(replayTable): move sort fowarding back to index page
jerryzhou196 afab360
fix(replayTable): move sort fowarding back to index page
jerryzhou196 1682740
feat(replay): conditionally render if playlIstStart and playlistEnd a…
jerryzhou196 c0c6c01
fix(replay): refactor query handling in ReplaySessionColumn and Repla…
jerryzhou196 cc6b7d0
fix(replayDetails): conditionally render playlistView buttons
jerryzhou196 f5347d6
fix(replaySessionColumn): enhance query handling to include cursor fr…
jerryzhou196 89e9577
fix(groupReplays.spec): update expected query, replacing statsPeriod …
jerryzhou196 e4d9d75
Merge branch 'master' into replay-carousal
jerryzhou196 6561e90
chore(replay): Update icon for next breadcrumb button from IconNext t…
jerryzhou196 f29f1e4
Revert "removed changes for issueDetail Column view"
jerryzhou196 c77309d
fix(replaySessionColumn): refactor query construction to ensure sort …
jerryzhou196 24a0efa
feat(replayIndexTable): integrate eventView from location for enhance…
jerryzhou196 bdb0177
fix(replaySessionColumn): streamline cursor assignment in query const…
jerryzhou196 16ca1f2
feat(transactionReplays): add eventView prop from /insights/frontend/…
jerryzhou196 0d4f502
Merge remote-tracking branch 'origin/master' into replay-carousal
jerryzhou196 46342f9
Merge branch 'replay-carousal' into replay-carousal-issue-details
jerryzhou196 4bfb035
fix(transactionReplays): update expected query to include playlistSta…
jerryzhou196 14d3654
Merge branch 'replay-carousal' into replay-carousal-issue-details
jerryzhou196 6dcffb4
fix(tests): update expected query in GroupReplays and TransactionRepl…
jerryzhou196 c09d6e6
feat(replay): introduce useReplayPlaylist hook for managing replay pl…
jerryzhou196 21ed4b8
refactor(replayDetails): streamline breadcrumb component by moving re…
jerryzhou196 cb30e23
refactor(useReplayPlaylist): simplify query options by removing unnec…
jerryzhou196 3a20fb7
feat(replay): integrate ReplayPlaylistProvider into ReplayDetails for…
jerryzhou196 b6e532f
Merge branch 'replay-carousal' into replay-carousal-issue-details
jerryzhou196 47e4fe3
fix(replay): fix query property in transactions
jerryzhou196 cb5cbfd
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 a664264
Merge branch 'fix-fetch-replay-list-hook' into replay-carousal
jerryzhou196 dd12572
refactor(replay): update replay query handling and remove unused useR…
jerryzhou196 30011c5
refactor(replay): update field mapping in ReplaySessionColumn for imp…
jerryzhou196 353f170
fix(replay): Add enabled option to useReplayList and adjust fetching …
jerryzhou196 ee88392
fix(replay): streamline saved query creation in useReplaysFromTransac…
jerryzhou196 108f0d5
Merge branch 'fix-fetch-replay-list-hook' into replay-carousal
jerryzhou196 5bf9e79
Merge branch 'master' into replay-carousal
jerryzhou196 a770c0c
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 649918f
fix(replay): set default value for enabled option in useReplayList hook
jerryzhou196 aac8f09
refactor(transactionReplays): simplify empty state test by removing r…
jerryzhou196 5218eb6
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 fb7722f
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 c2be95b
Merge branch 'fix-fetch-replay-list-hook' into replay-carousal-issue-…
jerryzhou196 ab5c5d2
Merge branch 'fix-fetch-replay-list-hook' into replay-carousal
jerryzhou196 392ef16
Merge branch 'replay-carousal' into replay-carousal-issue-details
jerryzhou196 7c3a89a
refactor(replayTableColumns): simplify query string generation by ren…
jerryzhou196 72614f1
move replayPrev and replayNext icon to left of icons
jerryzhou196 1c71557
Merge branch 'replay-carousal' into replay-carousal-issue-details
jerryzhou196 5185e60
Merge branch 'replay-fix-api-doc-typo' into replay-carousal-issue-det…
jerryzhou196 25cbaaa
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 f9aabfa
fix(replays): Ensure replay list fetching is correctly enabled
jerryzhou196 1f8ba92
fix(replays): Simplify enabled flag condition for fetching replays
jerryzhou196 b714401
Merge branch 'master' into fix-fetch-replay-list-hook
jerryzhou196 dab5a78
Merge branch 'master' into replay-carousal
jerryzhou196 4c03a95
Merge branch 'master' into replay-carousal
jerryzhou196 9864b58
Merge branch 'master' into replay-carousal-issue-details
jerryzhou196 01ab6c3
fix(replays): Update query parameters in tests and enable replay list…
jerryzhou196 7deb031
fix(replays): Update replay list fetching condition
jerryzhou196 18a2e93
refactor(replays): Enhance replay query handling and type definitions
jerryzhou196 92e9e4a
Merge branch master into replay-carousal
jerryzhou196 4860a30
fixed tests
jerryzhou196 3c093c9
ref(replays): Update sorting logic to use shared constant for replay …
jerryzhou196 a567e2c
ref(replays): Refactor query handling in ReplayDetailsProviders
jerryzhou196 989b379
ref(location): Change DefaultQuery type to local scope in useLocation…
jerryzhou196 164a2b2
ref(replays): Simplify query object construction in ReplayDetailsProv…
jerryzhou196 0fc2f4a
ref(replays): Use useRef for initial location in ReplayDetailsPageBre…
jerryzhou196 6efdbb3
ref(replays): Refactor ReplayDetailsPageBreadcrumbs for improved styling
jerryzhou196 6f21136
ref(replays): Update queryReferrer in ReplayDetailsProviders for cons…
jerryzhou196 c203a34
Merge branch replay-carousal into replay-carousal-issue-details
jerryzhou196 82ce0cc
ref(replays): Integrate EventView into ReplayPreviewPlayer and refact…
jerryzhou196 47d5c55
ref(replays): Enhance query handling in ReplaySessionColumn and Repla…
jerryzhou196 0e36592
ref(replays): Simplify sorting logic in ReplayDetailsProviders
jerryzhou196 5c130e6
ref(replays): Rename StyledDiv to ShortId for clarity in ReplayDetail…
jerryzhou196 302d359
ref(replays): Adjust sorting logic in ReplayDetailsProviders for clarity
jerryzhou196 d42da0d
ref(replays): Improve sorting logic in ReplayDetailsProviders for bet…
jerryzhou196 d1aa45a
ref(replays): Enhance parseStatsPeriod function to support UTC option
jerryzhou196 e03e05d
ref(replays): Clarify comment in ReplaySessionColumn regarding query …
jerryzhou196 ee068b7
Merge branch replay-carousal into replay-carousal-issue-details
jerryzhou196 3bbb027
Merge branch 'master' into replay-carousal-issue-details
jerryzhou196 b539b77
undo api.md change
jerryzhou196 a845f04
fix(replay): Update query string generation and enable flag in Replay…
jerryzhou196 f502fff
fix(replay): Refactor query string generation to include playlist sta…
jerryzhou196 5c0ebff
fix(replay): Update enabled flag logic in ReplayDetailsProviders to d…
jerryzhou196 e01318f
fix(replay): move to usePlaylistQuery hook to reduce eventView constr…
jerryzhou196 621f197
fix(replay): Add type import for EventView in groupReplaysPlayer comp…
jerryzhou196 0dca186
fix(replay): Make eventView optional in ReplayPreviewPlayer component…
jerryzhou196 f6f7ab2
refactor(replays): replace ReplayListQueryReferrer type with a const …
jerryzhou196 44191f2
Merge branch 'master' into replay-carousal-issue-details
jerryzhou196 0577fe3
feat(replay): add referrer to query parameters in ReplayDetailsProviders
jerryzhou196 42fdaeb
fix(replay): update query parameters in replay tests for improved acc…
jerryzhou196 1a9cf9a
fix(replay): make eventView prop optional in GroupReplaysPlayer compo…
jerryzhou196 c199673
Merge branch 'query-referrer-enum' into replay-carousal-issue-details
jerryzhou196 62a3367
fix(replay): update queryReferrer handling in ReplayDetailsProviders …
jerryzhou196 0b08236
refactor(replay): replace const array with union type for ReplayListQ…
jerryzhou196 fb6c831
refactor(replay): update Replay components to use query prop instead …
jerryzhou196 802e954
refactor(replay): extract unused field from eventView query to improv…
jerryzhou196 ae6a296
refactor(replay): simplify query parameters in tests and components f…
jerryzhou196 8bc2f62
fix(replay): handle undefined query.referrer in ReplayDetailsProvider…
jerryzhou196 fd0abf5
refactor(replay): streamline query parameters in usePlaylistQuery and…
jerryzhou196 3ee47f2
removed feedback type
jerryzhou196 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import type {Query} from 'history'; | ||
|
|
||
| import {parseStatsPeriod} from 'sentry/components/timeRangeSelector/utils'; | ||
| import EventView from 'sentry/utils/discover/eventView'; | ||
| import {useLocation} from 'sentry/utils/useLocation'; | ||
|
|
||
| export function usePlaylistQuery(eventView?: EventView): Query { | ||
| const location = useLocation(); | ||
| if (!eventView) { | ||
| eventView = EventView.fromLocation(location); | ||
| } | ||
| const {statsPeriod, start, end, ...eventViewQuery} = | ||
| eventView.generateQueryStringObject(); | ||
|
|
||
| if (typeof statsPeriod === 'string') { | ||
| const {start: playlistStart, end: playlistEnd} = parseStatsPeriod( | ||
| statsPeriod, | ||
| undefined, | ||
| true | ||
| ); | ||
| eventViewQuery.playlistStart = playlistStart; | ||
| eventViewQuery.playlistEnd = playlistEnd; | ||
| } else if (start && end) { | ||
| eventViewQuery.playlistStart = start; | ||
| eventViewQuery.playlistEnd = end; | ||
| } | ||
|
|
||
| // Because the sort and cursor field is only generated in EventView conditionally and we | ||
| // want to avoid dirtying the URL with fields, we manually add them to the query here. | ||
| if (location.query.sort) { | ||
| eventViewQuery.playlistSort = location.query.sort; | ||
| } | ||
| if (location.query.cursor) { | ||
| eventViewQuery.cursor = location.query.cursor; | ||
| } | ||
| return eventViewQuery; | ||
| } |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.