forked from grafana/pyroscope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create tag-explorer page for analyzing tag breakdowns (grafana#…
…1293) * add explore route * add explore page to sidebar * add explore page basic structure
- Loading branch information
1 parent
597b20a
commit 5456a86
Showing
20 changed files
with
882 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { z } from 'zod'; | ||
|
||
const GroupSchema = z.object({ | ||
watermark: z.object({}).optional(), | ||
// timeline data | ||
startTime: z.number(), | ||
samples: z.array(z.number()), | ||
durationDelta: z.number(), | ||
}); | ||
|
||
export const GroupsSchema = z.record(z.string(), GroupSchema); | ||
|
||
export type Groups = z.infer<typeof GroupsSchema>; | ||
export type Group = z.infer<typeof GroupSchema>; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export * from './profile'; | ||
export * from './flamebearer'; | ||
export * from './trace'; | ||
export * from './groups'; | ||
export * from './decode'; | ||
export * from './spyName'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.tagExplorerView { | ||
.header { | ||
display: flex; | ||
align-items: center; | ||
margin: 0 10px 10px; | ||
|
||
.notSelectedTagDropdown { | ||
border-color: var(--ps-selected-app); | ||
color: var(--ps-selected-app); | ||
} | ||
} | ||
|
||
.tableDescription { | ||
margin: 0 10px 10px; | ||
} | ||
|
||
.title { | ||
display: inline-block; | ||
font-weight: 500; | ||
font-size: 18px; | ||
margin-right: 5px; | ||
} | ||
|
||
.query { | ||
display: flex; | ||
align-items: center; | ||
|
||
.selectName { | ||
font-weight: 500; | ||
color: var(--ps-right-click-info); | ||
margin-right: 5px; | ||
} | ||
} | ||
|
||
.tagExplorerTable { | ||
width: 100%; | ||
|
||
thead, | ||
tbody tr:nth-child(2n) { | ||
background-color: var(--ps-neutral-9); | ||
} | ||
|
||
tbody { | ||
cursor: pointer; | ||
|
||
td { | ||
font-weight: initial; | ||
text-align: center; | ||
} | ||
|
||
tr.activeTagRow { | ||
background-color: var(--ps-green-highlight); | ||
color: var(--ps-tooltip-text); | ||
} | ||
|
||
.tagName { | ||
display: flex; | ||
align-items: center; | ||
|
||
.tagColor { | ||
display: inline-block; | ||
height: 10px; | ||
width: 10px; | ||
border-radius: 2px; | ||
margin-right: 10px; | ||
} | ||
} | ||
} | ||
|
||
td, | ||
th { | ||
border: 1px solid var(--ps-ui-border); | ||
padding: 4px 10px; | ||
width: 10%; | ||
} | ||
} | ||
} |
Oops, something went wrong.