mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
* chore: add a new tab for traces funnels
* feat: funnels list page basic UI
* feat: learn more component
* feat: get funnels list data from mock API, and handle data, loading and empty states
* chore(SignozModal): add width prop and improve button styles
* feat: implement funnel rename
* refactor: overall improvements
* feat: implement sorting in traces funnels list page
* feat: add sort column key and order to url params
* chore: move useFunnels to hooks/TracesFunnels
* feat: implement traces funnels search and refactor search and sort by extracting to custom hooks
* chore: overall improvements to rename trace funnel modal
* chore: make the rename input auto-focusable
* feat: handle create funnel modal
* feat: delete funnel modal and functionality
* fix: fix the layout shift in funnel item caused by getContainer={false}
* chore: overall improvements and use live api in traces funnels
* feat: create traces funnels details basic page + funnel -> details redirection
* fix: funnels traces light mode UI
* fix: properly display created at in funnels list item + preventDefault
* refactor: extract FunnelItemPopover into a separate component
* chore: hide funnel tab from traces explorer
* chore: add check to display trace funnels tab only in dev environment
* chore: improve funnels modals light mode
* chore: overall improvements
* fix: properly pass funnel details link
* chore: address PR review changes
28 lines
788 B
TypeScript
28 lines
788 B
TypeScript
import './TracesModulePage.styles.scss';
|
|
|
|
import RouteTab from 'components/RouteTab';
|
|
import { TabRoutes } from 'components/RouteTab/types';
|
|
import history from 'lib/history';
|
|
import { useLocation } from 'react-router-dom';
|
|
|
|
import { tracesExplorer, tracesFunnel, tracesSaveView } from './constants';
|
|
|
|
function TracesModulePage(): JSX.Element {
|
|
const { pathname } = useLocation();
|
|
|
|
const routes: TabRoutes[] = [
|
|
tracesExplorer,
|
|
// TODO(shaheer): remove this check after everything is ready
|
|
process.env.NODE_ENV === 'development' ? tracesFunnel : null,
|
|
tracesSaveView,
|
|
].filter(Boolean) as TabRoutes[];
|
|
|
|
return (
|
|
<div className="traces-module-container">
|
|
<RouteTab routes={routes} activeKey={pathname} history={history} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default TracesModulePage;
|