v5 groups by the raw keys, so spans of one queue that carry different
keys came back as separate rows. The table now merges rows that show the
same values. A merged row keeps the highest p95, since p95 cannot be
combined.
Every Kafka table is the same traces scalar query, so one builder takes
a small spec per table. Byte Rate and Network Latency join a metric
query on its real label names. The old handlers looked up service_name,
client_id and service_instance_id, so these two columns were always 0
and n/a.
The old routes returned the check list with its messages. v5 returns
counts only, so the frontend now owns the checks and the messages. The
messages match the old handler. countIf(messaging.system = 'kafka')
fails on v5, so that check runs as its own query.
The old route derived the messaging system and the destination in SQL.
v5 cannot derive columns. So the query groups by the raw keys, and the
frontend derives both values.
#### Description
- Adds the Audit Logs explorer at `/audit-logs`, behind a More menu item
for cloud and enterprise self-hosted users.
- The list reads `source: audit` through `query_range`: columns, default
and raw formats, order by, max lines and font size.
- Query bar, quick filters, saved views, export, a details drawer with
prev/next, and copy link to a log.
- `convertRawData` lifts `resource.attributes` onto `resource`, so audit
rows carry a flat `resource`. Logs and traces rows are unchanged.
- Reuses the Logs row views and `useActiveLog`, generic over any log
with an `id`.
- Adds the `audit-logs` resource to the roles permission panel and the
side nav gate.
- Adds unit tests, a page story and e2e specs. Audit events are seeded
through a new e2e seeder endpoint.
#### Issues closed by this PR
Closes SigNoz/keystone-pod#9
#### Additional Information
- Carries the backend commits of #13792 until it merges.
- Access is decided by the `audit-logs` permission: the nav entry is
gated on it and the server rejects the query without it. The page shows
the error in place, as Logs Explorer does.
---------
Co-authored-by: swapnil-signoz <swapnil@signoz.io>
#### Description
Fixes from the open review threads on #13513, #13516, #13728 and #13756.
- Channel pickers keep virtual scroll: `popupMatchSelectWidth={false}`
turned it off. The empty state already wraps at the select's width.
- `LinkAccess` is an `allowed` / `pending` / `denied` union;
`AuthZSelectOption` extends it.
- `useLinkPickerAccess` merges the check results once, not per option.
- `usePlannedDowntimeFormPermissions` returns the rule options, lock
reason and `rule:list` denial.
- `useChannelPickerAccess` maps names to ids with `getChannelIds`.
- The rule views rail shows loading while its query is held, so
`useAlertRuleViews` no longer waits on `enabled`.
- Nits: `updatePermission`, `selectedChannelNames`, `useCallback` for
the create link, one Save click in the routing policy test, no cast in
the threshold test.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/799
#### Additional Information
- No change for `EDIT_ALERTS`: `/alerts/edit` is in
`oldNewRoutesMapping` and redirects to `/alerts/overview` before the
role check, and `ALERT_OVERVIEW` is already in
`routeWithInitialAuthZSupport`.
- Existing stories already render both pickers and the views rail; no
story change.
#### Description
- Removes dead code and styles owned by @SigNoz/events-frontend: logs,
traces, API monitoring, messaging queues and pipelines. Part of #13738,
split by code owner into #13797–#13802 so each needs one reviewer; this
one merges on its own. No change in behavior or visuals is intended.
- 67 files, +2 / −2,313; 10 files deleted.
- Components only their own test used: the pipeline `Tags` cell and
`SpanLineActionButtons`.
- The v3 autocomplete mocks in the logs, live logs, traces and API
monitoring stories; nothing calls those endpoints.
- The `[data-radix-popper-content-wrapper]` check in `LogDetailBody`; no
Radix popover can render any more.
- Jest mocks of modules those tests never load, exported code nothing
imports, and CSS rules for classes nothing renders.
- Each commit is one kind of change. The last ones keep `export` on code
that stays and apply review fixes.
#### Additional Information
**Verification**
| Check | Result |
|---|---|
| `tsgo`, `oxlint`, `stylelint` | Run on every commit by the pre-commit
hooks; 0 errors on the head |
| `vite build` | Passes |
| jest, every test that imports a changed file | 839 test files, 7,257
tests, 0 failed |
| **All six PRs merged on `main`:** | |
| full jest, 10 shards | 1,171 test files, 10,950 tests, 0 failed, 15
skipped |
| Storybook interaction runner | 137 story files, 1,428 tests pass |
| Playwright e2e, Chromium, CI settings, one backend built from `main` |
768 passed, 1 failed (it fails on `main` too), 6 passed on retry. The 8
spec files behind every failure in either run, rerun back to back on an
idle machine: 44 of 44 pass on this build, and on `main` (3 there on
retry) |
| CSS a direct visit loads, per lazily loaded page (384) | Same global
rules as `main` wherever one can apply |
**Kept on purpose**
- `KEY_ATTRIBUTE_KEYS`, for the key attributes section
`SpanDetailsPanel` has parked.
- `MQDetailPage/index.tsx` and `traceAttributeValuesResponse`, until
#13797 removes their last users. A follow-up removes them.
#### Description
- A panel whose builder queries are all disabled draws only formulas, so
it offers no drilldown.
- Drilldown offers "Create variable" only when the viewer can edit the
dashboard.
- A custom variable keeps link-seeded values its list doesn't offer, as
typed values, and an auto-fill computed before the seed landed no longer
overwrites it a frame later.
#### Additional Information
Split out of #13568, which now stacks on this.
#### Description
- The query search loads key suggestions 300 ms after it mounts, with no
`catch`, so a failed keys request became an unhandled rejection. The
value suggestions already catch theirs.
- A failed key lookup now goes to Sentry and leaves the current
suggestions in place.
- This made `Pages/AI Observability/Explorer › QuickFiltersSettings`
flaky in Storybook CI. The `Failed` story answers every request with a
500. On a fast runner the rejection lands while `Failed` is still
showing, and it has no play to fail. On a slow one it lands during the
next story's play. Same failure on #13824, a backend-only PR: [storybook
(1)](https://github.com/SigNoz/signoz/actions/runs/46659077018/job/142683375286?pr=13824).
#### Issues closed by this PR
ClosesSigNoz/nerve-pod#709
#### Screenshots / Screen Recordings
#### Additional Information
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
- Implements the four list routes: `/spans`, `/spans/{spanID}/children`,
`/descendants` and `/ancestors`.
- They share one path: the route decides which spans are listed, `view`
keeps the ones of its kind in its own order, then `offset` and `limit`
cut the page. It is the picker highlights use, so a highlights list
equals the first page of the same view.
- Two queries, the trace bounds and the tree. `selectFields` adds a read
by ID of the page's spans, at most 1,000; a name without a context is
looked up in both attributes and resource attributes, and a field no
returned span has is reported in `warnings`.
- `ai_usage` ranks by cost, or by tokens when none of the listed spans
has a cost.
- `query` returns "not implemented" until the next PR.
#### Additional Information
- Measured locally: 20 ms on a small trace, 45 ms on 30,000 spans, 0.43
s on 1 million spans.
- Measured locally: 20 ms on a small trace, 45 ms on 30,000 spans, 0.43
s on 1 million spans.
Refs SigNoz/nerve-pod#651
#### Description
- Implements `GET /api/v1/traces/{traceID}/spans/{spanID}`. The four
list routes still return "not implemented".
- The response is the span itself: the stored fields, every attribute,
every resource attribute and every event. Values are returned whole.
- It makes two queries: the trace bounds, and the span's full row
through the existing `GetTraceSpansByIDs`. It does not load the trace's
tree, so its cost does not grow with the size of the trace.
- It returns no `treeStats` and no other span. A caller gets the tree
stats with the span in any span list, and the spans around it from the
children, descendants and ancestors routes.
- A span ID that is not in the trace returns 404 with code
`trace_span_not_found`. A span whose parent was never received keeps the
parent ID it was sent with.
#### Additional Information
- There is no unit test for this route.
`tests/integration/tests/tracedetail/06_span.py` covers it: every field
of a span in both attribute layouts, a long value returned whole, a span
with no attributes or events, a root, a span with a missing parent, and
both 404s.
Refs SigNoz/nerve-pod#651
- Implements `GET /api/v1/traces/{traceID}/highlights`.
- One query reads a small row for every span into an in-memory tree
(`TraceSkeleton`). The lists, the per-service totals and `treeStats` all
come from it; there is no second read.
- A new tree and not the waterfall's: on 1 million spans it holds about
125 MB against 1,073 MB.
- A span's references are read only when they hold more than the one to
its parent; the rest are rebuilt from the two ids.
- gen_ai usage is read from the JSON attributes column only.
- `links` is about 97 bytes on every span and almost always holds only
the reference to the parent. The query compares it with that expected
text and sends it only when it differs (a span link, or a root); the
rest are rebuilt from the trace id and the parent id.
#### Additional Information
- Measured locally: 25 ms on a small trace, 45 ms on 30,000 spans, 0.5 s
on 1 million spans. The tree is not cached.
Refs SigNoz/nerve-pod#651
#### Description
- Removes dead code owned by @H4ad: storybook, roles, authz and service
accounts. Part of #13738, split by code owner into #13797–#13802 so each
needs one reviewer; this one merges on its own. No change in behavior or
visuals is intended.
- 24 files, +14 / −500.
- The `MessageTip` state in the feedback foundation, and the v3
autocomplete storybook handlers; nothing calls those endpoints.
- Radix leftovers in the storybook README and comments.
- Exported code nothing imports, and CSS rules for classes nothing
renders.
#### Additional Information
**Verification**
| Check | Result |
|---|---|
| `tsgo`, `oxlint`, `stylelint` | Run on every commit by the pre-commit
hooks; 0 errors on the head |
| `vite build` | Passes |
| jest, every test that imports a changed file | 848 test files, 7,337
tests, 0 failed |
| **All six PRs merged on `main`:** | |
| full jest, 10 shards | 1,171 test files, 10,950 tests, 0 failed, 15
skipped |
| Storybook interaction runner | 137 story files, 1,428 tests pass |
| Playwright e2e, Chromium, CI settings, one backend built from `main` |
768 passed, 1 failed (it fails on `main` too), 6 passed on retry. The 8
spec files behind every failure in either run, rerun back to back on an
idle machine: 44 of 44 pass on this build, and on `main` (3 there on
retry) |
| CSS a direct visit loads, per lazily loaded page (384) | Same global
rules as `main` wherever one can apply |
**Found while auditing, not changed here**
- `PermissionDeniedCallout` reads `styles.permissionCode`, which its
module never defined.
#### Description
- Opening the Events tab in span details made the panel jump. The search
box used `autoFocus`, and the browser scrolled the panel to it. The box
now takes focus without a scroll.
- In log details and the span drawer, the "…" menu and "View full trace"
touched the ↑/↓ buttons. A shared `HeaderActions` wrapper adds a 4px
gap.
- The span percentile time range list was see-through over the
percentile table. The panel's `backdrop-filter` and shadow caused it, so
this PR removes them.
- In Edit quick filters, a long filter name scrolled the list sideways
and pushed Remove out of view. The name now ends in "…" and shows the
full name on hover.
- A long span event value opened its preview and a tooltip together. The
preview is now a `@signozhq/ui` popover, so one card opens. Expand
closes the card and opens the full value.
#### Issues closed by this PR
Part of https://github.com/SigNoz/events-pod/issues/306
#### Screenshots / Screen Recordings
**Event jump**
Before
https://github.com/user-attachments/assets/a618e7ad-5199-4146-b247-65f1d3d0430e
After
https://github.com/user-attachments/assets/9730adfc-1e3d-498c-b21c-d1c5de819a18
**Quick filter overflow**
Before
https://github.com/user-attachments/assets/238eafa9-0dd3-4cf2-b636-553f162f6b1f
After
https://github.com/user-attachments/assets/ef83e7e9-6091-4d64-879b-f2c05a7cfc90
Before and after screenshots, `main` on the left and this branch on the
right, in dark and light themes:
https://claude.ai/artifact/WXKCu7MuQsTVR24aYSZdUP
| Screen | On `main` | On this branch |
| --- | --- | --- |
| Span percentile time range list | The list is see-through. The
percentile table shows through the options. | The list is solid. |
| Edit quick filters, long filter name | The name runs past the row with
no "…". | The name ends in "…". The grip keeps its size, and Remove
stays in view. |
| Log details header | The "…" menu touches ↑/↓. | A 4px gap separates
them. |
| Span drawer header | "View full trace" touches ↑/↓. | A 4px gap
separates them. |
| Span event value, hover | The antd preview card opens. | The
`@signozhq/ui` preview card opens. |
| Span event value, Expand | The preview card stays on top of the
full-value dialog until the mouse moves. | The preview card closes. |
#### Additional Information
- New stories cover the time range list, long filter names and Expand.
With the fixes reverted, the long name and the span event plays fail.
- The existing log details and span drawer stories already show the
header gap.
- The Events jump does not show in a screenshot, because the screenshot
tool grows every scroller. A unit test covers it.
- Filter names in Edit quick filters are a little smaller now. They use
the same text size as the checkbox list next to them.
#### Description
- Marks the six `/api/v1/channels*` routes (list, get, create, update,
delete, test) `Deprecated: true` and names the
`/api/v2/notification_channels` replacement in each description.
- These routes are already documented as deprecated ([migration
guide](https://signoz.io/docs/alerts-management/migrate-notification-channel-api-v1-to-v2/)),
and the UI calls only the v2 routes. The spec still said `deprecated:
false`, so the API reference didn't flag them, and people (and Noz) kept
using v1.
- Regenerated `docs/api/openapi.yml` and the frontend client. The client
changes are doc comments and `@deprecated` tags only, and no app code
calls the v1 hooks.
- No behavior change: the routes keep working.
#### Issues closed by this PR
Refs SigNoz/echo-pod#995. The matching docs change is
SigNoz/signoz.io#4601.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#### Description
After an upgrade, the browser now keeps most of the frontend it already
downloaded. Today almost any code change renames nearly every chunk, so
users fetch the whole app again after each release.
##### Why every chunk changed
Third-party code shared one big chunk with the app code it loads with,
so any app change re-hashed it. And a chunk's file name depends on the
names of the chunks it imports, so one change ripples through every
importer.
##### What changes
Packages over 100 KB in the first load now get their own chunk, and
Vite's chunk import map lets chunks import each other through stable
keys while `index.html` maps each key to the current hashed file. A
small boot guard, inlined into the production build from
`vite-plugins/boot-guard/`, shows "SigNoz failed to load" with a Reload
button if any file of the entry fails to download. The Sentry plugin no
longer bakes the release name into every chunk, since `Sentry.init`
already sets it.
##### Results
I simulated a release by changing one line in `src/index.tsx` and
building again. On main, 4% of the first-load bytes keep their file
name; with this PR, 84%. Across all assets it goes from 42% to 98%. The
first load is the same size (852 KB vs 854 KB gzip) in 19 files instead
of 3. The browser only skips the download once #13724 serves these files
as immutable.
##### Browser support
Import maps need Chrome 89, Firefox 108 and Safari 16.4. Vite 8 already
builds for Chrome 111, Firefox 114 and Safari 16.4 by default, so this
does not raise the minimum browser.
In PostHog, no user is on a browser without import maps. Under 0.01% are
on Chrome 109, below what Vite 8 already requires, or on Safari 16,
which may be older than 16.4: the export only has the major version.
On a browser without import map support, the boot guard shows a message
asking to update the browser instead of a blank page.
Part of #10192
#### Screenshots / Screen Recordings
JS requests on `/home`, main:

JS requests on `/home`, this PR, one entry chunk plus one chunk per
large package:

What a browser without import map support shows instead of a blank page:

#### Additional Information
#12079 is similar: it also splits vendors per package, without the
import map, so a changed chunk still renames every chunk that imports
it.
`build.chunkImportMap` is still experimental in Vite. Rolldown's own
option of the same name drops the CSS of lazy routes, which is why this
uses Vite's.
`index.html` grows from 2 KB to 25 KB gzip, since it carries the map.
#### Description
- After #13757, the query range hooks and `getQueryRangeV5` still take a
`version` argument. Every caller passes v5, so the argument has no
effect.
- This PR removes the argument from the API function, the hooks and the
WidgetCard components, and from every caller.
- It removes WidgetCard's error-text checks. They matched error strings
that only the removed legacy path produced, so they never ran on v5.
- It removes the `isNewQueryV2` prop and the old option list from the
order by filter. Every caller already got the v5 options.
#### Issues closed by this PR
Part of https://github.com/SigNoz/events-pod/issues/161
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156.
- This PR builds on #13757.
- No screen renders differently, so no story changes.
- It types the `DomainMetrics` test's query range mock, so the test no
longer casts with `as jest.Mock`.
- The Celery task graphs had a hint for missing Flower metrics. It has
not shown since #13644 moved Celery to v5, because it depended on one of
the removed error-text checks.
- I did not test a dashboard panel whose query fails, because staging
has no broken panel. The panel still gets its error message from
`errorDetails`, as before.
#### Description
- Sentry now ignores Safari's `'text/html' is not a valid JavaScript
MIME type` error, like the other stale-chunk errors.
- A tab that outlived a deploy asks for an old hashed chunk (here
`AIAssistantModal`), the server answers with `index.html`, and Safari
rejects it with this message. `lazyRetry` already recovers by reloading
once, so the event is noise.
- Chromium and Firefox already report this case with wordings the list
ignores. So does Safari's network-failure wording.
- PagerDuty: https://signoz-1.pagerduty.com/incidents/Q095A4QSMLC0T8
- Sentry: https://signoz-io.sentry.io/issues/7878025086/ (v0.152.0,
Mobile Safari on iOS, dashboard page)
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/804
#### Description
Fixes two alerts e2e flakes introduced by the rule FGA merges.
- `alerts/views` TC-03 (failing most merge-queue runs): since #13756 a
view link applies its filter after the permission check, later than the
first rows. The spec now waits for the view's query before editing it.
- `alerts/planned-downtime` TC-01: since #13516 picker options are
disabled while their `attach` check runs, and Playwright clicks the
role-less option div anyway. `pickRule` and `antd.pickByName` now click
only enabled options.
Evidence for both is in `docs/flake-notes.md`.
#### Description
- Every message sits 32px from the next, above and below a sent message,
per the design; it was 48px in the panel and 44px on the full page. Each
message ends in its 28px hover row, so messages keep 4px under that row
and no top padding.
- Error replies have no hover row, so one without a Retry button pads
the 32px itself; the Retry button sits 4px under its reply so that case
also comes to 32px.
- The space under the last message drops from 64px to 4px, so the thread
ends close to the disclaimer and input. The thread's top padding grows
from 16px to 24px so the first message stays put.
- Context chips under a sent message line up with its hover actions.
#### Issues closed by this PR
ClosesSigNoz/nerve-pod#708
#### Screenshots / Screen Recordings
#### Additional Information
- No Storybook story shows an error reply, so that state is not in the
visual diff.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- A heatmap or distribution request with a disabled logs/traces query
naming a bare field (e.g. `attribute.quantity`) failed with a generic
500: the disabled query ran as a time series and sent the raw field to
ClickHouse.
- A disabled query that no enabled formula reads is no longer run in
heatmap and distribution requests, since a heatmap draws only its
enabled query.
- Logs and traces heatmaps don't support formulas: a formula reading a
logs or traces query is a 400. Their heatmaps count events per bucket,
which gives a formula no value per step to compute with. Metrics
formulas are unchanged.
#### Issues closed by this PR
ClosesSigNoz/events-pod#331
#### Additional Information
- Behaviour change: SigNoz/signoz#13318 let a disabled logs/traces query
with an aggregate like `avg(duration_nano)` feed a heatmap formula. That
is now rejected.
- Not fixed here: a bare field as the aggregation of a time-series
request still fails with a generic 500;
`querierlogs/12_aggregation_timeseries.py::test_time_series_bare_field_aggregation`
pins that.
- Tested: Go unit tests (`TestValidateBucketCountingFormulaInputs`,
`TestFormulaInputNames`, `TestEnabledFormulaInputNames`). Integration
tests in `querierlogs/17_heatmap.py` and `queriertraces/16_heatmap.py`
cover an unread disabled query (bare field and aggregate), the formula
400 (heatmap and distribution), and logs and metrics queries in one
request; all pass locally, along with `12_aggregation_timeseries.py`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
#### Description
- Building collector config from stored log pipelines now rejects an
enabled copy or move operator whose `to` is empty or not a valid field
path, using the same check as `from`.
- Saving a pipeline already rejects an empty `to` in
`PostablePipeline.IsValid`; this also covers stored pipelines and
invalid paths.
#### Issues closed by this PR
ClosesSigNoz/events-pod#334
#### Additional Information
- Related: SigNoz/events-pod#330 (collector-side check).
- Tested with `TestGetOperatorsRejectsEmptyTo`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
#### Description
- Adds the contract for six routes under `/api/v1/traces/{traceID}`. The
handlers return "not implemented" until the next PRs in the stack.
- `/highlights`: per-service totals, and the first page of each view of
the span list.
- `/spans`: a page of the spans of the trace, in tree order from the
top.
- `/spans/{spanID}`: one span with every attribute and event.
- `/spans/{spanID}/children`: its direct children, one level below.
- `/spans/{spanID}/descendants`: every span below it, in tree order.
- `/spans/{spanID}/ancestors`: the path from its parent up to the root,
the parent first.
- `/summary` stays the cheap and gains `ai.modelCallCount` and
`ai.toolCallCount`
- The four list routes share one set of parameters: `view`, `query`,
`selectFields`, `offset` and `limit`. The route decides which spans it
covers, and `view` is a quick filter on them: `error_origins`,
`unmarked_failures`, `time_spent`, `ai_usage` or `links`. Without it
every span the route covers is returned.
- `/highlights` takes `views` to name the lists to return. Without it
all five are returned.
- The keys of a span are the stored field names (`span_id`,
`kind_string`, `has_error`, `timestamp`), so a key read from a response
is a valid key in `query`. Computed keys such as `treeStats` stay
camelCase.
- Every list returns the same `SpanItem`: the span, its `treeStats`, and
why it counts as failed when it is not marked as an error.
`/spans/{spanID}` returns the span alone, so it does not need to load
the trace.
- `Span` is its own struct and not `ThreadSpan`. It has the same stored
fields, but its start time is `timestamp` in nanoseconds where the
thread span has `time_unix` in milliseconds, it adds
`response_status_code`, and it has no formatted input and output. It
reuses `Event` and `OtelSpanRef`.
- The API returns whole values; the MCP server cuts them to its
character budget.
- `/summary` gains `ai.modelCallCount` and `ai.toolCallCount`, which
`/highlights` shows through the embedded summary.
#### Additional Information
- Three frontend test fixtures gain the two new counts because the
generated type requires them; the UI does not read them.
- `timestamp` is in nanoseconds, the unit a trace filter compares it in.
A browser client cannot hold a nanosecond value exactly; events in the
same responses already carry `timeUnixNano` the same way.
- The entries of `events` and `references` keep their existing keys
(`timeUnixNano`, `spanId`, `refType`). Those types are shared with the
waterfall and thread routes, and they are not filter keys.
Refs SigNoz/nerve-pod#651
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
- Adds the `use_notification_template` feature flag, off by default, so
the custom alert notification template UI can be built behind it.
- The features API lists it in both editions, so the frontend reads it
from `featureFlags` as `FeatureKeys.USE_NOTIFICATION_TEMPLATE`.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/801
#### Description
SigNoz editors only use JSON, SQL and YAML, but importing
`monaco-editor` pulls in every language Monaco ships along with the CSS,
HTML and TypeScript workers. Monaco now registers just those three
languages, and the build drops the editor features we never give a
provider to, such as code lens, inlay hints and rename.
First load is unchanged, since #13686 already loads Monaco on the first
editor mount.
| | Before | After |
|---|---|---|
| Monaco on the first editor mount (gzip) | 1.10 MB | 860 KB |
| Worker files (gzip) | 2.1 MB | 207 KB |
| Build output (`frontend/build`) | 138.1 MB | 101.0 MB |
| Docker image, unpacked | | 37.3 MB smaller |
| Docker image, pulled (compressed) | 83.2 MB | about 74.4 MB |
Most of the 37 MB is the TypeScript, CSS and HTML workers (33.5 MB, 23
MB of it sourcemaps). The rest is the 77 language tokenizers we never
load (1.5 MB), the stripped editor features (1.5 MB) and the CSS, HTML
and TypeScript language chunks (0.5 MB). The image copies
`frontend/build` as is, sourcemaps included, so it shrinks by the same
amount. The pulled size is the published v0.151.0 amd64 image minus the
gzip difference of the web folder (8.8 MB), not a measured build.
Dropping those features only happens in the production build, because
the Monaco code we keep still imports from their folders. Dev and
Storybook keep them, so code that uses one would work locally and do
nothing in production. A new lint rule,
`signoz/no-monaco-stripped-features`, reports their providers and
options, along with imports of `monaco-editor` outside `src/lib/monaco`
that would bring every language back. The rule and `vite.config.ts` read
the same list.
Follow-up to #13686.
#### Screenshots
Recorded on a production build of this branch.
Importing dashboard JSON: the JSON worker flags a missing value.
https://github.com/user-attachments/assets/4b48088b-c9a6-4aaf-9bc4-822eba980047
Dashboard JSON drawer: find, folding, typing and undo.
https://github.com/user-attachments/assets/9b009e06-2619-4e1d-b31a-737c4e12e0f8
ClickHouse query in the panel editor: SQL highlighting and suggestions.
https://github.com/user-attachments/assets/676d4060-fa4e-45e9-bc55-def7f75e6387
Role editor: schema errors on hover and in the banner, and the allowed
values as suggestions. This one also has #13670 applied, see below.
https://github.com/user-attachments/assets/3f1a3021-2a6a-4967-9a53-2c01f68743bb
#### Additional Information
To check it, open the role editor, the dashboard JSON drawer, a
ClickHouse query and the exceptions YAML view: highlighting, folding,
find and suggestions behave as on main, and only `json.worker` and
`editor.worker` load.
In a production build the role editor's schema validation fails on
`main` as well: the JSON worker throws on every non-empty array. #13670
fixes that, and with it applied the role editor behaves as in dev.
#### Description
- #13617 moved the service details page to v5. It merged with review
comments still open, and this PR addresses them.
- The query builders take the v5 aggregation types instead of
`MetricAggregateOperator`, so the unsafe `as` casts are gone. The values
are the same strings, so every payload stays the same.
- It removes dead code: the `stepInterval` prop, the unused widget keys,
and the `delta` argument to the ApDex query. The three ApDex formulas
were the same string, so one `FORMULA.APDEX` replaces them.
- The ApDex bucket lookup moves to `MetricsPageQueries/utils.ts`. It
returns the bucket number instead of a string. It also sorts a copy now,
because it sorted the cached bucket array in place.
#### Issues closed by this PR
Part of https://github.com/SigNoz/events-pod/issues/150
#### Additional Information
- No screen renders differently, so no story changes.
#### Description
- Removes the unused `.label` and `.titleText` classes from the saved
views CSS modules. Part of #13738, split by code owner into
#13797–#13802 so each needs one reviewer; this one merges on its own. No
change in behavior or visuals is intended.
#### Additional Information
**Verification**
| Check | Result |
|---|---|
| `tsgo`, `oxlint`, `stylelint` | Run on every commit by the pre-commit
hooks; 0 errors on the head |
| `vite build` | Passes |
| jest, every test that imports a changed file | 5 test files, 17 tests,
0 failed |
| **All six PRs merged on `main`:** | |
| full jest, 10 shards | 1,171 test files, 10,950 tests, 0 failed, 15
skipped |
| Storybook interaction runner | 137 story files, 1,428 tests pass |
| Playwright e2e, Chromium, CI settings, one backend built from `main` |
768 passed, 1 failed (it fails on `main` too), 6 passed on retry. The 8
spec files behind every failure in either run, rerun back to back on an
idle machine: 44 of 44 pass on this build, and on `main` (3 there on
retry) |
| CSS a direct visit loads, per lazily loaded page (384) | Same global
rules as `main` wherever one can apply |
#### Description
- On a rule details page, Alert Rules is already the active top tab, so
clicking it did nothing: antd `Tabs.onChange` only fires for a new key.
The same happened with Configuration on the new/edit channel pages.
- The top tabs now use `onTabClick`: on a details page, clicking its own
tab goes back to that list. On a list page, clicking the active tab
still does nothing, so the list keeps its filters.
- No visual change, so no story update.
#### Description
- The backend plans to remove the v3 autocomplete APIs and the v3/v4
`query_range` APIs. The frontend no longer calls them, but the old code
is still there.
- This PR deletes the v3 clients, types and hooks for attribute keys,
values, aggregate attributes and suggestions. It also deletes the old
`AggregatorFilter` and `HavingFilter` components, which nothing renders.
- It deletes the legacy v3/v4 `query_range` path. Every caller already
sends its query to the v5 API.
- It removes the query builder's `version` prop and the `v3`/`v4` checks
behind it. Every caller already got the v5 behaviour, so users see no
change.
- It deletes the helpers, constants, mock handlers and tests that only
this code used.
#### Issues closed by this PR
Part of https://github.com/SigNoz/events-pod/issues/161
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156.
- No screen renders differently, so no story changes.
- Two hook tests ran on the removed v4 path. They now check the v5
defaults that users get. Two new tests check the time aggregation
options for sum and gauge metrics.
- The query range hooks and `GetMetricQueryRange` still take a `version`
argument, which is always v5. A follow-up PR removes it.
- `ApiV4Instance` stays, because the ApDex settings still read metric
metadata from the v4 API.
#### Description
- Gates the alert rules list's saved views on `rule:list`, the only
permission the four `/api/v2/rule_views` routes check.
- Without `rule:list` the views rail shows the same permission callout
as the table, and the views are not requested.
- The views wait for the check. When the check itself fails, the rail
shows and loads as before, like the table beside it.
- Moves the dashboards views rail guard to
`components/ListViews/ViewsRail` so both lists share it; it takes the
list's checks.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/684
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/9pFFBKQYhH1pRuWkKGY1LJ), against
#13730: 2 changed, 138 pixel-identical, 14 noise, out of 154 shots of
Alert Rules and the Dashboards list. The change is the `NoList` story,
where the views rail now shows the permission callout; the Dashboards
list renders the same.
#### Additional Information
- Stacked on #13730.
- There are no per-view verbs, so anyone with `rule:list` can still
create, rename and delete views.
- The dashboards rail still shows its denial when the check request
fails; the rules rail fails open to match its table.
- Storybook: the Rules `NoList` play also checks the rail's callout.
#### Description
- Gates the alert details page and its history tab on rule permissions.
Blocked actions show disabled with the reason.
- Page: the full-page denial without `read` on the rule, instead of
"Alert not found".
- Header: the enable toggle, the rule name and its labels need `update`;
Clone needs `read` and `create`, plus `attach` on the rule and on its
channels when it has any; Delete needs `delete`.
- Stats and overall status need only `read`, which the page gate covers.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/683
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/BGJkqMwmkzmdorz6BAerX1), against
#13728: 6 changed, 53 pixel-identical, 9 noise, out of 68 shots of
Overview, History and Create. The changes are the full-page denial
without `read`, where the header used to stay up, and the header, Clone
and Delete locked. Both sides run this PR's stories, so each screen is
compared with itself; where the base code cannot reach a play's state,
before shows where the play stopped.
#### Additional Information
- Stacked on #13728.
- The ticket asks for the history to name the telemetry the server
refused. After review, a server 403 there renders like any other error;
only the authz components explain permissions.
- Storybook: Overview and History each move to `<Page>/Overview` with an
`Authz` folder, one story per permission.
- Top contributors failing now shows the generic error, as the timeline
does; it used to spin forever.
#### Description
- Moves the rule create and edit form onto rule permissions. Blocked
actions show disabled with the reason instead of failing on submit.
- Save: `rule:create` for a new rule, `update` on the rule for an edit,
plus `attach`/`detach` on the rule and on each channel the rule gains or
loses. Channels it keeps are not checked.
- Test notification: what creating the rule needs.
- Channel picker: a channel the rule cannot gain or lose is disabled,
and explains why on hover (`AuthZSelect`): the denial on the red
tooltip, or "Checking permissions" while its check runs.
- A channel another threshold holds, or a saved one this threshold no
longer holds, needs no check: the rule keeps it either way.
- A new rule has no id, so its own `attach` is checked on Save, as for a
new routing policy.
- Edit page: the full-page denial without `read` on the rule.
- "No channels yet" is one component, shared with routing policies, and
offers "Create one here" on `notification-channel:create` instead of the
admin role.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/682
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/UVfZw3Z2wnxri9moL5jHa8), against
#13520: 14 changed, 79 pixel-identical, 41 noise, out of 134 shots of
Create, Overview, Routing Policies and every story that shows a
permission callout. The changes are Save and Test locked, each
threshold's channel picker explaining locked channels on hover, and the
shared "No channels yet" prompt. Both sides run this PR's stories, so
each screen is compared with itself; where the base code cannot reach a
play's state, before shows where the play stopped.
#### Additional Information
- Stacked on #13520.
- The ticket asks for a callout naming the permission when the server
refuses a save or test. After review, a server 403 renders like any
other error, in the error modal; only the authz components explain
permissions.
- The channel picker and the attach/detach diff are shared with routing
policies and downtimes (`useChannelPickerAccess`, `getLinkSaveChecks`),
from #13513 and #13516.
- The legacy `FormAlertRules` form is gone from main, so there is
nothing to gate there.
- Storybook: Create moves to `Create/Overview` with a `Create/Authz`
folder, one story per permission. The alert overview plays move out of
the story file and branch on `read`, `update` and `create`. The details
page's own authz stories come with its gate in the next PR.
- The form's fixed footer now clears a pinned side nav; it used to start
at `left: 63px` and slide under it, hiding Discard.
#### Description
- Moves the alert rules list off role checks and onto rule permissions.
Blocked actions show disabled with the reason instead of hidden.
- Table: `rule:list`, else a permission callout instead of "Failed to
load alert rules".
- New Alert and the empty-state button: `rule:create`.
- Row menu: Enable/Disable needs `update`; Edit and Edit in New Tab need
`read` and `update`; Clone needs `read` on the rule and `create`; Delete
needs `delete`.
- Home page Alert Rules widget: gated with `withAuthZContent`, showing a
permission callout without `rule:list`, where a 403 used to leave the
skeleton up for good. Create Alert Rule is gated on `rule:create`
instead of `role !== VIEWER`.
- Drops the `add_new_alert` and `action` role keys, which nothing uses
now.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/681
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/WC3cvaHUhPNycdCPnWPxed), against
#13516: 26 changed, 61 pixel-identical, 7 noise, out of 94 shots of
Alert Rules and Home. The changes are the table becoming a callout
without `list`, and viewers seeing New Alert and the Actions column,
locked. The row-action toast stories move only because the base code
stops their plays with the menu open. Both sides run this PR's stories,
so each screen is compared with itself; where the base code cannot reach
a play's state, before shows where the play stopped.
#### Additional Information
- Stacked on #13516.
- Viewers used to get no Actions column and no New Alert button at all.
They now see both, disabled with the reason.
- The table is gated with `AuthZGuardContent`, with the table itself as
the loading fallback. Mounting the table only after the check broke the
saved-view URL sync.
- Clone checks only `read` and `create` here. #13253 also checks
`attach` on the rule's channels and read on the data it queries, which
the list cannot know up front, so the API decides those.
- Storybook: the page moves to `Rules/Overview` with a new `Rules/Authz`
folder, one story per permission. The `viewer` preset now lists and
reads rules, routing policies, planned downtime and channels, as the
backend's managed viewer role does, so the Viewer stories of all three
pages drop their own grants.
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
- chore: update cloud integration agent version
#### Description
- Add `audit` (`SourceAudit`) to `quickfiltertypes.Source` and seed five
default audit quick filters for new organizations
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
contributes to https://github.com/SigNoz/keystone-pod/issues/12
#### Description
- Registers `planned-maintenance` for the frontend: allow-list,
regenerated types, builders, and a Planned Downtime panel in the custom
role editor.
- Replaces `role !== VIEWER` on the planned downtime tab with permission
checks. Blocked actions show disabled with the reason instead of hidden.
- Tab: `planned-maintenance:list`, else a permission callout.
- New downtime: `create` and `attach` on all schedules.
- Row menu: Edit needs `update`, Delete needs `delete`, on that
schedule. The form opens from the row and the update route does not
check `read`.
- Form: read-only without `update`. Save needs exactly what the route
checks, worked out from the rules picked (`getDowntimeSaveChecks`). The
rule picker locks rules the user cannot `rule:attach`, and silenced ones
they cannot `rule:detach`.
- Silenced rules are checked when the form opens, since their tags can
be removed without the picker; the rest once the picker opens. A rule
waiting on its check is disabled.
- Locked rules explain why on hover, in the picker (`AuthZSelect`) and
on their tags, on the red tooltip for a denial. The All/Specific radios
lock with the rest of the form.
- While "Specific alert rules" has nothing picked, Save asks only for
`create`/`update` and leaves the empty pick to the validator.
- Without `rule:list` the picker says so instead of showing an empty
list, and editing keeps the schedule's rules, shown by id, so saving
does not drop them.
- Each control checks only the permission it needs through `useAuthZ` or
the AuthZ components. The form asks for `detach` on silenced rules and
`attach` on the rest.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/680
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/CM2e889SbL7b4kKvzMFVeY), against
#13513: 53 changed, 42 pixel-identical, 11 noise, out of 106 shots of
the role pages and Planned Downtime. The changes are the Planned
Downtime row on the role pages, and downtimes locked with the reason: a
read-only form including the rule scope, locked rules explained on
hover, and rules kept without `rule:list`. Both sides run this PR's
stories, so each screen is compared with itself; where the base code
cannot reach a play's state, before shows where the play stopped.
#### Additional Information
- Stacked on #13513.
- The ticket says an empty alert list needs only
`planned-maintenance:create`. The route in #13250 reads it as every
rule, so creating one for all rules also needs `attach` on the schedule
and `rule:attach` on `*`.
- An edit reads an empty list as every rule on both sides of the diff
(`DowntimeRuleIDsExtractor`), so re-saving an all-rules schedule needs
only `update`, and widening to all rules needs `attach` on `*` and
`detach` on the old rules.
- When there is no room below the rule picker, antd opens its dropdown
upward over the fields above.
- Storybook: the page moves to `Planned Downtime/Overview` with a new
`Planned Downtime/Authz` folder, one story per permission. The `Viewer`
story now grants `list` and `read`, which real viewers hold and the
story preset does not.
- Two console warnings in the stories come from existing code: a `<div>`
inside `<thead>` from the shared table, and `useForm` not connected,
from `PlannedDowntime.tsx` resetting the form while its modal is closed.
#### Description
Storybook CI now tests the static build instead of the dev server. The
build doubles as the compile check, and it runs the same production code
users get, which is how the Vite worker and role editor fixes in their
own PRs were found.
Each shard builds Storybook and then serves files instead of running the
dev server.
| Every story, 4 shards | Dev server (median of 28 PR runs) | Static
build (this PR) |
| --- | --- | --- |
| Slowest shard | 8.6 min | 7.0 min |
| Runner time | 29.6 min | 24.4 min |
Four stories failed only on the static build, and this PR fixes them.
Three tooltip plays hovered once before React rendered, because
production React has no `act`. A Query Builder play raced the panel type
being applied. A Noz story inherited requests the previous story still
had in flight.
#### Additional Information
`pnpm test:storybook` now builds Storybook first. Set
`STORYBOOK_STATIC_DIR` to test an existing build instead.
#### Description
- Removes dead code and styles owned by @SigNoz/pulse-frontend:
dashboards, alerts and infra monitoring. Part of #13738, split by code
owner into #13797–#13802 so each needs one reviewer; this one merges on
its own. No change in behavior or visuals is intended.
- 113 files, +12 / −2,385; 9 files deleted.
- The unused dashboard first-section migration flow:
`AddSectionControl`, `FirstSectionMigrationModal`,
`useFirstSectionMigration` and its event. Nothing renders it.
- The `AddColumnDropdown` and `PanelTypeSelectionModal` CSS modules,
which nothing imports since #13087.
- The histogram legend test, whose subject nothing in the app uses.
- Exported code nothing imports (one commit each for infra monitoring,
alerts and dashboards), and CSS rules for classes nothing renders.
- The Hosts and K8s `:global(.periscope-btn) &.ghost` rules, which
compile to a hashed class nothing uses, so they never applied.
- Each commit is one kind of change. The last ones keep `export` on code
that stays and apply review fixes.
#### Additional Information
**Verification**
| Check | Result |
|---|---|
| `tsgo`, `oxlint`, `stylelint` | Run on every commit by the pre-commit
hooks; 0 errors on the head |
| `vite build` | Passes |
| jest, every test that imports a changed file | 873 test files pass.
One timing-sensitive test (see #13797) failed under heavy load, as it
does on `main` |
| **All six PRs merged on `main`:** | |
| full jest, 10 shards | 1,171 test files, 10,950 tests, 0 failed, 15
skipped |
| Storybook interaction runner | 137 story files, 1,428 tests pass |
| Playwright e2e, Chromium, CI settings, one backend built from `main` |
768 passed, 1 failed (it fails on `main` too), 6 passed on retry. The 8
spec files behind every failure in either run, rerun back to back on an
idle machine: 44 of 44 pass on this build, and on `main` (3 there on
retry) |
| CSS a direct visit loads, per lazily loaded page (384) | Same global
rules as `main` wherever one can apply |
**Kept on purpose**
- The `SPEC_FIELDS` exhaustiveness check in
`CreateAlertChannels/channelConfig.ts`: nothing imports it, but it fails
the build when a channel field would be dropped on save.
- `PANEL_ACTION_META`: nothing reads it, but its comment calls it the
source of truth for each panel action's kind gate (see below).
- `types/api/alerts/getTriggered.ts`, until #13797 removes its last
importer. A follow-up removes it.
**Found while auditing, not changed here**
- `usePanelActionItems` doesn't read `PANEL_ACTION_META`.
- The panel-type drawer has had no custom scrollbar since #13087: its
rule targeted the drawer by `data-testid`.
- Some alert stylesheets apply app-wide once loaded: `.ant-popover-arrow
{ display: none }` in `EvaluationSettings`, and similar rules in
`EvaluationCadence` and `Summary`.
#### Description
- Registers `route-policy` for the frontend: allow-list, regenerated
types, builders, and a Routing Policies panel in the custom role editor.
- Replaces `role !== VIEWER` on the routing policies tab with permission
checks. Blocked actions show disabled with the reason instead of hidden.
- Tab: `route-policy:list`, else a permission callout.
- New routing policy: `create` and `attach` on all policies.
- Row menu: Edit needs `update`, Delete needs `delete`, on that policy.
The form opens from the row and the update route does not check `read`.
- Form: read-only without `update`. The channel picker locks channels
the user cannot `attach`, and linked ones they cannot `detach`. Adding
or removing a channel also needs `attach`/`detach` on the policy.
- Linked channels are checked when the form opens, since their tags can
be removed without the picker; the rest once the picker opens. A channel
waiting on its check is disabled.
- A locked channel, in the dropdown or as a tag, explains why on hover
through a new `AuthZSelect`, on the red tooltip for a denial.
- Bases the "Create one here" link on `notification-channel:create`
instead of the admin role.
- Each control checks only the permission it needs through `useAuthZ` or
the AuthZ components. The form asks for `detach` on linked channels and
`attach` on the rest.
- Fixes `AuthZGuard` remounting its content when a check resolves, if
that content was a fragment shown while loading. A click made mid-check,
like opening a dialog, was lost.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/679
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/UdM9ZGf6Af7ekasJS9hr2n), against
#13507: 59 changed, 39 pixel-identical, 10 noise, out of 108 shots of
the role pages and Routing Policies. The changes are the Routing
Policies row on the role pages, and routing policies locked with the
reason: row actions, the channel picker's hover reasons, the stacked "No
channels" prompt and Save as an AuthZButton. Both sides run this PR's
stories, so each screen is compared with itself; where the base code
cannot reach a play's state, before shows where the play stopped.
#### Additional Information
- Stacked on #13507.
- Create and edit check more than the ticket lists: the routes in #13249
also check `attach`/`detach` on the policy and on each channel added or
removed. Admins hold all of them, so nothing changes for managed roles.
- Viewers can now open a policy from its row, read-only, instead of the
row doing nothing.
- `/alerts` joins `routeWithInitialAuthZSupport`, so a user with only
custom roles reaches the page instead of the legacy role redirect. That
also opens the Triggered Alerts tab, which is not gated here; the
backend decides what it returns.
- `AuthZSelect` wraps antd's Select to match the pickers around it.
Moving it to the `@signozhq/ui` Combobox needs a chip that cannot be
removed: SigNoz/uforge-pod#6494.
- `useLinkPickerAccess` can exempt items whose change keeps the owner's
links, which the rule form's thresholds use.
- Storybook: the page moves to `Routing Policies/Overview` with a new
`Routing Policies/Authz` folder, one story per permission. The `Viewer`
story now grants `list` and `read`, which real viewers hold and the
story preset does not.
- Two console warnings in the stories come from existing code: a `<div>`
inside `<thead>` from the shared table (also on the Channels list) and a
setState-during-render from the search handler.
#### Description
Every production build ran the images under `src/assets` through sharp
and svgo again. This PR runs that same optimization once on the source
files and removes vite-plugin-image-optimizer, along with sharp and
svgo, from the build.
Users get the same images: the 91 emitted image files are byte-identical
to what main ships today. The build saves about 1.3 s of image work per
run and drops three dev dependencies (about 450 lockfile lines). The
source images shrink by 244 KB.
#### Additional Information
The source files now hold the plugin's output, so they carry the same
loss main already ships (PNG palette quantization, JPEG at quality 80).
The originals stay in git history. Five small icons now fall under
Vite's 4 KB inline limit and become data URIs instead of separate files,
which is about neutral on the wire.
#### Description
- Removes the unused `Question` and `OptionGroup` types from
`AddDataSource`. Part of #13738, split by code owner into #13797–#13802
so each needs one reviewer; this one merges on its own. No change in
behavior.
#### Additional Information
**Verification**
| Check | Result |
|---|---|
| `tsgo`, `oxlint`, `stylelint` | Run on every commit by the pre-commit
hooks; 0 errors on the head |
| `vite build` | Passes |
| jest, every test that imports a changed file | 3 test files, 224
tests, 0 failed |
| **All six PRs merged on `main`:** | |
| full jest, 10 shards | 1,171 test files, 10,950 tests, 0 failed, 15
skipped |
| Storybook interaction runner | 137 story files, 1,428 tests pass |
| Playwright e2e, Chromium, CI settings, one backend built from `main` |
768 passed, 1 failed (it fails on `main` too), 6 passed on retry. The 8
spec files behind every failure in either run, rerun back to back on an
idle machine: 44 of 44 pass on this build, and on `main` (3 there on
retry) |
| CSS a direct visit loads, per lazily loaded page (384) | Same global
rules as `main` wherever one can apply |
Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
#### Description
- `POST /api/v1/export_raw_data` already routes `signal: logs, source:
audit` queries through `querier.QueryRange` to
`signoz_audit.distributed_logs` using the existing chunked streaming and
`limit`/`offset` pagination path.
#### Issues closed by this PR
Closes https://github.com/SigNoz/keystone-pod/issues/6
#### Description
- Adds `rule` to the frontend authz layer: allow-listed in
`cmd/authz.go`, `permissions.type.ts` regenerated.
- Adds `rule.permissions.ts` with builders for list, create, read,
update, delete, attach and detach.
- Adds an Alert Rules panel to the custom role editor.
- `useAuthZ` splits a check into requests of at most 50. OpenFGA rejects
a larger batch whole, and pickers that check every channel or rule can
exceed it.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/678
#### Screenshots / Screen Recordings
[Storybook visual
diff](https://claude.ai/artifact/Cypmg8RjE868Qq53KUSpAW), against main
at the merge-base: 28 changed, 25 pixel-identical, 3 noise, out of 56
shots of the role pages. The change is the Alert Rules row on the role
pages, which moves every row below it.
#### Additional Information
- No alert page uses these yet. They land in the follow-up PRs stacked
on this one.
- `canClone` covers `rule:read` on the source and `rule:create`. Create
and clone in #13253 also check `attach` on the rule and on each channel
it names. That depends on the rule's channels, so it stays with the
pages that know them.
- The Role Details story already renders the new panel, since the editor
lists every panel from the config.
- The panel's docs anchor is `rule`. The public permissions page has no
section for it yet, nor for notification-channel or saved-view.
- `permissions.type.ts` is generated by `go run cmd/enterprise/*.go
generate authz`.
#### Description
- The Microsoft Teams channel never showed its `Description` template.
The card body was a fixed Labels / Annotations layout built in code, so
a custom description was ignored unless the rule carried its own body
template.
- The Teams notifier now renders the channel `Description` on the card,
the same way Slack does. A body template on the rule still wins over the
channel.
- Teams gets its own default `Title` and `Description`, written in the
markdown a Teams card renders. Until now the channel form prefilled
Teams with the Slack templates, which Teams cannot render properly.
- A migration brings stored channels up to date. An untouched Slack
default becomes the new Teams default, a Slack default the user edited
has its Slack formatting converted in place, and text written from
scratch is left as it is.
- The notifier trims the message when it would go over the Teams size
limit.
- Label values are shown as written. Teams reads card text as markdown,
so a value such as `a*b*c` or `[x](y)` lost characters, on the old
layout as well. The notifier now escapes label values before the
templates run.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#755
#### Screenshots
Real alerts fired from this branch, as shown on Teams web.
Default templates:
<img width="632" height="328" alt="Teams card with the default
templates"
src="https://github.com/user-attachments/assets/d127339e-8409-4410-b66d-914344e9cded"
/>
Custom `Title` and `Description` on the channel:
<img width="632" height="239" alt="Teams card with a custom description"
src="https://github.com/user-attachments/assets/3a07f1db-7994-418a-b40c-086e4e23369d"
/>
#### Additional Information
- Every Teams card changes from the Labels / Annotations list to a
markdown message. A custom annotation shows only if the `Description`
template names it.
- Checked with real cards on Teams web. Mobile and the desktop app are
not checked.
- Teams answers HTTP 202 even for a post it drops for size (27,000 bytes
arrived, 27,200 did not), so the notifier trims at 25,600 bytes.
- Known limits: label values are escaped before the templates run, so in
a custom template a label inside a link target carries the backslashes,
and a condition such as `eq .CommonLabels.service "_internal_"` compares
against the escaped value. The migration also bolds any `*x*` span in an
edited Slack default, such as `2*3*4`.
- Not escaped in label values: `&`, so a literal entity such as `&`
shows decoded, and line-start markers (`#`, `>`, `- `, `1. `), which
only matter when a custom template starts a line with a label.
- Docs PR: SigNoz/signoz.io#4564
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
- Add `audit` (`savedviewtypes.SourceAudit`) to the saved views `Source`
enum and validation so the Audit Logs explorer can create, list, update,
and delete saved views via `/api/v2/saved_views`.
#### Description
The uPlot stylesheet was a copy in `public/css`, served at a fixed URL
without a content hash, so browsers revalidated it on every page load.
It now comes from the `uplot` package as a hashed Vite asset and is
cached as immutable like the rest of the bundle. The old copy had the
same rules as the package's 1.6.31 file, so no style changes.
The link is still appended to the end of `<body>`, after the app's
stylesheets, so uPlot's rules keep winning ties. Storybook now loads it
through the same module. It used to load it in `<head>`, where the app's
`.uplot { width: 100% }` beat uPlot's `width: min-content`, so Storybook
now matches the app.
#### Screenshots / Screen Recordings
I shot 62 chart stories (dashboard panels, panel editor chart options,
service detail) in dark and light with sbshot, on main and on this
branch. 217 of 246 pairs are pixel-identical. The other 29 are focus
rings left by `play` functions, plus `.uplot` crops in the panel editor
whose box is 1 px narrower because of the width rule above. The chart
pixels inside those crops are identical.
Each GIF alternates main and this PR. Only the label at the top changes.
Dashboard panel with legend, dark:

Time series chart area, light:

Histogram, dark:

Service detail charts, dark:

#### Description
The sidebar and the page now sit on the same background, so the app
reads as one surface instead of a gray sidebar next to a lighter page.
Pages that painted their own background over the shell no longer do;
cards and tables keep theirs.
The sidebar shadow now only appears when the collapsed sidebar opens
over the page on hover. On the resting sidebar it made both sides look
like different colors.
To check it, open `Pages/Home/Default` in Storybook in both themes, and
`Foundations/App Layout/Collapsed Side Nav` for the hover state. A
screenshot run of every story in both themes against main showed no
other change.
#### Screenshots / Screen Recordings
Home, dark:

Home, light:

Collapsed sidebar expanded on hover:

#### Description
Moves the frontend from the `rolldown-vite` 7.3.1 bridge to Vite 8.3.8
and `@vitejs/plugin-react` 6. The bridge is no longer maintained, and
Vite 8 ships Rolldown itself. Vite now resolves tsconfig paths on its
own, so `vite-tsconfig-paths` goes away. `esbuild` becomes a direct dev
dependency, because Vite 8 no longer bundles it and we still minify CSS
with it (lightningcss rejects the `:global()` we have in plain
stylesheets).
Out of the box, Vite 8 splits the entry's static imports into about 300
small shared chunks: first load goes from 3 requests to 324. Self-hosted
installs serve the UI over plain HTTP/1.1, where that took a cold load
of `/signup` from 1.9 s to 3.3 s. The second commit adds one
`codeSplitting` group for the `$initial` modules, which puts the entry
graph back into one chunk.
With that, the page loads the same as on main, and the build gets faster
and lighter: 19.2 s to 13.1 s, 7.1 GiB to 5.5 GiB peak memory.
I ran the Vite 8 build behind the Go server against the e2e backend (64
scripted steps over the main pages, plus 80 existing e2e tests) and saw
no error that main does not also have. The chunk group is also on the
#13702 staging build.
Part of #10192
#### Additional Information
Chunks, `build/assets`:
| | main | this PR |
|---|---|---|
| JS / CSS files | 559 / 94 | 546 / 94 |
| JS + CSS requests before the app mounts | 3 | 4 |
| First-load JS + CSS, gzip | 3.07 MB | 3.06 MB |
| All JS + CSS, gzip | 8.56 MB | 8.53 MB |
| `pnpm build`, median of 3 | 19.2 s, 7.1 GiB | 13.1 s, 5.5 GiB |
The extra request is Rolldown's 1 KB runtime chunk.
Lighthouse, cold load of `/login`, median of 5, served with the Go
server's cache headers over HTTP/1.1:
| | main, desktop | this PR, desktop | main, mobile | this PR, mobile |
|---|---|---|---|---|
| Performance score | 66 | 66 | 39 | 39 |
| FCP | 2.96 s | 3.00 s | 17.15 s | 17.15 s |
| LCP | 3.16 s | 3.13 s | 18.09 s | 18.08 s |
| TBT | 30 ms | 0 ms | 626 ms | 622 ms |
| Transferred | 3,106 KiB | 3,096 KiB | 3,106 KiB | 3,096 KiB |
#### Description
Closes https://github.com/SigNoz/uforge-pod/issues/6481
JSON editors with a schema, such as the role editor's JSON view, had no
validation, hover or completion in the production build. The Monaco JSON
worker threw `Cannot read properties of undefined (reading 'include')`
on any non-empty array.
Vite emitted workers as classic scripts, which run in sloppy mode, while
the minifier assumes strict mode. A function declared inside a block got
hoisted over a variable the minifier had renamed to the same name.
Workers now ship as ES modules, which always run in strict mode.
The dev server already serves module workers, so it does not reproduce
this. To see it, serve a build (`pnpm build` and `pnpm preview`, or
`pnpm storybook:build` and serve `storybook-static`), open a role's JSON
view and change a `relation` to a verb that does not exist. On main
nothing is flagged, Save stays enabled and the worker error shows in the
console. With this change the value is underlined, the schema error
appears and Save is disabled.
#### Screenshots / Screen Recordings
Before:
https://github.com/user-attachments/assets/daada9c2-6877-4958-b407-f29885e74022
After:
https://github.com/user-attachments/assets/45f6fd7b-fbe6-4619-ae72-de3f42d183b8
#### Additional Information
Module workers need Chrome 80, Safari 15 or Firefox 114 and later.
#### Description
Fixes the jest, storybook and e2e flakes that keep failing CI on busy
runners. I found them by rerunning each suite on fewer CPUs, close to
what a GitHub runner has.
In jest, two tests failed on slow role queries or counted a row the form
no longer adds. The slowest suites (LLM settings, quick filters, cloud
account setup, planned downtime, panel menu) now skip user-event's
per-key delay and render fewer rows. That delay option is one shared
`NO_DELAY_USER_EVENT` constant now, and the test rules say when to keep
the delay.
In storybook, the cloud account stories wait for the setup command
before pressing Cancel. Each story gets 60 s instead of 30 s, because
the first story of a heavy page can spend most of 30 s compiling.
In e2e, browser contexts drop their route handlers before closing, quick
filter seeds add the fields a test needs instead of replacing the org's
filters, multiple-select dropdowns close from their trigger (Escape also
closed the dialog around them), and a dropped wheel event is sent again.
Google Fonts and the changelog CMS are blocked so their failures stay
out of the console checks. The stack fixtures give WireMock and the
SigNoz container 60 tries to come up instead of 10.
The HAVING and aggregation editors in the query builder dropped keys and
jumped the caret to the start when the page was busy, which failed the
query builder e2e specs. `@uiw/react-codemirror` wrote an older `value`
over keys typed since, so the editors now own their text and only a
change from outside, such as a saved view, is written into them.
The lessons also go into the page-story skill and the Playwright
generator and healer agents, since they regenerate those files and would
bring the flakes back.
With the e2e stack on fewer CPUs, a full run passed 788 tests with none
flaky.
#### Screenshots / Screen Recordings
Typing into the aggregation and HAVING editors with the page under
simulated CPU load (the banner is a test overlay, not app UI).
Before, on `main`, the text gets scrambled:
https://github.com/user-attachments/assets/665aad3e-c036-4e00-923c-5707a380a441
After, under the same load:
https://github.com/user-attachments/assets/2213a260-0e19-47ab-904d-501dea86db95
#### Description
- Adds Create an alert and Add to dashboard to the AI explorer's List,
Trace, Time Series and Table views through the shared `ExplorerActions`.
The query stays in the AI slot, so the alert opens as an AI Trace-based
Alert and the panel on the AI Query Builder tab.
- List and Trace show only the first query's filter, so their alert and
panel keep only that query, use `count()` and drop the group by, having,
order by, formulas, step interval, limit and legend another view set.
List exports a List panel with the columns the List view shows; Trace
exports a Time Series.
- `ExplorerActions` takes the explorer page (`ExplorerActionsSource`)
instead of a `DataSource`, so the AI explorer, which queries traces,
logs its own `AI Observability Explorer: …` events with `sourcepage:
ai_observability`. Logs, Traces and Metrics send the same events and
payloads as before.
- Create an alert encodes the query twice, like Add to dashboard,
because the alert page decodes it twice. Filters with `%` or `+` used to
open the type picker or lose the `+`, in the Logs and Traces explorers
too.
- Stories: `AddToDashboardDialog` on the AI explorer page;
`AITracesAlertFromExplorer` on Create alert and `AIExplorerExport` on
the panel editor, each opened through the explorer's own link. The
explorer page's plays moved to `__story_mockdata__/explorer.play.ts`.
#### Issues closed by this PR
ClosesSigNoz/nerve-pod#274
#### Screenshots / Screen Recordings
https://github.com/user-attachments/assets/a3855187-447a-45bc-b86a-7a185e9929f5
#### Additional Information
- The AI table header renders whenever there is no error, as in traces,
so the actions show while data loads.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- Since #13087, `Typography` opens its own tooltip when its text is cut
off. Four places also had an outer tooltip, so hovering cut-off text
showed it twice.
- Quick filter section titles showed the title twice in one stacked
tooltip. Span event attribute keys and values, and query builder search
suggestions, opened two separate popups.
- This PR removes the outer tooltip at those four places. Cut-off text
now shows its full text once, and text that fits shows no tooltip.
- Suggestion value and operator rows did not shrink, so their text was
never cut and only the outer tooltip showed a long value. The row's left
section now shrinks, so a long value ends in "…" and its tooltip opens.
- New stories hover cut-off text in quick filters, span events and the
pipeline filter suggestions, and they fail on `main`. Two jest tests for
the old quick filter tooltip are removed, because jsdom cannot measure
text.
#### Issues closed by this PR
Part of https://github.com/SigNoz/events-pod/issues/306
#### Screenshots / Screen Recordings
Screenshots of the new stories, in dark and light themes:
https://claude.ai/artifact/Lcjn1xBj8qTM9yesjPDmK6
- Quick filters: before and after. On `main` the title shows twice in
one tooltip.
- Span events and the pipeline filter suggestions: after only. Their
plays use a helper this PR adds, so `main` cannot run them.
#### Additional Information
- A long span event value inside the hover popover still opens the
popover and the `Typography` tooltip together. That fix needs a change
in `@signozhq/ui`.
#### Description
Metrics explorer, Meter and Messaging queues import all of their tabs up
front. Each tab now loads when it opens, using the per-tab loading state
from #13691. Tab URLs and order stay as they are. Infrastructure
monitoring and API monitoring are left alone: their tabs share almost
all of their code, or there is only one.
Opening each page's default tab, entry included: Metrics goes from 11.43
MB to 11.09 MB, Meter from 11.39 MB to 11.14 MB and Messaging queues
from 11.26 MB to 10.96 MB.
The queue details drawer on the messaging queues overview relied on
styles the Celery tab happened to load; it now imports them itself.
Part of #10192
#### Screenshots / Screen Recordings
Switching metrics explorer tabs in Storybook, main on the left, with the
network slowed to 1.6 Mbps so the loading state is visible:
https://github.com/user-attachments/assets/5802c696-680e-4afc-93d7-a59536542af9
Queue details drawer, main on the left:

The 40 metrics, meter and messaging queues stories render the same in
both themes, except the Celery state drawer table, which sits 1px
higher.
#### Description
- Removing a Created-by tag with its × only staged the change: the query
runs when the dropdown closes, and the × never opens it. The chip
vanished but the list kept its old results.
- `MultiSelectFilter` now commits any change made with its dropdown
closed (a tag's ×, the clear icon) through `onCommit`; picks in an open
dropdown still stage until it closes.
- Dashboards' Created-by, the service accounts status filter (same bug)
and the alert rules status filter (which had its own copy of this) all
use it.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#789
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/LGAnLu31NHXY5eZ6PLz3Yx)
(sbshot, merge-base vs this branch, dark and light): removing the
Created-by tag on My dashboards and the Deleted status tag on service
accounts now reruns the list. 14 of 22 pairs are pixel-identical; the
other 4 are timestamp and anti-aliasing noise.
#### Additional Information
- The clear icon clicked while the dropdown is open now stages like any
other pick, running on close.
#### Description
`Style` from `@signozhq/design-tokens` is an object of 817 `var(--...)`
strings, and the bundler keeps all of it once anything imports it. The
side nav did, for one value, so the whole object sat in the entry chunk.
The three values the app used are now written as the CSS variables they
already held, and oxlint rejects importing `Style`. The entry chunk
loses 47.6 kB (7.8 kB gzipped). Colors render the same, since the
strings are identical.
Part of #10192
#### Screenshots / Screen Recordings
Main on the left or top, this branch on the right or below:


The 46 stories that render these icons are pixel-identical in both
themes, apart from a focus ring left on one form input.
#### Description
The cloud integrations page imported `Modal`, `Form`, `Select` and
`Skeleton` from `antd/lib`. That path is antd's CommonJS entry, so it
pulled every antd component into the page's chunk. Importing from `antd`
takes that chunk from 1.30 MB to 108 kB (335 kB to 26 kB gzipped).
It also fixes how the remove-account modal looks. `antd/lib` is a second
copy of antd that the app's `ConfigProvider` does not reach, so that
modal used antd's default theme (larger text, bold title, rounder
buttons). It now picks up the app theme.
#10491 removed these imports once and they came back, so oxlint now
rejects runtime imports from `antd/lib`. Type-only imports stay allowed.
To check, run `pnpm build` on main and on this branch and compare
`build/assets/IntegrationsDetailsPage-*.js`.
Part of #10192
#### Screenshots / Screen Recordings
The remove-account modal, main on the left and this branch on the right:


Across the 43 cloud account stories in both themes, the only other
differences are toasts caught mid-fade.
#### Description
Dashboard JSON can point at any logo under `src/assets/Logos`, so the
icon map globs all 240 of them. The glob used `?url`, but Vite still
inlines every file under `assetsInlineLimit` as base64, so the logos
shipped inside the JS whether a dashboard used them or not. With
`?no-inline` they are emitted as files and fetched only when a dashboard
shows one. The chunk that holds the icon map goes from 376 kB to 76 kB
(135 kB to 23 kB gzipped).
To check, on a production build (`pnpm build && pnpm preview`) import a
dashboard whose `image` is `/assets/Logos/redis`: the logo loads as its
own `redis-<hash>.svg` request.
Part of #10192
#### Screenshots / Screen Recordings
Dashboard list with logo images, main on top and this branch below:

The logo stories are pixel-identical in both themes. Across the 102
dashboard list, detail and settings stories, the other differences are
toast fades and mock timestamps a second apart.
#### Description
- Plays the page-story skill writes now check the args their own story
sets. A story that sets `view: 'mine'` to put a Created-by tag on screen
must still pass when someone flips the view in the panel. This is the
miss from
https://github.com/SigNoz/signoz/pull/13753#discussion_r4706154296.
- The skill now says to go through every control a story exposes, the
page's own as well as the shared ones, before writing a play's early
returns.
- New PR rule: a review fix to a file with the AI-owned banner also adds
the lesson to the skill or agent that made it, so the next run doesn't
write the same bug again.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/786
#### Description
- The query search value dropdown now stays open when the editor
re-renders. Before, every render handed CodeMirror new extensions. When
the cursor sat on an empty value like `service.name = '`, that closed
the dropdown, for example when key suggestions loaded late.
- The CodeMirror extensions, `onChange` handler and `basicSetup` are now
built once. They read the latest suggestions and run handler through
refs, as `ListFilter/SearchBar` does.
- This fixes the flaky `fetches value suggestions when editing value
context` test. The "keeps the value suggestions open when the key
suggestions load" test now waits past CodeMirror's re-query, so it fails
without this fix. Its old assertion ran before the dropdown closed.
- Stories already cover this: the Traces and Metrics explorer plays type
`service.name = ` and wait for a value suggestion.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/782
#### Description
- Gates the Ingestion keys page on the new `ingestion-key` and
`ingestion-limit` permissions, so users without them can't trigger
actions that would be rejected.
- Moves limit create/update/delete off the deprecated gateway routes to
`/ingestion_limits`; their permissions are identical.
- Shows both resources in the roles editor.
- Ingestion shows in the settings sidebar for every role. The legacy vs
multi-key page split is unchanged (multi-key when the gateway is on,
legacy for cloud otherwise); only the admin/editor condition is dropped.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#42
#### Screenshots / Screen Recordings
[sbshot diff](https://claude.ai/artifact/FutBFmcA9ERz1GzcrhjYJN) vs the
merge-base, dark and light:
- Ingestion: unchanged for permitted users (30 pairs identical), plus 9
new Authz stories.
- Roles: only the new Ingestion Keys and Limits panels and the viewer's
sidebar link changed.
#### Additional Information
- Open on the ticket: the new `/ingestion_limits` calls are not yet
tested against a real gateway.
---------
Co-authored-by: vikrantgupta25 <vikrant@signoz.io>
#### Description
- The save/rename view dialog hardcoded "e.g. Prod alerts", so the
dashboards list showed an alerts example.
- `ViewsRail` now takes `viewNamePlaceholder`; alerts keep "e.g. Prod
alerts", dashboards use "e.g. Prod dashboards".
- The dashboards list story already opens this dialog in its play, so no
story change.
Found while testing SigNoz/pulse-pod#775.
#### Description
- Include auth domains and the organization in the generated frontend
permissions, so the role editor offers them.
- Show Organization Settings, and the SSO section in it, to all roles.
Access is decided by authz instead of the legacy admin-only check.
- Gate the auth domain list and delete, and the organization display
name, on their permissions. Saving a domain stays a backend check.
- Add unit tests, SSO stories and E2E specs.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#39
#### Screenshots / Screen Recordings
[Before and after Storybook shots of the settings
pages](https://claude.ai/artifact/1Az85vbiW1RU1rk5JD5zRN), dark and
light. Role editor and role details list the new Auth Domains and
Organization panels. The Display name field and its Submit button use
the `@signozhq/ui` components. The baseline is the merge-base plus a
commit that only retitles the Single Sign-on stories, so old and new
stories pair.
#### Description
- The "reach out to us." link on the anonymous Access Restricted page
sat below the text baseline and had no space before it.
- `Button` is an `inline-flex` box with a fixed 24px link height,
centring its label; letting its height size to content and aligning on
the baseline puts it on the line. Set via `--button-*` tokens since
`Button` drops `className`.
- The leading space moves outside the button, where flex layout no
longer swallows it.
#### Screenshots / Screen Recordings
Visual diff (sbshot, `Pages/System/Unauthorized`, dark + light, baseline
`main`): https://claude.ai/artifact/AxR71cviVejCEE96XhbEHM
#### Description
Log details opened from an infra monitoring drawer works again: the
arrow keys step through the logs, and a click on another log row opens
that log. Both broke when the entity drawer moved to `@signozhq/ui`,
which blocked keys and clicks on the drawer below log details.
`0.4.1-rc.1` fixes it (SigNoz/components#532).
A new e2e test in the infra monitoring drawer spec covers both, and the
Pods story "Details Drawer Log Navigation" covers the arrow keys.
#### Screenshots
After:
https://github.com/user-attachments/assets/548292f3-41e7-4d8b-b1f5-40872a2f8fb2
#### Additional Information
`0.4.1-rc.1` is a prerelease because SigNoz/components#532 is still
open. I'll bump to the stable release once it merges.
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
Stacked on #13601.
- Open Noz conversations show as tabs in the bottom strip, newest beside
Ask Noz. Clicking one opens it in the Noz panel; × closes the tab
without archiving the thread.
- A tab whose reply the user hasn't seen shows a dot, and a placeholder
chime plays when a reply lands off screen. A reply on screen is read at
once.
- Tabs and unseen replies persist in localStorage, so they survive a
reload, a closed tab or a restart. Tabs are capped at 5; past that, the
oldest tab goes.
- Saved ids are pruned only after a successful thread fetch, so a failed
fetch can't wipe them. A deleted, archived or another user's thread
drops out on the next good fetch.
- `StripTab` / `StripTabs` are generic strip components (no Noz imports)
beside `StripTypography` and `StripKeyValue`.
- When the strip runs short, the tabs shrink first and their titles
truncate; Ask Noz, history and Support keep their size, and the tabs
never cover the left slot.
- Chat tabs also show on the Noz page, where a tab opens its chat in the
page.
- The Noz page's conversation list marks a chat with an unseen reply
with the same blue dot.
- The panel header gains a minimize button, which hides the panel and
keeps the chat as a tab. × now also closes the chat's tab; a reply
landing later brings it back.
- A tab also shows the dot while Noz waits on the user's approval or
answer there, and a chat that starts waiting joins the strip. Ask Noz
loses its pulsing dot: it always starts a new chat, so it can't lead to
the waiting one.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=306515634&issue=SigNoz%7Cnerve-pod%7C643
<!--If applicable, include screenshots or screen recordings that clearly
show the behavior before the change and the result after the change. -->
#### Screenshots / Screen Recordings
https://github.com/user-attachments/assets/99192505-8df2-4108-896d-3872e1926fe2
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- Tab state lives with Noz, not the strip:
`useAIAssistantOpenConversationsStore` in `AIAssistant/store` and
`useAIAssistantActiveChats` (which also plays the chime) in
`AIAssistant/hooks`. `BottomStrip/NozActiveChat` only renders the tabs,
so the panel doesn't import from the strip.
- The store tracks loading per thread (`loadingThreadIds` replaces the
global `isLoadingThread`), so switching tabs while another chat loads
works, and a chat's skeleton and disabled input follow only its own
load.
- Stories: Components/Strip Tabs (Default, Crowded, Focused) and
Foundations/Bottom Strip `NozChats` / `NozChatOpen`. The global Noz
mocks gain "Open chats" and "Unseen replies" controls (default 0, so
other stories are unchanged). `NozAwaitingYou` now shows the waiting dot
on a tab.
- Bottom Strip `NozChatOpen` checks each chat opens on its end.
Pages/Noz with Open chats and Unseen replies set shows the list dot. The
Noz page mock now answers each thread as itself.
- Ports the earlier work from #13573 onto the Noz stack.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
Stacked on #13598.
- A history icon in the bottom strip, next to Ask Noz, opens a popover
of recent conversations with a title search. Picking one opens it in the
Noz panel.
- It stays while the panel is open, and hides when Noz is off, on the
Noz full page (whose sidebar lists the chats), or with no saved
conversation.
- It reads the list the shell already loads on every page, so it adds no
request.
- The floating panel and the Cmd/Ctrl+J popup chat lose their history
toggle. The conversation list is now full-page only, so its panel layout
is gone.
- Ask Noz always starts a new chat (reusing an empty open one) and stays
in the strip while the panel is open, so the panel and the popup chat
drop their + button.
- Opening the history closes the panel behind it, so one Noz surface
shows at a time.
- The list's open state lives in the Noz store (`isHistoryOpen`), like
the panel's, so a keyboard shortcut can open it later. It isn't
persisted.
- Both history lists open a chat through `useOpenConversation`, which
always reloads it, so a chat whose load failed can be retried.
- Like the panel, the popover moves left of the support chat while it's
open and back once it closes; Support no longer dismisses it. No new
obstacle system: `FloatingPanel`'s existing obstacle types and utils
move to `lib/obstacles` (renamed, not rewritten), and
`useAvoidObstacles` now subscribes through a shared `watchObstacles`.
The only new pieces are `getRightClearance` and `usePopoverAvoidance`,
the popover's counterpart to `useAvoidObstacles`.
- The @ picker's row style and the conversation list's relative time are
shared with the popover.
- Popover rows use the full-page list's text: vanilla-400 titles in dark
mode (`--l2-foreground` in light, since vanilla-400 doesn't follow the
theme), 20px line height and plain digits.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=306515634&issue=SigNoz%7Cnerve-pod%7C643
<!--If applicable, include screenshots or screen recordings that clearly
show the behavior before the change and the result after the change. -->
#### Screenshots / Screen Recordings
Visual diff (sbshot, both themes, vs `main`):
https://claude.ai/artifact/8xwuRCyTKntdDsfktVKjLP
- 98 pairs change: History and + leave the modal and panel headers, and
the strip gains the History icon. 2 are new (the History popover), 16
are removed (the header History stories), 62 are identical.
https://github.com/user-attachments/assets/ebf88e0b-0096-40e1-b605-b1df9bd7bc94https://github.com/user-attachments/assets/6772ab32-44b2-48bd-812f-231525860bbb
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- We should merge this with the next follow up
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
The changelog modal now uses the `@signozhq/ui` dialog instead of the
antd `Modal`, with the dialog's own colors and spacing. The title row,
scrollable content, footer actions and the "Scroll for more" button
stay, and the surface is one flat panel instead of boxes inside a box.
"Scroll for more" is now a primary `@signozhq/ui` button, so Tab shows
the same focus ring on it as on the footer buttons.
On main the modal's background depended on CSS load order: its own rule
and the global `.ant-modal .ant-modal-content` rule from #10742 have the
same specificity, so whichever loaded last won. The dialog drops those
antd overrides. It also no longer sits under the other `@signozhq/ui`
dialogs, and cloud workspaces, which have no upgrade actions, no longer
get an empty footer bar.
Stacked on #13689.
#### Screenshots / Screen Recordings

Self-hosted workspace in the dark theme, main on the left and this
branch on the right.
#### Description
The app layout imported the AI assistant panel and modal and the
changelog modal up front, so every page downloaded them before it could
render, including for users who never see the assistant. The assistant
brings the dashboard panel registry and the query builder along, and
with them uPlot, chart.js, CodeMirror, `moment-timezone` and
react-markdown. The assistant's code now loads only when it renders for
the user, and the changelog when it opens. If one of those chunks is
gone after a deploy, the page reloads once, the same way lazy pages
recover.
The entry chunk goes from 10.94 MB to 6.67 MB (2.94 MB to 1.81 MB
gzipped). On a 10 Mbps connection with a 4x slower CPU, the login form
shows in 3.7 s instead of 5.3 s.
Part of #10192
#### Screenshots / Screen Recordings
Cold load of the login page, main on the left. The stats include a build
with every bundle PR merged, for where this is heading:
https://github.com/user-attachments/assets/934ec550-4431-4d54-be51-dc952409565e

The changelog modal, main on the left. It now shows "Scroll for more"
when the notes overflow; on main the modal measured before its content
had laid out:

The other app layout and bottom strip stories are pixel-identical in
both themes.
#### Description
A panel whose widget query changed fetched once more with the previous
query before the new one.
The card kept a copy of the query in state and refreshed it in an
effect, one render late. On the service overview this is the latency
chart: it waits for the top level operations, then sends `name in []`,
which `query_range` rejects with a 400.
The card now sends the widget query directly, and list panels keep only
their paging in the request state.
The logs list stored its page size in that copy, so a query change reset
the request to the widget's page size while the picker kept showing the
user's. It now lives in the paging params and survives a query change.
> The list of logs does not appear to be used by these legacy pages, so
it is likely that this code path is not executed.
This fails `services/detail.spec.ts` TC-04 and `services/list.spec.ts`
TC-02 on #13689, whose timing hits the race on every run.
`GridCardGraph.test.tsx` covers both stale-query cases and the page
size; all three fail without the change.
#### Screenshots
Before:
<img width="894" height="157" alt="image"
src="https://github.com/user-attachments/assets/71a50d88-c49f-4ace-9510-0d40355ec7d0"
/>
After:
<img width="893" height="132" alt="image"
src="https://github.com/user-attachments/assets/2a618cfd-6796-40f9-99a5-aca2436f5fcb"
/>
> No failed requests
#### Description
Since #12515, `src/index.tsx` imports Monaco, so every page loads the
whole editor before it renders. Monaco and our setup (workers, themes,
`loader.config`) now load on the first editor mount. The entry chunk
goes from 10.94 MB to 7.19 MB (2.95 MB to 2.00 MB gzipped).
The hook sits on `@monaco-editor/react`'s loader, not on a wrapper
component, so every editor, including ones added later, gets the bundled
Monaco without changing its import. #12697 takes the wrapper route, and
the editors added or moved since it opened bypass it and can fall back
to the CDN.
Storybook's preview imported the setup directly, so it now imports the
loader as well.
#### Issues closed by this PR
Closes#12692
#### Screenshots / Screen Recordings
ClickHouse query editor, main on top and this branch below:

The 31 editor stories render the same in both themes. The differences
left are the role JSON view race that #13671 fixes and Monaco's overview
ruler drawn a moment later.
#### Description
Logs, Traces and LLM Observability import all of their tabs up front, so
opening the logs explorer also downloads pipelines, and the traces
explorer downloads funnels. Each tab now loads when it opens, using the
per-tab loading state from #13691. Tab URLs and order stay as they are.
Opening each page's default tab, entry included: LLM Observability goes
from 12.45 MB to 11.80 MB, Logs from 11.63 MB to 11.50 MB and Traces
from 11.75 MB to 11.62 MB. The smaller tabs gain more: funnels drops to
10.97 MB. With the entry PRs in, the page shell alone is 2.55 MB.
Part of #10192
#### Screenshots / Screen Recordings
Switching from the traces explorer to funnels in Storybook, main on the
left, with the network slowed to 1.6 Mbps so the loading state is
visible:
https://github.com/user-attachments/assets/a910cbe8-2db8-431e-95a1-586ba6e0e50d
The 141 logs, traces and LLM observability stories render the same in
both themes; the differences left are live tail offsets, toasts and
loading spinners caught on different frames.
#### Description
Frontend for `AI_TRACES_BASED_ALERT` (backend already supports it,
#12783).
- **Alert type:** "AI Trace-based Alert" card on `/alerts/new`, with its
defaults and alert-type map entries. No docs link until an AI docs page
exists.
- **Editor:** AI alerts open only the AI Query Builder tab (traces, no
trace operator), always in the new editor (classic page and its switch
hidden). Preview, condition query, "Group alerts by" and label-key
checks read the AI slot.
- **Query shape:** the editor keeps AI in its own slot
(`builder_ai_query`), like the dashboard panel editor. It converts to
the wire shape (`builder` + `builder_ai_query` envelopes) only on
preview/save, since a rule's `queryType` must be `builder | promql |
clickhouse_sql`. Saved rules are moved back into the AI slot on edit
(`toAISlotQuery`).
- **Dashboard:** Create Alerts is enabled for AI panels. The link keeps
the AI slot, and the alert page detects AI from the query's `queryType`.
- **History:** the alert popover / top contributors show "View AI
Traces" from `relatedAITracesLink`.
#### Issues closed by this PR
Closes
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=283123867&issue=SigNoz%7Cnerve-pod%7C513
#### Screenshots / Screen Recordings
https://github.com/user-attachments/assets/6663a68a-5eea-4920-b30a-205eeba311d3
#### Additional Information
- was Stacked on #13486 (`refactor/ai-explorer-query-type`).
- Not in scope: Create alert from the AI explorer (its query is still in
the tagged shape; to discuss separately)
- SBSHOT -
https://claude.ai/artifact/X2JQRsNXJ8KCNFcmtgFLMd?sk=CHo7GMdRF6MGhUdbE0PkSg
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- Adds the `Distribution` chart: bucket counts as bars over equal-width
bucket slots, groups stacked, side by side or as 100% shares; the
overflow bucket is hatched.
- `TooltipPlugin` / `ChartWrapper`: opt-in `pinOnClick`, so a chart can
pin its tooltip on a click instead of handling it.
- New reusable uPlot `variableWidthBars` path builder; hover focuses the
group under the cursor, as the bar panel does.
- Stacked and percent draw every group. Side by side draws as many as
fit (at most 10) and sums the rest into Other, with Pie's Other label
and colour; the legend keeps every group.
- Percentile markers computed client-side the way `histogram_quantile`
does, drawn as dashed lines with diamond badges; hovering one shows its
value on the x axis. Markers on the same spot share one badge (`p90+`).
- Tooltip in the time-series layout: bucket range and total, the hovered
group above the divider, then every group by count, named by its
group-by value. Over Other it lists the groups Other sums; clicking the
Other bar pins it, as on Pie, and a group can then be picked for
drilldown.
- `jest.config`: `modulePathIgnorePatterns` matched any path containing
`dist`, which silently skipped these tests; now only `<rootDir>/dist/`.
#### Additional Information
- Chart-only, on `main`. Stack: this PR → #13535 (spec) → #13537
(panel).
- The jest change may start running other suites under paths containing
`dist`.
#### Description
Stacked on [#13729](https://github.com/SigNoz/signoz/pull/13729).
- The 520 DOM lookups left in 148 test files (`querySelector`,
`closest`, `parentElement` and the like) now go through Testing Library:
test IDs first, then role, label or text, scoped with `within`. App
components gain the test IDs this needs.
- A new lint rule, `signoz/no-dom-node-access`, flags these calls in
test files. A test that checks DOM structure on purpose disables it on
that line with a reason; 9 lines do.
- Some checks that could never fail now can: a multi-select filter test
that never typed, role table rows found by a class that matched nothing,
and a query section test whose async loop was never awaited.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/770
#### Additional Information
- antd `Skeleton` drops `data-*`, so a few loading states gain a wrapper
`div` that carries the test ID (AuthCard, ViewRolePage,
WidgetGraphComponent, TraceDetailsHeader). TraceDetailsHeader's skeleton
class moves to that wrapper, with `display: flex` to keep the layout.
<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
- Noz replies lose the grey bubble background in the modal and the side
panel. Width, padding and radius stay as they were; errors keep their
red callout.
- Approval and clarification cards use `border-box`. The modal and panel
portal outside the layout's border-box reset, so the cards ran 26px past
the reply column.
- Adds `Pages/Noz/Modal` and `Pages/Noz/Panel`: every state of the Noz
page story in the ⌘J modal and the floating panel, plus History for the
conversation list behind their headers.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
<!--If applicable, include screenshots or screen recordings that clearly
show the behavior before the change and the result after the change. -->
#### Screenshots / Screen Recordings
Visual diff (sbshot, both themes):
https://claude.ai/artifact/E1eFXkLUQ6UUvpQ7Mg5SyJ
- 182 pairs at a 0.005 threshold (the grey is below sbshot's default):
53 changed (40 modal, 13 panel), 120 pixel-identical, 9 noise.
- The Noz page and the bottom strip are unchanged.
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
The time picker's custom range calendar shipped in the entry chunk with
`react-day-picker` and part of `date-fns`, although most sessions never
open it. It now loads when the custom range opens. While it loads, a
placeholder sized to the month being shown holds its place, so the
popover does not change size when the calendar arrives. If the chunk is
gone after a deploy, the page reloads once, like the lazy pages do.
The entry chunk shrinks by 72 kB (18 kB gzipped). The calendar is a 72
kB chunk of its own (19 kB gzipped).
Part of #10192
#### Screenshots / Screen Recordings
Opening the custom range in Storybook, main on the left. The network is
slowed to 1.6 Mbps so the placeholder is visible; the popover stays 587
by 403 px on both sides:
https://github.com/user-attachments/assets/09c50af4-2eab-4996-9e40-6b9ea909aba4
The time picker stories, including a new one with the calendar open, are
pixel-identical in both themes.
#### Description
Stacked on [#13646](https://github.com/SigNoz/signoz/pull/13646).
- Library CSS (antd's runtime styles, CodeMirror's theme,
`@signozhq/ui`'s injected modules) no longer loads in jest. The app's
own stylesheets were already mocked out. jsdom matched about 2,000 rules
on every `getComputedStyle` call, so one role query could take half a
second.
- The `getComputedStyle` try/catch in `jest.setup.ts` is gone. It caught
a selector error that fired for every element with a React `useId` id
and reported all of them as visible, so tests never saw Base UI's inline
styles.
- The Floating UI and antd scroll-lookup mocks from
[#13645](https://github.com/SigNoz/signoz/pull/13645) are removed, along
with the per-file Floating UI mocks and raised timeouts in the GCP
tests. They only worked around slow `getComputedStyle` calls.
- Jest's default 5 s test timeout is back, undoing
[#13721](https://github.com/SigNoz/signoz/pull/13721), which raised it
to 10 s because multi-step tests ran past 5 s on busy CI runners. The
QuickFilters, InviteMembers and AttributeMappingsTab tests it named took
about 1 s locally on main and now take 140 to 320 ms. No test in the
full local run takes over 500 ms.
- Locally, on top of
[#13646](https://github.com/SigNoz/signoz/pull/13646), the full suite
went from 161 s to 131 s, and tests over 500 ms went from 45 to 5.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/769
#### Additional Information
- Nothing is hidden by CSS in tests anymore, so tests in 6 files
changed. Slider thumbs are found with `{ hidden: true }`, because Base
UI shows them only after measuring layout. The export popover now
unmounts on close (`destroyTooltipOnHide`), the only change outside
tests.
#### Description
From the Nov 23 Noz UI review:
- Links in Noz replies render as `Typography.Link`, the standard product
link, instead of bordered pills.
- The floating panel's default size scales with the screen by one
factor, keeping its 420×601 shape. Up to 1440×900 it stays 420×601;
1920×1080 → 504×721, 2560×1440 → 672×962. Users can still resize it.
- The sidebar labels Noz **Beta** instead of Early Access. The Early
Access badge stays available for other features.
- The floating panel and ⌘J modal headers drop the Noz icon; the chat
title stays.
- Approval and clarification buttons are default size, equal width and
right-aligned (secondary left, primary right) instead of full width. An
approval without a diff puts its summary beside the buttons, wrapping
them under it when the card is narrow.
- Deletes the unused `AIAssistantDrawer` (nothing imported it since the
floating panel replaced it).
- Stories: new `Pages/Noz › Awaiting Delete Approval` and an "Approval
diff" control for the no-diff approval. Existing stories cover the rest:
`Pages/Noz` (links, `Awaiting Approval`, `Awaiting Clarification`),
`Foundations/Bottom Strip › Noz Panel` (panel and header),
`Foundations/App Layout` (sidebar).
#### Issues closed by this PR
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/HevyMtVoVnhqhbE94XCoxA) of the
Noz, Bottom Strip and App Layout stories, dark and light, merge-base →
head: 80 pairs, 69 changed, 2 new, 9 identical. Every change is from
this PR or noted as capture noise.
#### Additional Information
- The 1440×900 reference is an assumption. Change `DESIGN_SCREEN` in
`AIAssistantPanel.tsx` if the Figma frame differs.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- Adds e2e coverage for Noz without an AI backend:
`tests/noz/chat.spec.ts` covers opening a chat from the side nav, send →
reply, reload, follow-up in the same thread, new chat + history, and
asking from Logs Explorer (page context sent).
- Noz is enabled per test via `page.route`: the global config gets
`ai_assistant_url` pointed at a fake AI service, so the shared stack
keeps Noz off.
- The fake is typed from `@signozhq/noz-client`, so an AI API change
fails `tsc`. The `SSEEvent` union moves to a types-only `sseEvent.ts`;
e2e can't import `chat.ts`, whose frontend-only imports don't resolve
there.
- Adds the testids the specs need: `conversation-view` and
`ai-conversation-item-<id>`.
#### Issues closed by this PR
Closes SigNoz/nerve-pod#662
#### Screenshots / Screen Recordings
#### Additional Information
- Stacked on #13526.
- `@signozhq/noz-client` is a type-only dev dependency in e2e; pnpm
auto-installs its peers (react, axios, react-query) into the e2e
lockfile. Turning that off would also drop eslint, which
`eslint-plugin-playwright` needs.
- With the CI budget, 6/6 pass, plus 18/18 over `--repeat-each=3`. Each
test fails when the behaviour it covers is broken.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
Stacked on [#13645](https://github.com/SigNoz/signoz/pull/13645).
- 57 slow or flaky test files are rewritten to the test rules.
- These files find elements through Testing Library only (`screen`,
`within`), never `querySelector`, `closest` or `container`. Source files
gain the test IDs this needs, and the onboarding sliders and two selects
gain the accessible names they were missing.
- Locally the full suite went from 271 s to about 160 s, and tests over
1 s went from 75 to 5.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/768
#### Description
- The test setup turns off three DOM walks that jsdom does slowly:
user-event's pointer-events check, Floating UI positioning, and antd's
scroll-container lookup.
- The test rule adds a 500 ms budget per test and bans `*ByRole` inside
`waitFor` and raised timeouts. The agent guide runs checks only at the
gate, and `no checks` skips them while iterating.
- Local jest runs use at most 4 workers and restart any worker that
grows past 1 GB. CI keeps its default worker count.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/767
#### Additional Information
These rules depart from Testing Library's defaults on purpose. Each one
gives up a check for speed:
- Tests find elements by test ID instead of by role. Testing Library
ranks `getByTestId` last, but `getByRole` walks the accessibility tree
on every call. That makes it the slowest query on large pages. A test no
longer fails when a control has no accessible name.
- Tests render the component that owns the behaviour instead of the
whole page, and click-through flows move to e2e. A bug in the wiring
between components needs a page-level test or e2e to catch it.
- user-event's pointer-events check is off in every test.
`jest.setup.ts` swaps the package for a wrapper, so a direct import of
`@testing-library/user-event` gets it too. A click on a button hidden
under an overlay now passes.
- `@floating-ui/dom` returns position 0,0 without measuring. jsdom has
no layout, so the real numbers were meaningless anyway.
- antd's scroll-container lookup is mocked through an internal path,
`@rc-component/trigger/lib/util`. If antd renames the function, the
speedup stops without an error. The mock goes when antd does.
#### Description
Fixes how `/api/v1/fields/values` finds the key for `name`.
##### How `name` is read now
| Request | Keys looked up, in order |
|---|---|
| `name=log.level` | `log.level` in any context, then the log field
`level` |
| `name=resource.service.name` | `resource.service.name` in any context,
then the resource `service.name` |
| `name=attribute.resource.service.name` |
`attribute.resource.service.name` in any context, then the attribute
`resource.service.name` (only the first prefix is a context) |
| `name=attribute.key&fieldContext=attribute` | attribute
`attribute.key` only (context given, name used as is) |
| `name=service.name:string` | `service.name` with type `string` |
| `name=user.id:string&fieldDataType=string` | `user.id:string` (type
given, suffix stays in the name) |
When a name has two readings, values of the prefixed name come first and
win the limit.
##### Other fixes
- `searchText` is no longer read as a key. A search like `log.x` used to
change the context.
- Metric attributes are now found with `fieldContext=attribute`. They
are stored as `point`, not `tag`.
- A data type no longer hides metric attribute values. The filter
compared `string` with the stored `String`; metric attributes are all
strings, so it is dropped, as the keys lookup already does.
- Related values (`existingQuery`) skip rows that don't have the key.
Those rows used to come back as empty strings and fill the limit.
- Number search now works for `int64` and `float64` keys too.
#### Tests
- Unit tests in `field_test.go` and `metadata_query_test.go`.
- New integration tests in `quickfilter/` (`02`, `03`, `04`). They also
check that unknown keys return nothing, and that values cover every key
a name can mean.
- Field keys and values tests moved into `quickfilter/` from
`queriercommon` and `queriermetrics`.
#### Additional Information
Values cover every key a name can mean, so some can match nothing in a
filter on the same name. The filter reads one key; this is accepted:
- A name stored as both resource and attribute (`service.name`): the
filter reads the resource key and warns.
- `resource.x` and `attribute.x`: the filter never reads a key stored
under the prefixed name, and does not warn when the stripped key also
exists.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
This PR also adds sort by status and run queries on blur
#### Description
- Renames the State dropdown to **Status** and moves it first in the
filters row, ahead of Created by and Updated. Filtering by status from
the DSL is on hold (SigNoz/pulse-pod#750).
- Adds two rail views: **Enabled** (every state except disabled) and
**Recently viewed** (rules opened from the list, in visit order, kept in
the browser like dashboards' Recently viewed).
- Sorts the alert rules table by status by default, firing first
(`sort=state&order=desc`). Saved views keep their own sort.
- Leaving the query box with an unrun draft (e.g. terms picked from
suggestions) now runs it. The fix is in the shared `SearchBar`, so it
applies to dashboards too. A blur from switching tabs or windows doesn't
run it.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#749
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/RhoUKk7x88kGQFBfsRkaxs):
`Pages/Alerts/Rules` and `Pages/Dashboards/List/Default`, merge-base vs
branch, dark and light. Taken before the Status filter was restored;
`StateFilterOpen` was since restored. Every rules story moves with the
rail and the firing-first sort. The dashboards list differs only by a
timestamp second (noise).
#### Additional Information
- Recently viewed fetches one 200-row page (the API max) and filters it
in the browser, since the API has no id filter.
- The default sort shows no arrow in the table header, as before.
- Stories: `EnabledView` and `RecentlyViewed` added. The story mock now
sorts by status like the backend.
#### Description
- In the panel View modal, the where-clause and aggregation autocomplete
was clipped at the query builder's edge and looked hidden behind the
chart.
- Two `overflow: auto` wrappers clipped it: the modal's `.queryBuilder`
and the shared editor pane's container. The modal already scrolls, so
both now let the dropdown overflow.
- The full-page editor keeps its own scroll area; the override applies
only when `stickyHeader` is off (View modal only).
Before:
<img width="2056" height="1329" alt="image"
src="https://github.com/user-attachments/assets/88477a6a-edcf-4c1b-b624-d0759bfe50e1"
/>
After:
<img width="2056" height="1329" alt="image"
src="https://github.com/user-attachments/assets/7e8f028d-2e88-4881-8c2e-f670947087e8"
/>
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#773
#### Description
- The alert rules and dashboards lists hid their header (title, count,
DSL query bar, filters) when the workspace was empty, so the query
runner only appeared once there was data or a query.
- Both lists now render the header through a shared `ListHeaderZone`
(`components/ListViews`), always, with the empty state below it. The two
pages' duplicate header styles are gone.
- The alert empty state drops its own "Alert Rules" heading, which would
repeat the header's.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#746
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/EkmPBu3SGz61yB5hwww82W):
`Pages/Alerts/Rules/No Rules` and `Pages/Dashboards/List/Empty
Workspace`, merge-base vs branch, dark and light: 4 changed.
#### Additional Information
- Both stories already cover the empty state; no story edit needed.
- Touches `AlertsEmptyState.module.scss` next to #13619's change;
whichever merges second may need a small conflict fix.
#### Description
- Adds a Go rule: never copy a struct through a pointer dereference
(`copied := *original`).
- Such a copy is shallow. Pointer, slice and map fields stay shared, so
changing the copy can change the original.
- Use the type's `Copy()` when it has one; otherwise create a new struct
literal from the needed fields.
- `Copy()` methods themselves may dereference, as long as they then
replace every pointer, slice and map field.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
#### Description
- Multi-step `userEvent` tests (open a drawer, click, save, wait for the
refetch) pass Jest's default 5s on busy CI runners and fail with
`Exceeded timeout of 5000 ms`, though nothing is wrong.
- `jsci` failed three times on SigNoz/signoz#13713, a rules-only change,
each time on different tests (`QuickFilters`, `InviteMembers`,
`PricedModelsTab`, `AttributeMappingsTab`).
- Raises the default `testTimeout` to 10s. Tests with their own timeout
keep it; a truly hung test now takes 10s to fail.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
#### Description
Settings and alert details import every tab up front, so opening
Settings downloads billing (chart.js, uPlot, `moment-timezone`), service
accounts (CodeMirror) and every other tab before the one you asked for
renders. Each tab now loads when it opens, using the per-tab loading
state from #13691. Tab URLs, order, permissions and license checks stay
as they are.
Opening Settings goes from 11.76 MB to 10.95 MB on main today (3.19 MB
to 2.95 MB gzipped), and to 2.55 MB (0.77 MB gzipped) once the entry PRs
are in. The first time a tab opens in a session it shows a short spinner
beside the settings menu.
The ingestion page relied on the `.learn-more` style that the MCP server
tab happened to load; it now imports it itself.
Part of #10192
#### Screenshots / Screen Recordings
Opening Settings pages in Storybook, main on the left. The network is
slowed to 1.6 Mbps so the loading state is visible; at 4 Mbps a page
shows in about 0.3 s:
https://github.com/user-attachments/assets/02da6227-5dac-43a2-b6fe-dfd4968a009b
Across the 188 Settings and alert stories, the tabs render the same in
both themes once loaded, apart from a focus ring left on the members
search and a 1px edge in the role JSON panel. The other differences are
toasts and play steps caught at different moments.
#### Description
- AI Assistant DTOs and enums now come from the `@signozhq/noz-client`
package (pinned `1.12.2`) instead of a generated copy in
`src/api/ai-assistant/`. The API spec lives in the assistant repo, so
bumping a package version replaces hand-syncing the files on every
release.
- Deleted `sigNozAIAssistantAPI.schemas.ts` and the unused orval hooks
in `index.ts`. `chat.ts` (REST + SSE client) stays and keeps using
`AIAssistantInstance`.
- Only types and enums are imported, so the package's hooks and
`setGeneratedAPIInstance` are not wired.
#### Issues closed by this PR
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=315100999&issue=SigNoz%7Cnerve-pod%7C677
#### Screenshots / Screen Recordings
#### Additional Information
- The package exports the same schemas as the deleted file, plus
`ReadinessChecksDTODrain`.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
Pages with tabs (Settings, Logs, Traces, Metrics and others) render them
through `RouteTab`, which mounts only the active tab but receives every
tab's component already imported. To let a page load each tab when it
opens, a tab has to be able to suspend. Each tab pane now has its own
loading boundary, so a tab that is still loading shows a spinner under
the tab bar instead of the whole page turning into one.
Nothing changes on its own: no tab is lazy yet. The pages follow in
separate PRs per owner, and with them and the entry PRs in, opening
Settings goes from 11.76 MB to 2.55 MB (3.19 MB to 0.77 MB gzipped).
The jest setup's `getComputedStyle` fallback now returns a width and
height, since tables mounted inside a lazy pane crashed without them.
Part of #10192
#### Screenshots / Screen Recordings
Settings with its pages loading on demand through this change (the
follow-up PR), in Storybook with the network slowed to 1.6 Mbps, main on
the left:
https://github.com/user-attachments/assets/d22bf877-1ff8-4d25-a4eb-85a0a046998c
#### Description
Opening a role's JSON view from a link or after a reload
(`/settings/roles/:id/edit?viewMode=json`) could show `[]` instead of
the role's grants, and saving then replaced them with whatever was
typed. It happened whenever the permission check answered before the
role fetch.
The editor reads its value only once, when it mounts, so the page now
stays in its loading state until the fetched role is in local state.
#### Description
Part of SigNoz/platform-pod#3428.
- Run every integration suite against ClickHouse `26.8.34` (SQLite only,
non-blocking) to catch upgrade issues early.
- Bump the collector to `v0.144.17` for
SigNoz/signoz-otel-collector#990: 26.8 rejects the migrator's `CREATE`
of AggregatingMergeTree tables with plain columns outside the sorting
key.
- Pin `use_variant_as_common_type=0`: 26.8 turns mismatched types into
`Variant` instead of the no-common-type error. Handling `Variant`
results instead is tracked in SigNoz/events-pod#271.
- Drop `avg(timestamp)` from the pinned unsupported aggregations: 26.8
averages `DateTime64` into an instant.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01X3AdVnw3X4N8Knhw8Yghtv
## Description
The CSS modules guide told us to write `:local(@keyframes name)`, and
Greptile now flags plain `@keyframes` in review because of it. That form
doesn't compile (Sass fails with `expected selector`), and it isn't
needed: CSS Modules already scope `@keyframes` in a `.module.scss` file.
While checking the rest of the guide against `@signozhq/ui` and the
design tokens, I fixed two more things that don't exist or don't behave
as written. The `--periscope-font-size-*` and `--font-size-*` tokens
aren't defined anywhere, so the checklist now points at the text style
tokens. And a nested `.icon` inside `.button` compiles to `.button
.icon`, so it is scoped under `.button`, contrary to what the comment
said.
The app had the same problem: the AI assistant, the Top List panel and
the Geo Map tooltip used `--periscope-font-size-*`, `--font-size-*` and
`--font-weight-*` tokens that were never defined, so their text fell
back to whatever size and weight it inherited. They now use the
typography tokens, so small labels render at 11px and medium or semibold
text gets its weight back. Expect those surfaces to look slightly
different.
The guide also taught how to override `@signozhq/ui` components through
their CSS variables and `data-*` attributes, and several of the
variables it listed didn't exist. That section now says not to override
them at all: use the component's props, put layout on a wrapper you own,
and when the component can't do what the design needs, file a UI
suggestion in `SigNoz/uforge-pod` instead of restyling it locally.
`frontend/CLAUDE.md` says the same, so agents stop writing overrides.
## Screenshots
AI assistant thread list: group headers and timestamps drop to 11px,
headers get bolder.

AI assistant suggested actions: the label drops to 11px, the action
buttons grow to 13px.

Geo Map tooltip: the place name goes to 13px medium, the code, label and
value to 11px.

Top List: the value column goes from regular to medium weight.

<!--A few plain bullets saying what changed and why, for a reviewer
skimming it - not a wall of text, not a restatement of the diff, not
generated boilerplate.-->
#### Description
- Adds `auditor::kafka::tls` (`enabled`, `ca_file`, `cert_file`,
`key_file`) so the Kafka auditor can connect to brokers that require TLS
or mTLS, such as Redpanda's internal listener in TLS deployments.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
closes https://github.com/SigNoz/keystone-pod/issues/225
2026-11-23 10:57:46 +00:00
1716 changed files with 53408 additions and 31099 deletions
- A driver is a function closing over the page that returns `Locator` getters and async actions. Actions wait inside themselves (e.g. `run()` pairs the click with `waitForResponse(/query_range/)`), so specs don't.
- A driver is a function closing over the page that returns `Locator` getters and async actions. Actions wait inside themselves (e.g. `run()` pairs the click with `waitForResponse(/query_range/)`), so specs don't. A wait for "the request the action fired" skips aborted requests, which have no response: Run after a cancel re-sends the cancelled query and aborts it, and `query-builder/run` TC-34 read that one.
- A page action that opens an explorer waits for the content pane's scrollbar viewport (`quick-filters-layout-content [data-overlayscrollbars-viewport]`) before anything types. The scrollbar starts on idle and re-parents the editors, so keys typed across it land at the start of the text. Typing into a CodeMirror editor retypes until the editor holds exactly the text, as `editorAt(...).type` and `querySearch.apply` do: `query-builder/aggregation` TC-17 sent `c()` for `count()`.
- `driver(name, build, dispose?)` in `drivers/kit.ts` makes it a test-scoped fixture on `authedPage`; `dispose` deletes what it seeded. `seeded(name, open, close)` makes a worker-scoped seed.
- Read [tests/e2e/tests/dashboards/editor/query.spec.ts](../../tests/e2e/tests/dashboards/editor/query.spec.ts) and [drivers/panel-editor.ts](../../tests/e2e/drivers/panel-editor.ts) for the canonical shape.
- **Seeds are layers on the feature's `test`.** A spec destructures the seed it needs (`alertList`, `ownedRules`, `resolvedHistory` for alerts) instead of importing a fixtures module. A new seed goes in the feature's driver directory: `seeded()` for read-only data shared by a worker, a test-scoped layer for anything a test mutates.
- **Self-contained state.** The bootstrap creates a fresh stack with **zero** dashboards / alerts / etc. Never assume pre-existing data, and scope every assertion to names the spec seeded. Pick the scope per the Seeding table in [tests/e2e/AGENTS.md](../../tests/e2e/AGENTS.md): test scope (a test-scoped layer, or `try / finally` through the driver) for mutations, worker scope (`seeded()`) for read-only data, suite `beforeAll` for a dataset only one file uses.
- **A seed adds to org-wide settings, never replaces them.** Quick filters, org preferences and similar settings are shared by every spec on the stack, and `fullyParallel` runs those specs at once. Read the stored value and write a superset with only the missing entries, as `quickFilters.seed` does. A seed that replaced the logs filters made `query-builder/filter` TC-16 fail later on the same stack, and a restore in teardown races a parallel spec that seeded the same setting.
- **Close a multiple combobox from its trigger, never with Escape.** A multi-select stays open after a pick, and Escape also closes the dialog or page around it; `onboarding/get-started` TC-09 landed on `/home`. `comboboxAt(...).pick` already does this.
- **A context you open yourself drops its routes before closing.** Call `page.unrouteAll({ behavior: 'ignoreErrors' })` before `ctx.close()`, as `authedPage` does; a handler still inside `route.fetch` otherwise fails a test that already passed.
- **Drive everything through the feature's driver** in `tests/e2e/drivers/`. A spec that reaches for `page.locator(...)` or `page.getByTestId(...)` is missing a driver method — add the method instead. `onAdminPage(browser, …)` from `drivers/kit.ts` is what suite hooks use, because `authedPage` is test-scoped and not visible to them.
- **Seed through the kit when the UI flow is not under test.** Control-plane objects go through the feature driver (`dashboards.seed`, `alerts.seed.threshold`), which uses `apiDriver(page)` from `drivers/api.ts`; telemetry goes to the seeder. `page.request.*` does **not** carry the token, so never seed with it.
- **Golden telemetry is pre-seeded.** `bootstrap/global.setup.ts` loads logs, traces and metrics over the last 6h (constants in `GOLDEN`, `drivers/dashboard-spec.ts`). Query within ≤ 6h and assert structure (series, rows, request payload), never exact counts.
@@ -50,6 +50,9 @@ Don't try to start the stack yourself — it can take ~4 minutes on a cold build
- **Auth.** `tests/e2e/drivers/auth.ts` logs in once per worker and caches `storageState` (localStorage with `AUTH_TOKEN`). For API-driven seeding and cleanup use `apiDriver(page)` from `drivers/api.ts`, which attaches the header for you. Never re-implement login.
- **Seeds.** Feature seeds are layers on the feature's `test`, e.g. `alertList`, `ownedRules` and `resolvedHistory` in `drivers/alerts/seeds.ts`. When a test fails on missing data, check which seed it destructures and whether it scopes to that seed's names.
- **Timeouts.** Never add `test.slow()` to a driver: it triples the remaining budget per call and compounds in loops. Use `allowFor(floor)` from `drivers/kit.ts`. Budgets and their measurements are in `tests/e2e/docs/flake-notes.md`.
- **A failure that shows only late in a long local run.** Run that spec's shard alone on a freshly seeded stack before fixing it, as CI does. A setting another spec changed and never restored, or golden telemetry aging past a query window, fails it only after the rest of the suite.
- **`route.fetch: Target page, context or browser has been closed` after the test passed.** A route handler was still fetching when the context closed. Unroute with `page.unrouteAll({ behavior: 'ignoreErrors' })` before `ctx.close()` in the fixture that opened the context.
- **Escape after a multi-select pick lands on another page.** Escape closed the dialog around the combobox too. Close it from its trigger (`comboboxAt(...).pick` does), never with another Escape.
- **CI-only failures.** Reproduce with `STRESS=1 CI=1 pnpm test <path>` from `tests/e2e/` before calling it a product bug.
- **Commits.** Driver fixes and spec fixes go in separate commits (see Commits in `tests/e2e/AGENTS.md`).
- **Ant Design popovers** (sort menu, action menu) are click-toggle. The trigger element is often an inline `<svg>` with a `data-testid` — clicking it opens the popover; clicking it again closes. After selecting an option, the popover auto-closes. If a test interacts with the popover twice, wait for the menu items to be visible explicitly between toggles.
The names for AI observability concepts, so code and instructions use them without redefining them: in field names, descriptions, column aliases, UI text and tests. They match the AI explorer's per-trace fields, `TraceAggregateFields` in `pkg/telemetryschema/aitelemetryschema/const.go`.
- **LLM call**: a span with `gen_ai.request.model`. Its count is `llm_call_count`, or `llmCallCount` in a camelCase response.
- **Tool call**: a span with `gen_ai.tool.name`. Its count is `tool_call_count`, or `toolCallCount`.
- **gen_ai span**: a span with any of `GenAISpanGateKeys`: an LLM call, a tool call or an agent span.
- **Review check.** "model call", `modelCall` or `model_call` in a name, a description or UI text is a finding: it is an LLM call.
Examples and the harness API live in [`frontend/src/tests/README.md`](../../frontend/src/tests/README.md).
- **Import from the harness.** `render`, `screen`, `userEvent`, `waitFor` and the rest come from `tests/test-utils`, never from `@testing-library/react`. The harness mounts the router, React Query, Redux, app context and preferences. When it can't do what a test needs, extend `tests/test-utils` instead of importing around it.
- **Find elements by test ID.** Query with `getByTestId`/`findByTestId` on the `data-testid` or `testId` the component exposes, and add one to the component when it has none. Fall back to role or text only for markup the app doesn't own. A test ID matches exactly one element and survives copy and markup changes; `getByRole` computes the accessibility tree on every call and is the slowest query.
- **Interact like a user.** `const user = userEvent.setup({ pointerEventsCheck: 0 })`, then an awaited `user.click`, `hover`, `keyboard` or `type`. `fireEvent` only for events `userEvent` has no equivalent for: scroll, resize, setting `scrollTop`.
- **Find elements by test ID.** Query with `getByTestId`/`findByTestId` on the `data-testid` or `testId` the component exposes, and add one to the component when it has none. Fall back to role or text only for markup the app doesn't own. A test ID matches exactly one element and survives copy and markup changes; `getByRole` checks the computed style of every element it visits and is the slowest query. Always go through Testing Library (`screen`, `within`), never the DOM: no `querySelector`, `closest`, `container` or `document.body`. `signoz/no-dom-node-access` flags the DOM calls in test files; a test that checks DOM structure on purpose disables it on that line with a reason. Never call a`*ByRole` query inside `waitFor` or a loop: `waitFor` re-runs its callback every 50 ms. Wait with `findByTestId`, then query.
- **Interact like a user.** `const user = userEvent.setup()`, then an awaited `user.click`, `hover`, `keyboard` or `type`. The harness turns off the pointer-events check: Base UI popups sit inside an element with an inline `pointer-events: none`, and the stylesheet that turns it back on for the popup never loads in jsdom, so the check would block every click on them. Never turn it back on.`fireEvent` only for events `userEvent` has no equivalent for: scroll, resize, setting `scrollTop`.
- **Drop user-event's pause: `userEvent.setup(NO_DELAY_USER_EVENT)`** from `tests/test-utils`; spread it when the test needs other options. The default `delay: 0` waits a `setTimeout` after every key and click, so typing 40 characters waits 40 timer turns, each slower on a busy CI runner. With `delay: null` the actions run back to back. For a long value, click the field and `user.paste(text)` instead of typing it. Keep the default when the test checks what happens between two actions, such as a debounce per key or an update on a timer or `requestAnimationFrame` between steps: with `null` that code runs only after the whole action. Under `null` the Jest timeout can't fire mid-action, so judge a slow test by its `--verbose` time, not by whether it fails.
- **Fake timers per test only**, for debounce or throttle, with `userEvent.setup({ advanceTimers: (ms) => jest.advanceTimersByTime(ms) })`. Never global.
- **Network through MSW.** The global server runs for every test; override per test with `server.use(...)` from `mocks-server/server`. Large fixtures go in `mocks-server/__mockdata__`.
- **Router through the harness.** Pass `initialRoute`/`routePath` to `render` and assert with `getCurrentLocation()` from `lib/router/navigation`. Never mock `react-router`, `react-router-dom` or `lib/history`; when a test can't render at a route, use the `lib/router` spies in `tests/router-mocks`.
- **Mock only business boundaries.** Local `jest.mock` for API modules, custom hooks and domain components. Never re-mock what the harness provides or what `jest.config.ts` maps (`uplot`, `@signozhq/icons`, `useSafeNavigate`, `logEvent`).
- **Mock only business boundaries.** Local `jest.mock` for API modules, custom hooks and domain components. Never re-mock what the harness provides (`@testing-library/user-event` in `jest.setup.ts`) or what `jest.config.ts` maps (`uplot`, `@signozhq/icons`, `useSafeNavigate`, `logEvent`).
- **Type mocks and fixtures.** `jest.mocked(fn)` for module mocks, `jest.fn() as jest.MockedFunction<T>` for a standalone mock you configure or assert on. Fixtures carry their real type, from `src/api/generated` where it exists. No `any`, no `as unknown as`. An inline `onX={jest.fn()}` on a typed prop that is never asserted needs no annotation.
- **A test fails without its change.** Revert the change, or break the line under test, and run the test before you finish: it must fail. Assert the specific outcome (exact text, request payload, call arguments), never only that an element exists.
- **One behaviour per test, at the smallest render.** Render the component that owns the behaviour, not the page around it, unless the page wiring is the behaviour. A flow of steps (a wizard, a multi-step form) becomes one test per step that starts at that step through props, store or route. A full click-through belongs in the e2e suite (`tests/e2e`).
- **Each test under 500 ms.** `pnpm jest <file> --verbose` prints each test's time. CI runs about four times slower than a laptop, and the timeout is 5 s. Never raise a timeout (`jest.setTimeout`, a third argument to `it`) to make a slow test pass; slim the test instead.
- **A test fails without its change.** At the gate in [`frontend/AGENTS.md`](../../frontend/AGENTS.md), revert the change, or break the line under test, and run the test: it must fail, and each test must stay under 500 ms. Assert the specific outcome (exact text, request payload, call arguments), never only that an element exists.
- **No limit on tests per file.** Split a file when it mixes unrelated behaviour, not to hit a count.
- When defining types, keep the structure of file to have any constants and variables first, then exported types and exported methods and then finally the unexported types and methods.
- Never import types or other modules in migration files, duplicate the required type or method to keep migration free from changes.
- Always run the gofmt tool for formating beforing commiting any changes.
- **Never copy through a pointer dereference** (`copied := *original`). It copies only the top level: pointer, slice and map fields stay shared, so changing the copy can change the original. Use the type's `Copy()` when it has one (`QueryBuilderFormula.Copy`); otherwise create a new struct literal from the fields you need. A `Copy()` itself may dereference, as long as it then replaces every pointer, slice and map field.
- **Use convensional commit format** for commits and PR title.
- **Do not amend the commits once pushed.** Always create a new commit once changes are pushed to remote.
- **Review fixes are new commits too.** A force push hides what changed from human reviewers and makes Greptile post its findings again. Bring in `main` with a merge; only a stacked branch (`gh stack`) rebases, since the stack moves as a unit.
- **A review fix to an AI-owned file fixes its generator too.** A file with the AI-owned banner (story mocks and plays, `tests/e2e/drivers/`) is rewritten by the skill or agent that made it, so a fix made only in the file comes back on the next run. In the same PR, add the lesson to that skill or agent as a concrete case.
- **Answer every Greptile thread.** Reply with the commit that fixes it (`Fixed in 4df6f3198d: <what changed>`) or the reason it stays, then resolve. Never resolve one with neither: Greptile withdraws a finding, and remembers it, only when told why.
- **Leave human review threads to the author.** Fix the code they ask for, but never reply to or resolve a human reviewer's thread.
@@ -88,7 +88,7 @@ Say the numbers plainly: how many screens changed, how many are new, how many ar
- A full capture is hundreds of shots. Scope with `--title "Pages/Alerts"` or `--stories "a,b,c"` (substring match on id or Title/Name, repeatable).
- **On macOS a capture can pin itself to one story at a time.** sbshot picks how many to shoot at once by sampling free memory, and off Linux it reads `os.freemem()`, which counts only truly free pages. macOS parks almost everything in "inactive" instead, which is reclaimable on demand, so the sampler can read ~100 MB on a 25 GB machine and shrink to one forever. `--jobs` does not help: it is only an upper cap. Check `parallelism` in `<run>/events.ndjson`; if it sits at 1 while `vm_stat` shows gigabytes inactive, that is this. A 124-shot run takes about 90 minutes pinned and about 6 minutes at four at a time, so it is worth spotting before a long capture.
- A fresh worktree cannot build Storybook: `i18n-translations-hash.json` is gitignored and generated. Run `node ./i18-generate-hash.cjs` in `<worktree>/frontend`, and symlink `node_modules` from the main checkout.
-`pnpm test:storybook`starts its own server on 6006 and hangs silently if something already holds that port. Free it first.
-`pnpm test:storybook`builds Storybook and serves the build on 6006, and refuses to start if something already holds that port. Free it first.
- ImageMagick on macOS may have no default font, so `--mode green-parallel` fails with ``unable to read font `' ``. Map Helvetica to a real file in `~/.config/ImageMagick/type.xml`.
-`sbshot link <dir> <name>` adds a run from elsewhere into the workspace, but it symlinks. Keep the source directory alive until you have exported.
- The export directory is build output. Delete it when done, or gitignore it.
CI runs each play once, with its story's own args. Anyone can flip a control in the panel, and nothing runs the play against that value, so a play that breaks on it goes unnoticed. Write each play so it cannot.
Before writing the clicks, list what has to be on screen for the play's target to exist, and return early when the args take it away. These are the cases plays have missed:
Before writing the clicks, list what has to be on screen for the play's target to exist. Then walk every control the story exposes, the page's own as well as the shared ones, and return early for each value that takes something on that list away. These are the cases plays have missed:
- The controls every story has. `State` on loading or error renders no rows and no filter suggestions. `Access`, `Permissions` and `Revoked` remove rows, row actions and gated buttons, and the `editor` and `viewer` presets grant telemetry reads only, so a page gated on its own resource shows them nothing. `Check state` on loading disables every gated control, and on error an `AuthZButton` stays enabled while an `AuthZGuardContent` set to fail closed hides what it wraps. `License` and `Banner` decide the plan, so a cloud-only form is gone on the others. `Hold tooltips open` shows a label a second time, inside its tooltip.
- An arg the story sets. The story sets it because the play needs what that value renders, and the panel can flip it. On the `mine` view the dashboards Created-by filter opens with a tag to remove; on the other views it opens empty and there is no × to click. Check the tag is there by parsing the route the view resolves to.
- The controls every story has. `State` on loading or error renders no rows and no filter suggestions. `Access`, `Permissions` and `Revoked` remove rows, row actions and gated buttons, and the `editor` and `viewer` presets grant telemetry reads only, so a page gated on its own resource shows them nothing. `Check state` on loading disables every gated control, and on error an `AuthZButton` stays enabled while an `AuthZGuardContent` set to fail closed hides what it wraps. `License` and `Banner` decide the plan, so a cloud-only form is gone on the others. `Hold tooltips open` shows a label a second time, inside its tooltip, and fails any check that no tooltip is open.
- A count at 0. The page can swap its whole list for an empty state, and the header, filters and column picker go with it.
- A view, filter or invalid query that leaves no rows, even when the count is above 0.
- A tab without the widget. A filter box that one tab has is not on the next.
- A control that moves the widget out of the canvas. Trace details with `Panel position` on dialog renders span details in a floating panel under `document.body`, so a lookup `within(canvasElement)` never finds its tabs. Return early for that value, or search with `screen`.
- A second list beside the main one, such as saved views. At 0, loading or failed, its actions are gone.
- Text that depends on an arg. A disabled rule offers Enable, not Disable. A write that fails raises a different toast from one that lands, and one left loading raises none. Pick the expected text from the args.
- Rows that move. A view, a sort or pinning changes which row is locked, pinned or legacy, so find the row by what it is, not by its index.
Make those checks with the page's own code instead of restating a condition. Build the rows with the builder the handler uses and the view's own filter, and check a permission with the page's own check through `accessFor(...).allows(...)`, or the role against the constant the page gates on, such as `componentPermission.action`. Export the checks from the mocks module, next to the handlers, so a handler change moves them too. The alert rules page has `listedRules`, `hasRowMenu`, `showsNoRulesPage` and `listsSavedViews`; the dashboards list has `listedDashboards`, `canList`, `canCreate` and `canUpdate`.
Two habits cover the rest:
Three habits cover the rest:
- Use `findAllBy*` and take the first whenever the text can appear twice, such as in a tooltip or a popover title.
- Wrap `toBeVisible` in `waitFor` for anything that fades in. A tooltip or toast found the moment it mounts is not visible yet.
- Wait for what a click depends on before clicking. A control can do something else until a request answers: in the cloud account setup, Cancel closes the drawer outright until the agent command exists, and asks to confirm only after. Clicking Cancel straight after Generate raced the account POST on CI; find `<provider>-agent-command` first.
// Bans msw imports in *.stories.tsx; handlers/mock data belong in the sibling .stories.mocks.tsx
"signoz/no-direct-react-router-import":"error",
// Steers call sites to the src/lib/router facade (allowlisted in overrides below)
"signoz/no-builder-ai-query-access":"error",
// Steers AI slot access to lib/query/builderSlot (allowlisted in overrides below)
"signoz/no-monaco-stripped-features":"error",
// Bans Monaco features the production build strips, and monaco-editor value imports outside src/lib/monaco/setup.ts (allowlisted in overrides below)
"no-restricted-globals":[
"error",
{
@@ -316,6 +320,11 @@
"name":"redux",
"message":"[State mgmt] redux is deprecated. Migrate to Zustand, nuqs, or react-query."
},
{
"name":"@signozhq/design-tokens",
"importNames":["Style"],
"message":"[bundle] Style is a large object of CSS variable strings and is not tree-shaken. Write the CSS variable directly, for example 'var(--l3-foreground)'."
},
{
"name":"react-redux",
"message":"[State mgmt] react-redux is deprecated. Migrate to Zustand, nuqs, or react-query."
"message":"[dashboard-v2] Don't call patchDashboardV2/usePatchDashboardV2 directly — use useOptimisticPatch().patchAsync so spec edits update the react-query cache optimistically and reconcile on settle."
},
{
"name":"antd/lib",
"allowTypeImports":true,
"message":"[bundle] antd/lib is the CommonJS root and bundles every antd component. Import from 'antd' instead."
},
{
"name":"motion/react-client",
"message":"[motion] motion/react-client is for React Server Components only. Use 'motion/react' instead — it provides the same exports and works correctly in client-side SPAs."
@@ -552,6 +566,7 @@
],
"rules":{
"import/first":"off",
"signoz/no-dom-node-access":"error",
// Should ignore due to mocks
"signoz/no-navigator-clipboard":"off",
// Tests can use navigator.clipboard directly,
@@ -559,6 +574,8 @@
"no-restricted-globals":"off",
// Tests need raw localStorage/sessionStorage to seed DOM state for isolation
"signoz/no-zustand-getstate-in-hooks":"off",
"signoz/no-builder-ai-query-access":"off",
// Fixtures build and assert on the raw AI slot
"@typescript-eslint/no-explicit-any":"off",// Tests often need any for mocks/stubs
"@typescript-eslint/explicit-module-boundary-types":"off",// Return types not required in tests
"@typescript-eslint/explicit-function-return-type":"off"// Same as above rule, don't need to care about return type
@@ -615,6 +632,27 @@
"rules":{
"signoz/no-direct-react-router-import":"off"
}
},
{
// builderSlot owns the AI slot; the rest normalise its wire shape or test whether it exists, which the helpers hide
@@ -28,20 +28,24 @@ You are operating within a constrained context window and strict system prompts.
- UI primitives come from `@signozhq/ui` (subpath imports) and icons from `@signozhq/icons`. No new `antd` component or direct icon library (`lucide-react`) where `@signozhq/ui` has an equivalent; `signoz/no-antd-components` enforces part of this list.
- Exception: a control added beside `antd` siblings of the same kind (a tab in an `antd` tab strip) matches them until that surface migrates. Say so in the PR.
- When `@signozhq/ui` or `@signozhq/icons` lacks what you need, say so in the PR before reaching for another library.
-Before styling a `@signozhq/ui` component, check its props in `node_modules/@signozhq/ui/dist/<component>/*.d.ts` for `className`/`style` support; some omit them. Avoid overriding the component's CSS vars unless explicitly needed.
-Never override a `@signozhq/ui` component's styles: no `--<component>-*` CSS variables, no `:global` class or `data-*` selectors, no restyling through `className`/`style`. Use its props, and put layout on a wrapper you own. When it can't do what the design needs, file a UI suggestion in `SigNoz/uforge-pod` (`ui-suggestion.yml` template) and link it in the PR.
- When writing code that could need authorization checks, read ./src/lib/authz/README.md
- A flow that gains a request also gates on that request's permission: a rename that now reads the view first needs `read` as well as `update`.
- Identity keys (legend groups, color groups, CSV headers, React keys) come from structured values, never from joined display text: `['us, east', 'prod']` and `['us', 'east, prod']` both join to `us, east, prod`.
- A payload saved under another kind or schema copies only the fields that schema accepts, and drops bindings to columns the user removed. The server rejects unknown or stale fields, so the preview works and the save fails.
3.FORCED VERIFICATION: Your internal tools mark file writes as successful even if the code does not compile. Run these checks once all changes of a task are done, never after each edit. You are FORBIDDEN from reporting a task as complete until you have:
3.CHECKS AT THE GATE: Your internal tools mark file writes as successful even if the code does not compile, so the checks below are required, but only at the gate. The gate is when the user says commit, push, raise or update the PR, mark it ready, or "run checks". Never run them after each edit or between the user's iterations.
- Between gates, after an edit, run at most the one test file that covers it.
-`no checks`: when the user says it (or "don't run tests", "just making changes"), run nothing: no tests, type check, lint, format or build. Make the change and stop. This holds until the user names a gate.
At the gate, you are FORBIDDEN from reporting a task as complete until you have:
- Run `pnpm tsgo --noEmit`
- Run `pnpm lint:js --quiet` to find critical errors
- Run `pnpm oxlint <file1> <file2>` and fix all warnings
- Run `pnpm build`
- Find if the file has tests for it, or if there's `__test__` folder or the parent folder has tests, and run. Run them before coding the change or after all changes, never in between.
- For e2e, run only the specs you added or changed: the stack is heavy. Leave the full jest and e2e suites to CI unless the user asks.
- For every test you added or changed, revert the change it covers and confirm the test fails
- For every test you added or changed, revert the change it covers and confirm the test fails, and that each test runs under 500 ms (`pnpm jest <file> --verbose`)
- On a stacked branch (`gh stack`), run `pnpm tsgo --noEmit` on every branch above it before pushing: a renamed prop or moved export breaks them
- [ ] No deep class nesting (max 3 class levels; pseudo-classes/elements and parent-reference selectors like `&.active`, `&#bar` are not counted)
- [ ] No hardcoded colors - use `--l1/l2/l3-*` semantic tokens (not `--bg-*` primitives)
- [ ] No magic numbers - use `--spacing-*` tokens
- [ ] Typography uses `--periscope-font-size-*` or `--font-size-*` tokens
- [ ]@signozhq/uioverrides use CSS variables, not direct class overrides
- [ ] Global escapes only for third-party overrides
- [ ] Typography uses `--{variant}-{size}-{weight}-*` text style tokens (see Typography)
- [ ]No overrides of `@signozhq/ui`components (see below)
- [ ] Global escapes only for third-party overrides (`@signozhq/ui` is not third-party)
- [ ] No ID selectors
- [ ] No bare element selectors
- [ ] Keyframes use `:local(@keyframes name)`to avoid global collisions
- [ ] Keyframes are declared in the module with plain `@keyframes name`(already local)
## Config (vite.config.ts)
@@ -77,7 +77,7 @@ css: {
// BAD: Nesting creates separate classes you might not expect
.button{
.icon{}// -> styles.icon (separate class, not scoped under .button)
.icon{}// -> styles.icon, but the rule is `.button .icon`: it only matches inside .button
}
// GOOD: Flat structure
@@ -289,88 +289,32 @@ Use L1/L2/L3 semantic tokens - they handle light/dark theme automatically.
- L2 = elevated surfaces (cards, panels)
- L3 = nested/inset elements
## Overriding @signozhq/ui Components
## @signozhq/ui Components
Components expose CSS variables for customization.
Don't override them. That covers setting a component's `--<component>-*` CSS variables, targeting its classes or `data-*` attributes through `:global(...)`, and restyling it with `className` or `style`. An override keeps working until the component changes, then breaks with no type error or lint warning, and the screen drifts from every other one using that component.
You can ensure they exist by looking at ./node_modules/@signozhq/ui/dist.
Never write a override without confirm it exists.
Override via:
### Method 1: CSS Variables (Preferred)
Each component exposes `--<component>-<property>` variables:
- Use the component's props (`variant`, `color`, `size`, ...) for how it looks.
- Put layout (position, margin, width inside a flex or grid parent) on a wrapper element you own.
- If the component can't do what the design needs, file a [UI suggestion](https://github.com/SigNoz/uforge-pod/issues/new?template=ui-suggestion.yml) in `SigNoz/uforge-pod` and ship with the component as it renders until the suggestion is decided. Link the issue in the PR.
-`--input-prefix-*`, `--input-suffix-*` for adornments
**General pattern:**`--<component>-<property>` or `--<component>-<state>-<property>`
## Good Patterns
### Structure
@@ -434,24 +378,21 @@ Components use data attributes for variants/states. Target them for state-specif
### Keyframes (Local Scoping)
Without `:local()`, keyframe names are global and can clash across modules:
CSS Modules scope `@keyframes` like classes: the build renames `fadeIn` to `_fadeIn_<hash>` and rewrites every `animation` in the same module that names it. Don't wrap it in `:local(...)`; Sass rejects `:local(@keyframes fadeIn)` with `expected selector`.
```scss
// BAD: Global keyframe - can conflict with other modules
'Disallow Monaco features the production build strips, and value imports of monaco-editor outside src/lib/monaco/setup.ts',
category:'Monaco',
},
schema:[],
messages:{
provider:
'{{name}} needs the Monaco `{{feature}}` contribution, which the production build strips, so it works in dev and does nothing in production. Remove `{{feature}}` from plugins/rules/shared/monaco-stripped-features.mjs to use it.',
option:
'`{{name}}` needs the Monaco `{{feature}}` contribution, which the production build strips, so it works in dev and does nothing in production. Remove `{{feature}}` from plugins/rules/shared/monaco-stripped-features.mjs to use it.',
import:
'Import Monaco from lib/monaco/setup, not monaco-editor: the package entry registers every language and worker. Type-only imports are fine.',
.uplot,.uplot*,.uplot*::before,.uplot*::after{box-sizing:border-box;}.uplot{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5;width:min-content;}.u-title{text-align:center;font-size:18px;font-weight:bold;}.u-wrap{position:relative;user-select:none;}.u-over,.u-under{position:absolute;}.u-under{overflow:hidden;}.uplotcanvas{display:block;position:relative;width:100%;height:100%;}.u-axis{position:absolute;}.u-legend{font-size:14px;margin:auto;text-align:center;}.u-inline{display:block;}.u-inline*{display:inline-block;}.u-inlinetr{margin-right:16px;}.u-legendth{font-weight:600;}.u-legendth>*{vertical-align:middle;display:inline-block;}.u-legend.u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important;}.u-inline.u-liveth::after{content:":";vertical-align:middle;}.u-inline:not(.u-live).u-value{display:none;}.u-series>*{padding:4px;}.u-seriesth{cursor:pointer;}.u-legend.u-off>*{opacity:0.3;}.u-select{background:rgba(0,0,0,0.07);position:absolute;pointer-events:none;}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform;}.u-hz.u-cursor-x,.u-vt.u-cursor-y{height:100%;border-right:1pxdashed#607D8B;}.u-hz.u-cursor-y,.u-vt.u-cursor-x{width:100%;border-bottom:1pxdashed#607D8B;}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0solid;pointer-events:none;will-change:transform;/*this has to be !important since we set inline "background" shorthand */background-clip:padding-box!important;}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none;}
* @description The explorer page the view belongs to: traces, logs, metrics, meter or ai_observability. Builder queries inside spec must use the matching signal; meter views use signal metrics with source meter.
* @description The explorer page the view belongs to: traces, logs, metrics, meter, ai_observability or audit. Builder queries inside spec must use the matching signal; meter views use signal metrics with source meter, and audit views use signal logs with source audit.
* @description The explorer page the view belongs to: traces, logs, metrics, meter or ai_observability. The machine name cannot be changed; it is identified by the id in the path.
* @description The explorer page the view belongs to: traces, logs, metrics, meter, ai_observability or audit. The machine name cannot be changed; it is identified by the id in the path.
* @description Why the result may be incomplete, for example an unknown query key or a selected field no returned span has.
*/
warnings?: string[];
}
exportenumSpantypesSpanListViewDTO{
error_origins='error_origins',
unmarked_failures='unmarked_failures',
time_spent='time_spent',
ai_usage='ai_usage',
links='links',
}
exportinterfaceSpantypesTraceServiceStatsDTO{
/**
* @type integer
* @minimum 0
*/
errorSpanCount: number;
/**
* @type integer
* @minimum 0
* @description Sum of the own time of the service's spans.
*/
ownTimeNano: number;
/**
* @type string
*/
serviceName: string;
/**
* @type integer
* @minimum 0
*/
spanCount: number;
}
exportinterfaceSpantypesTraceHighlightsDTO{
/**
* @description First page of the ai_usage view.
*/
aiUsage?: SpantypesSpanListDTO;
/**
* @description First page of the error_origins view.
*/
errorOrigins?: SpantypesSpanListDTO;
/**
* @description First page of the links view.
*/
links?: SpantypesSpanListDTO;
/**
* @type array
* @description Highest own time first.
*/
services: SpantypesTraceServiceStatsDTO[];
/**
* @description First page of the time_spent view.
*/
timeSpent?: SpantypesSpanListDTO;
/**
* @description First page of the unmarked_failures view.
*/
unmarkedFailures?: SpantypesSpanListDTO;
}
exportinterfaceSpantypesUpdatableSpanMapperDTO{
config?: SpantypesSpanMapperConfigDTO;
/**
@@ -15515,7 +15821,7 @@ export type GetFieldsKeysParams = {
*/
signal?: TelemetrytypesSignalDTO;
/**
* @description The data source within the signal. Use meter for Cost Meter metrics; empty means the default source.
* @description The data source within the signal. Use audit for audit logs or meter for Cost Meter metrics; empty means the default source.
*/
source?: TelemetrytypesSourceDTO;
/**
@@ -15526,13 +15832,13 @@ export type GetFieldsKeysParams = {
/**
* @type integer
* @format int64
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups, audit lookups (fixed 30 day lookback) and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
*/
startUnixMilli?: number;
/**
* @type integer
* @format int64
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups, audit lookups (fixed 30 day lookback) and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
*/
endUnixMilli?: number;
/**
@@ -15574,7 +15880,7 @@ export type GetFieldsValuesParams = {
*/
signal?: TelemetrytypesSignalDTO;
/**
* @description The data source within the signal. Use meter for Cost Meter metrics; empty means the default source.
* @description The data source within the signal. Use audit for audit logs or meter for Cost Meter metrics; empty means the default source.
*/
source?: TelemetrytypesSourceDTO;
/**
@@ -15585,13 +15891,13 @@ export type GetFieldsValuesParams = {
/**
* @type integer
* @format int64
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups, audit lookups (fixed 30 day lookback) and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
*/
startUnixMilli?: number;
/**
* @type integer
* @format int64
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups, audit lookups (fixed 30 day lookback) and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
*/
endUnixMilli?: number;
/**
@@ -15619,7 +15925,7 @@ export type GetFieldsValuesParams = {
searchText?: string;
/**
* @type string
* @description The key whose values to return, such as service.name. A context prefix such as resource.service.name sets fieldContext when it is empty.
* @description The key whose values to return, such as service.name. With fieldContext set, it is the stored name as is. Otherwise a context prefix such as resource.service.name sets the context and a type suffix such as service.name:string sets fieldDataType when that is empty; as in filter expressions, a prefixed name also matches a key stored under the full name, whose values come first: log.level returns values of a key named log.level, then of the log field level.
*/
name?: string;
/**
@@ -16097,6 +16403,197 @@ export type GetTraceAggregations200 = {
status: string;
};
exporttypeGetTraceHighlightsPathParameters={
traceID: string;
};
exporttypeGetTraceHighlightsParams={
/**
* @type array
* @description The lists to return. Default: all.
*/
views?: SpantypesSpanListViewDTO[];
/**
* @type integer
* @description Spans in each list. Default: 10. Maximum: 1000.
*/
limit?: number;
};
exporttypeGetTraceHighlights200={
data: SpantypesTraceHighlightsDTO;
/**
* @type string
*/
status: string;
};
exporttypeListTraceSpansPathParameters={
traceID: string;
};
exporttypeListTraceSpansParams={
/**
* @description Keeps only the spans of one kind, judged on the whole trace, by start time unless stated. error_origins: error spans with no failing child. unmarked_failures: spans not marked as errors with a 4xx or 5xx response, a non-OK gRPC status or an exception event. time_spent: one span per same-name sibling group, by the group's own time. ai_usage: spans with gen_ai token or cost usage, with those attributes, by cost, else tokens. links: spans that link to other spans.
*/
view?: SpantypesSpanListViewDTO;
/**
* @type string
* @description Words, a filter expression, or both, for example: worldpay AND has_error = true. Words match the name, status message, attributes, resource attributes and events, ignoring case. Applied before view.
*/
query?: string;
/**
* @type array
* @description Attributes or resource attributes to add to each span, for example http.route or resource.k8s.pod.name. Default: service.name only.
*/
selectFields?: string[];
/**
* @type integer
* @description Number of spans to skip. Default: 0.
*/
offset?: number;
/**
* @type integer
* @description Number of spans to return. Default: 50. Maximum: 1000.
*/
limit?: number;
};
exporttypeListTraceSpans200={
data: SpantypesSpanListDTO;
/**
* @type string
*/
status: string;
};
exporttypeGetTraceSpanPathParameters={
traceID: string;
spanID: string;
};
exporttypeGetTraceSpan200={
data: SpantypesSpanDTO;
/**
* @type string
*/
status: string;
};
exporttypeListTraceSpanAncestorsPathParameters={
traceID: string;
spanID: string;
};
exporttypeListTraceSpanAncestorsParams={
/**
* @description Keeps only the spans of one kind, judged on the whole trace, by start time unless stated. error_origins: error spans with no failing child. unmarked_failures: spans not marked as errors with a 4xx or 5xx response, a non-OK gRPC status or an exception event. time_spent: one span per same-name sibling group, by the group's own time. ai_usage: spans with gen_ai token or cost usage, with those attributes, by cost, else tokens. links: spans that link to other spans.
*/
view?: SpantypesSpanListViewDTO;
/**
* @type string
* @description Words, a filter expression, or both, for example: worldpay AND has_error = true. Words match the name, status message, attributes, resource attributes and events, ignoring case. Applied before view.
*/
query?: string;
/**
* @type array
* @description Attributes or resource attributes to add to each span, for example http.route or resource.k8s.pod.name. Default: service.name only.
*/
selectFields?: string[];
/**
* @type integer
* @description Number of spans to skip. Default: 0.
*/
offset?: number;
/**
* @type integer
* @description Number of spans to return. Default: 50. Maximum: 1000.
*/
limit?: number;
};
exporttypeListTraceSpanAncestors200={
data: SpantypesSpanListDTO;
/**
* @type string
*/
status: string;
};
exporttypeListTraceSpanChildrenPathParameters={
traceID: string;
spanID: string;
};
exporttypeListTraceSpanChildrenParams={
/**
* @description Keeps only the spans of one kind, judged on the whole trace, by start time unless stated. error_origins: error spans with no failing child. unmarked_failures: spans not marked as errors with a 4xx or 5xx response, a non-OK gRPC status or an exception event. time_spent: one span per same-name sibling group, by the group's own time. ai_usage: spans with gen_ai token or cost usage, with those attributes, by cost, else tokens. links: spans that link to other spans.
*/
view?: SpantypesSpanListViewDTO;
/**
* @type string
* @description Words, a filter expression, or both, for example: worldpay AND has_error = true. Words match the name, status message, attributes, resource attributes and events, ignoring case. Applied before view.
*/
query?: string;
/**
* @type array
* @description Attributes or resource attributes to add to each span, for example http.route or resource.k8s.pod.name. Default: service.name only.
*/
selectFields?: string[];
/**
* @type integer
* @description Number of spans to skip. Default: 0.
*/
offset?: number;
/**
* @type integer
* @description Number of spans to return. Default: 50. Maximum: 1000.
* @description Keeps only the spans of one kind, judged on the whole trace, by start time unless stated. error_origins: error spans with no failing child. unmarked_failures: spans not marked as errors with a 4xx or 5xx response, a non-OK gRPC status or an exception event. time_spent: one span per same-name sibling group, by the group's own time. ai_usage: spans with gen_ai token or cost usage, with those attributes, by cost, else tokens. links: spans that link to other spans.
*/
view?: SpantypesSpanListViewDTO;
/**
* @type string
* @description Words, a filter expression, or both, for example: worldpay AND has_error = true. Words match the name, status message, attributes, resource attributes and events, ignoring case. Applied before view.
*/
query?: string;
/**
* @type array
* @description Attributes or resource attributes to add to each span, for example http.route or resource.k8s.pod.name. Default: service.name only.
*/
selectFields?: string[];
/**
* @type integer
* @description Number of spans to skip. Default: 0.
*/
offset?: number;
/**
* @type integer
* @description Number of spans to return. Default: 50. Maximum: 1000.
*/
limit?: number;
};
exporttypeListTraceSpanDescendants200={
data: SpantypesSpanListDTO;
/**
* @type string
*/
status: string;
};
exporttypeGetTraceSummaryPathParameters={
traceID: string;
};
@@ -17129,7 +17626,7 @@ export type GetRuleHistoryFilterKeysParams = {
*/
signal?: TelemetrytypesSignalDTO;
/**
* @description The data source within the signal. Use meter for Cost Meter metrics; empty means the default source.
* @description The data source within the signal. Use audit for audit logs or meter for Cost Meter metrics; empty means the default source.
*/
source?: TelemetrytypesSourceDTO;
/**
@@ -17140,13 +17637,13 @@ export type GetRuleHistoryFilterKeysParams = {
/**
* @type integer
* @format int64
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups, audit lookups (fixed 30 day lookback) and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
*/
startUnixMilli?: number;
/**
* @type integer
* @format int64
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups, audit lookups (fixed 30 day lookback) and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
*/
endUnixMilli?: number;
/**
@@ -17191,7 +17688,7 @@ export type GetRuleHistoryFilterValuesParams = {
*/
signal?: TelemetrytypesSignalDTO;
/**
* @description The data source within the signal. Use meter for Cost Meter metrics; empty means the default source.
* @description The data source within the signal. Use audit for audit logs or meter for Cost Meter metrics; empty means the default source.
*/
source?: TelemetrytypesSourceDTO;
/**
@@ -17202,13 +17699,13 @@ export type GetRuleHistoryFilterValuesParams = {
/**
* @type integer
* @format int64
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
* @description Start of the lookup window in Unix milliseconds, rounded down to a 6 hour boundary. Ignored for key lookups, audit lookups (fixed 30 day lookback) and meter lookups; trace and log values apply it at calendar-day granularity; metric attribute values and relatedValues apply it. Omit for no lower bound.
*/
startUnixMilli?: number;
/**
* @type integer
* @format int64
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
* @description End of the lookup window in Unix milliseconds. Ignored for key lookups, trace and log value lookups, audit lookups (fixed 30 day lookback) and meter lookups; applied to metric attribute values and relatedValues. Omit for no upper bound.
*/
endUnixMilli?: number;
/**
@@ -17236,7 +17733,7 @@ export type GetRuleHistoryFilterValuesParams = {
searchText?: string;
/**
* @type string
* @description The key whose values to return, such as service.name. A context prefix such as resource.service.name sets fieldContext when it is empty.
* @description The key whose values to return, such as service.name. With fieldContext set, it is the stored name as is. Otherwise a context prefix such as resource.service.name sets the context and a type suffix such as service.name:string sets fieldDataType when that is empty; as in filter expressions, a prefixed name also matches a key stored under the full name, whose values come first: log.level returns values of a key named log.level, then of the log field level.
*/
name?: string;
/**
@@ -17398,7 +17895,7 @@ export type TestRule200 = {
exporttypeListSavedViewsParams={
/**
* @description Returns only the views of this explorer page: traces, logs, metrics, meter or ai_observability. Defaults to every source.
* @description Returns only the views of this explorer page: traces, logs, metrics, meter, ai_observability or audit. Defaults to every source.
* Returns the trace's time range, root span, span and error counts, and whether any spans are missing. AI traces also include token and cost totals.
* Returns the spans to look at, for a trace of any size: per-service totals and the first spans of each view of the span list. views names the lists to return; without it all of them are returned. Read more of a list from the span list with the view of the same name. The totals of the trace come from the trace summary.
* Returns a page of the spans of a trace, in tree order from the top: a span is followed by the spans below it. view keeps only the spans of one kind, query narrows them, and selectFields names the attributes to fill. Values are returned whole.
* Returns one span with every attribute, resource attribute and event. Values are returned whole. It returns only the stored span: its tree stats come with it in any span list, and the spans around it come from the children, descendants and ancestors routes.
* Returns a page of the spans above a span: the chain of parents from the span up to its root, the parent first, and nothing from other branches. The span itself is not included. It takes the same parameters as the span list. The list is empty for a root, and stops where a parent was never received.
* Returns a page of the direct children of a span, one level below it and nothing deeper, in start order. It takes the same parameters as the span list. The list is empty for a span without children.
* Returns a page of the spans below a span, at any depth, in tree order. It takes the same parameters as the span list, so view=error_origins returns the errors that started below the span.
* Returns the totals of a trace and no spans: its time range, root span, span and error counts, and whether any spans are missing. AI traces also include model and tool call counts, and token and cost totals. For the spans to look at, use the trace highlights.
* Returns the gen_ai spans of a trace, model calls, tool calls and agent spans, in timestamp order. The messages a span carries are decoded into formattedInput and formattedOutput, with formatterWarnings holding what the converter could not resolve; a span without messages has both empty. Pass nextCursor as after or prevCursor as before to page, or spanId to open the page around a span.
* Returns the gen_ai spans of a trace, LLM calls, tool calls and agent spans, in timestamp order. The messages a span carries are decoded into formattedInput and formattedOutput, with formatterWarnings holding what the converter could not resolve; a span without messages has both empty. Pass nextCursor as after or prevCursor as before to page, or spanId to open the page around a span.
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.