-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
102029: ui: refactor txns pages to use generic RequestState r=maryliag a=xinhaoz ### Commit 1 ui: refactor txns page to use generic RequestState This commit refactors the txn fingerprints page component and its redux store wrappers to use the new RequestState. This allows us to nicely pass the entire request state to the component instead of destructuring the response into individual props. Related selectors are deleted. Epic: none Release note: None ### Commit 2 ui: refactor txn details page to use RequestState typed prop This commit Replaces the request state props (isDataValid, statements, transaction, error, isLoading) in the txn details page with a single prop containing the request state. The logic that was previously in the selectTransaction (and being duplicated in db-console and CC) has been moved to a new file, `transactionDetailsUtils` with added unit testing. Epic: none Release note: None Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com>
- Loading branch information
Showing
17 changed files
with
537 additions
and
387 deletions.
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
17 changes: 0 additions & 17 deletions
17
pkg/ui/workspaces/cluster-ui/src/store/transactionStats/txnStats.selector.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.