Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

933 B
Raw Blame
/**
 * AI-owned. Generated and maintained by the `signoz-page-story` skill.
 * Do not hand-edit: regenerate instead.
 */

import ROUTES from 'constants/routes';
import { rest } from 'msw';

import { defineStoryMocks } from '@/storybook/controls/defineStoryMocks';

import { blockedTrial } from './__story_mockdata__/workspaceStates';

/**
 * The trial's own dates are what the page counts down from, so they are pinned
 * rather than read off the clock and the copy stays the same on every run.
 */
const BLOCKED_AT = 1_766_000_000;

export const workspaceLockedMocks = defineStoryMocks({
	controls: {},
	handlers: () => [
		rest.post('http://localhost/api/v1/subscriptions', (_req, res, ctx) =>
			res(
				ctx.json({
					status: 'success',
					data: { redirectURL: 'https://billing.signoz.io/checkout' },
				}),
			),
		),
	],
	config: () => ({
		route: ROUTES.WORKSPACE_LOCKED,
		appContext: blockedTrial(BLOCKED_AT),
	}),
});