mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 10:26:40 +00:00
* feat: update the SideNav component * feat: add the Trace Explorer page with Query Builder * chore: build is fixed * chore: tsc build is fixed * chore: menu items is updated --------- Co-authored-by: Nazarenko19 <danil.nazarenko2000@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
33 lines
790 B
TypeScript
33 lines
790 B
TypeScript
import { Button } from 'antd';
|
|
import { PANEL_TYPES } from 'constants/queryBuilder';
|
|
import { QueryBuilder } from 'container/QueryBuilder';
|
|
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
|
|
import { DataSource } from 'types/common/queryBuilder';
|
|
|
|
import { ButtonWrapper, Container } from './styles';
|
|
|
|
function QuerySection(): JSX.Element {
|
|
const { handleRunQuery } = useQueryBuilder();
|
|
|
|
return (
|
|
<Container>
|
|
<QueryBuilder
|
|
panelType={PANEL_TYPES.TIME_SERIES}
|
|
config={{
|
|
queryVariant: 'static',
|
|
initialDataSource: DataSource.TRACES,
|
|
}}
|
|
actions={
|
|
<ButtonWrapper>
|
|
<Button onClick={handleRunQuery} type="primary">
|
|
Run Query
|
|
</Button>
|
|
</ButtonWrapper>
|
|
}
|
|
/>
|
|
</Container>
|
|
);
|
|
}
|
|
|
|
export default QuerySection;
|