-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from buildbarn/logs
Targets Exploration View, Problems Tab Updates
- Loading branch information
Showing
43 changed files
with
3,200 additions
and
246 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Empty file.
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,34 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import Content from '@/components/Content'; | ||
import PortalCard from '@/components/PortalCard'; | ||
import { Space } from 'antd'; | ||
import { DeploymentUnitOutlined } from '@ant-design/icons'; | ||
import TargetDetails from '@/components/Targets/TargetDetails'; | ||
|
||
interface PageParams { | ||
params: { | ||
slug: string | ||
} | ||
} | ||
|
||
const Page: React.FC<PageParams> = ({ params }) => { | ||
const label = decodeURIComponent(atob(decodeURIComponent(params.slug))) | ||
return ( | ||
<Content | ||
content={ | ||
<Space direction="vertical" size="middle" style={{ display: 'flex' }}> | ||
<PortalCard | ||
icon={<DeploymentUnitOutlined />} | ||
titleBits={[<span key="title">Target Details</span>]} | ||
> | ||
<TargetDetails label={label} /> | ||
</PortalCard> | ||
</Space > | ||
} | ||
/> | ||
); | ||
} | ||
|
||
export default Page; |
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,61 @@ | ||
import { gql } from "@/graphql/__generated__"; | ||
|
||
export const GET_TARGETS_DATA = gql(/* GraphQl */` | ||
query GetTargetsWithOffset( | ||
$label: String, | ||
$offset: Int, | ||
$limit: Int, | ||
$sortBy: String, | ||
$direction: String) { | ||
getTargetsWithOffset( | ||
label: $label | ||
offset: $offset | ||
limit: $limit | ||
sortBy: $sortBy | ||
direction: $direction | ||
) { | ||
total | ||
result { | ||
label | ||
sum | ||
min | ||
max | ||
avg | ||
count | ||
passRate | ||
} | ||
} | ||
} | ||
`); | ||
|
||
export const FIND_TARGETS = gql(/* GraphQL */ ` | ||
query FindTargets( | ||
$first: Int! | ||
$where: TargetPairWhereInput | ||
$orderBy: TargetPairOrder | ||
$after: Cursor | ||
){ | ||
findTargets (first: $first, where: $where, orderBy: $orderBy, after: $after){ | ||
totalCount | ||
pageInfo{ | ||
startCursor | ||
endCursor | ||
hasNextPage | ||
hasPreviousPage | ||
} | ||
edges { | ||
node { | ||
id | ||
durationInMs | ||
label | ||
success | ||
bazelInvocation { | ||
invocationID | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`); | ||
|
||
export default GET_TARGETS_DATA; |
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,26 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import Content from '@/components/Content'; | ||
import PortalCard from '@/components/PortalCard'; | ||
import { Space } from 'antd'; | ||
import { DeploymentUnitOutlined } from '@ant-design/icons'; | ||
import TargetGrid from '@/components/Targets/TargetGrid'; | ||
|
||
const Page: React.FC = () => { | ||
return ( | ||
<Content | ||
content={ | ||
<Space direction="vertical" size="middle" style={{ display: 'flex' }}> | ||
<PortalCard | ||
icon={<DeploymentUnitOutlined />} | ||
titleBits={[<span key="title">Targets Overview</span>]}> | ||
<TargetGrid /> | ||
</PortalCard> | ||
</Space > | ||
} | ||
/> | ||
); | ||
} | ||
|
||
export default Page; |
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
Oops, something went wrong.