#### 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
#### Summary
> You can see the sbshot diff at:
https://pr-docs.viniciusl.com.br/signoz-v3-pr13087-1118
Closes https://github.com/SigNoz/uforge-pod/issues/6284
This PR moves the rest of the app onto the reworked SigNoz UI library
(0.4.0-rc.4) and the new design tokens. Inputs, selects, dialogs,
drawers, popovers, toasts and text now all come from the library, so a
later design change happens in one place instead of in overrides on each
page.
Pages should look and work as they do on main. If something looks
different and is not mentioned below, treat it as a bug.
#### What looks different
Text now uses Inter from the design tokens, so numbers and a few letters
look slightly different, and monospace text uses the system code font.
Truncated text shows its full value on hover. Error toasts stay on
screen until you dismiss them.
A few flows changed on purpose. Saving or renaming a view opens a dialog
instead of a small popover. The Kubernetes entity drawer has a
breadcrumb, so you can go back to the entity you came from.
#### How to review
The commits are grouped by area and named after the pod that owns it,
such as pulse-dashboards or events-traces, so each team can review only
its part. Shared components, the query builder and styles come first,
and the tests sit in the last three commits. Only the final commit
builds, because the library upgrade breaks every page at once.
On your pages, the things most likely to be off are field heights,
spacing, text that now wraps or truncates, and popups opened from inside
a drawer or dialog. Most pages have Storybook stories from #13493, which
this PR is stacked on.
#### What changed in the components
Each block below shows one component, with a before and after taken from
this PR.
<details>
<summary>Typography</summary>
Typography is now a single component. Instead of choosing between Text
and Title, you pick a variant (paragraph, label, uppercase or code), a
size and a weight. Capitals only come from the uppercase variant, and
"muted" is now "secondary". Text cut with an ellipsis shows the full
value in a tooltip.
```diff
- <Typography.Text className="total"> of {total}</Typography.Text>
+ <Typography variant="paragraph" size="base" weight="regular" color="inherit" as="span" textOverflow="wrap">
+ of {total}
+ </Typography>
```
</details>
<details>
<summary>Dialog and AlertDialog</summary>
Dialogs take a single close callback instead of an open-change handler,
and footers are split into a left and a right slot. Confirmations moved
from ConfirmDialog to AlertDialog. Library dialogs now sit above antd
modals.
```diff
- <ConfirmDialog
- onOpenChange={(next): void => {
- if (!next) {
- handleDiscardCancel();
- }
- }}
- confirmColor="danger"
+ <AlertDialog
+ color="danger"
```
</details>
<details>
<summary>Drawer</summary>
Drawers close the same way as dialogs. A drawer has to say whether it
blocks the page (a task) or sits beside it (an inspector), and how it
stacks over other drawers. A drawer can also show a breadcrumb trail,
which the Kubernetes entity drawer uses to step back.
```diff
- <DrawerWrapper
- onOpenChange={(isOpen): void => {
- if (!isOpen) {
- onClose();
- }
- }}
+ <Drawer
+ type="task"
+ stack="overlay"
+ closePosition="start"
+ trail={trail}
+ onTrailSelect={handleTrailSelect}
+ onClose={onClose}
```
</details>
<details>
<summary>Popover</summary>
Popovers take their trigger as a prop instead of being assembled from
parts. The content unmounts when the popover closes.
```diff
- <Popover>
- <PopoverTrigger asChild>{button}</PopoverTrigger>
- <PopoverContent align="end">{content}</PopoverContent>
- </Popover>
+ <Popover nativeButton side="bottom" align="end" trigger={button}>
+ {content}
+ </Popover>
```
</details>
<details>
<summary>Input</summary>
Inputs no longer take a container class name. Wrap them, or use the
width and size props. The test id and data attributes now sit on the
outer frame, and the input element gets the same id with a "-field"
suffix. Number inputs use Input.Number, which hands back a number or
null, so the string parsing at call sites is gone.
```diff
- <Input
- testId="panel-type-search"
- containerClassName={styles.search}
- />
+ <div className={styles.search}>
+ <Input testId="panel-type-search" />
+ </div>
```
</details>
<details>
<summary>Select and Combobox</summary>
SelectSimple and ComboboxSimple are now Select and Combobox. They size
with a width prop instead of a class name, and take a placeholder. The
roles picker moved from antd Select to Combobox.
```diff
- <SelectSimple
- className={styles.filtersBarSource}
+ <Select
+ width={160}
+ placeholder="Filter by source"
```
</details>
<details>
<summary>Toast</summary>
Toasts come from the library toast module. An error toast is now called
danger, and it needs an action because it stays until dismissed.
```diff
- toast.error('Failed to copy link');
+ toast.danger('Failed to copy link', { action: { label: 'Dismiss' } });
```
</details>
<details>
<summary>Callout</summary>
Callouts use color names (primary, danger, warning), take their text as
children and render links with Callout.Link.
```diff
- <Callout type="info" showIcon title="Store the key securely." />
+ <Callout color="primary" size="sm" icon={<SolidInfoCircle />}>
+ Store the key securely.
+ </Callout>
```
</details>
<details>
<summary>AlertStrip</summary>
The no-auth banner moved from our own persisted banner to the library
AlertStrip, which remembers when it was closed.
```diff
- <PersistedAnnouncementBanner type="warning" className={styles.banner}>
- <a href={docsLink} rel="noreferrer">
+ <AlertStrip.CloseablePersisted color="warning" side={bottomSlot ? 'bottom' : 'top'}>
+ <AlertStrip.Link href={docsLink}>
```
</details>
<details>
<summary>Resizable</summary>
Resizable takes its panes as an items array instead of panel and handle
parts, and saves the layout under a storage key.
```diff
- <ResizablePanelGroup id="panel-editor-v2">
- <ResizablePanel minSize="75%" maxSize="80%" defaultSize="80%">
+ <Resizable
+ orientation="horizontal"
+ storageKey="panel-editor-v2"
+ storage={layoutStorage}
+ items={[{ value: 'main', label: 'Preview and editor', minSize: '75%', maxSize: '80%' }]}
```
</details>
<details>
<summary>Breadcrumb</summary>
Breadcrumb takes an items array instead of list, item, link and
separator parts.
```diff
- <Breadcrumb>
- <BreadcrumbList>
- <BreadcrumbItem>
- <BreadcrumbLink icon={<LayoutGrid size={14} />} href={dashboardPageLink}>
+ <Breadcrumb
+ testId="dashboard-page-breadcrumb"
+ items={[
+ { title: 'Dashboard', icon: <LayoutGrid size={14} />, href: dashboardPageLink },
+ { title },
+ ]}
+ />
```
</details>
<details>
<summary>Kbd</summary>
Kbd takes the key name as a value, and named keys render as glyphs
(Escape shows ⎋).
```diff
- <Kbd>Esc</Kbd>
+ <Kbd value="Escape" testId="pie-tooltip-escape-key" />
```
</details>
<details>
<summary>Smaller changes</summary>
Tabs and Toaster no longer accept a class name, so the styles moved to a
wrapper. Avatar needs a name, which it uses for the initials. List
headers show their count in a Badge, with a Skeleton while the count
loads.
</details>
#### Patterns in the code
<details>
<summary>Details</summary>
Most of the diff is text styling. About 2,500 font declarations left the
SCSS files. They were replaced by Typography props or, where a
stylesheet still needs them, by the new text-style tokens described in
the CSS modules guide. The old font size, weight and line height tokens
no longer exist in design tokens 2.7.0, and the legacy card background
is now surface-2.
```diff
- font-size: var(--font-size-sm);
- font-weight: var(--font-weight-normal);
+ font-size: var(--paragraph-base-400-font-size);
```
Tests find inputs through the "-field" id. They pick combobox options by
typing in the search box and pressing Enter, since jsdom cannot click
the new options. The e2e drivers have shared helpers for inputs,
comboboxes and toasts, described in tests/e2e/AGENTS.md.
```diff
- await user.click(await screen.findByLabelText('Roles'));
- await user.click(await screen.findByTitle('signoz-editor'));
+ await user.click(await screen.findByTestId('member-roles-select'));
+ await user.type(
+ await screen.findByTestId('member-roles-select-search'),
+ `${managedRoles[1].name}{Enter}`,
+ );
```
</details>
#### New lint rules
Text style now belongs to Typography, and two rules keep it there. Both
warn for now, because about 2,700 font declarations remain in SCSS.
- signoz/no-text-css (oxlint) flags font and text properties in style
props, CSSProperties objects and styled-components.
- Stylelint flags the same properties in SCSS.
You can disable either rule where Typography cannot render the text,
such as canvas or chart labels. The disable must say why after "--", or
it fails as an error.
<details>
<summary>Example</summary>
```tsx
// oxlint-disable-next-line signoz/no-text-css -- canvas text, not DOM
ctx.font = '12px Inter';
```
```scss
/* stylelint-disable-next-line property-disallowed-list -- antd table header, no Typography slot */
font-weight: 500;
```
</details>
---------
Co-authored-by: Vinícius Lourenço <vinicius@signoz.io>
#### Description
This PR adds the stories we wrote while migrating to the new version of
`@signozhq/ui` (#13087), but running against the components we have on
main today.
I'm splitting them out so the screenshot diff of the migration has a
"before" for every story. Without this, the new stories only exist on
the migration branch and there is nothing to compare them with.
They cover the states the migration touches: open selects, dialogs,
drawers and popovers, more toast variants, the command palette, the
license and trial banners, the K8s drawer opened a few levels deep, SSO
attribute mapping and the query builder add-ons. A few existing plays
also moved into their `*.play.ts` files. No app code changes, only
stories and the mocks they need.
#### Screenshots / Screen Recordings
Every new story, in dark and light:
https://claude.ai/artifact/TeBTXRkB9puh7W6LnGXFQ8
#### Additional Information
#13087 sits on top of this one, so its diff only shows the migration.
---------
Co-authored-by: Manika Malhotra <manika@signoz.io>
#### Description
- `GET /api/v1/service_accounts` returns a page (`serviceAccounts`,
`total`, `reservedKeywords`) with `limit`, `offset`, `sort` and `order`.
- `query` is a SigNoz filter expression over `name`, `email`, `status`,
`created_at` and `updated_at`; a bare token matches name or email.
#### Issues Closed by this PR
Closes: https://github.com/SigNoz/keystone-pod/issues/221
---------
Co-authored-by: hardik-signoz <hardik.saini@signoz.io>
#### Description
- Switching resources under "Viewing · Resource" no longer clears the
filter. Clauses the new resource can filter by are kept and the rest are
dropped, the same rule the drawer already uses, so the quick filter
checkboxes stay in step.
- The drawer's locked filter shows every clause instead of the last one
plus a `+N` count, so the scope reads without hovering. The existing
"Infra monitoring/Drawer overview tab" story already renders this state.
- Switching resources no longer changes what a filter means. A filter
with an OR, or a NOT over a group, is not carried at all, because no
subset of its clauses means the same thing. A clause with a leading NOT
is left out and the rest are carried. Before, `a = 1 OR b = 2` arrived
as `a = 1 AND b = 2`, and `NOT a = 1` arrived as `a = 1`.
- Stacked on #13405, which fixes the clause cutting this relies on.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/535
#### Description
- The Kafka and Celery messaging queue pages load their graphs, tiles
and drawer tables with the v3 and v4 `query_range` APIs. The backend
plans to remove those APIs.
- The pages now load from v5 `query_range` and show the same data. The
Kafka group, topic and partition dropdowns read `/api/v1/fields/values`
instead of the v3 autocomplete.
- Chart clicks did nothing on the Kafka Consumer Lag graph, the Celery
state bars, the worker graphs and the Overview drawer graphs. The new
time series and bar panels dropped the page's own click handler. The
panels call it again when drilldown is off.
- The Drop Rate view is removed. It read the legacy `span/evaluation`
endpoint.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/157
#### Screenshots / Screen Recordings
Main vs this branch, diff view:
https://claude.ai/artifact/BpiYPvdSVXPAD7goQdfVhh
| Screen | On `main` | On this branch |
| --- | --- | --- |
| Kafka overview (3 stories) | Five view cards, including Drop Rate View
| Four view cards. Drop Rate View is gone. |
| Celery task (Default, Failing Tasks, Failed Tasks Only, No Flower
Metrics) | Error% by worker draws a single point on a 0–2000% axis |
Error% by worker draws one line per worker (30–80%) |
| Celery task, State Drawer (new story) | Not reachable. A chart click
does nothing on `main`. | A click on the All state graph opens the
drawer with the slowest tasks for that state |
- Each side is a static Storybook build, shot in dark and light. The
`main` side uses its own v3/v4 story mocks.
- 14 pairs changed and 20 are pixel-identical (Kafka Detail and the
queue Overview).
- The Error% difference comes partly from the mocks: on `main`, the
story's v4 mock answers the formula as a single point.
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156.
- Stories serve v5. A new `StateDrawer` play opens the Celery drawer
from a chart click. The Kafka detail state is already covered by the
story's `selected` arg.
**FAQ (v4/v3 → v5)**
**Celery traces queries carry `aggregations: [{ expression }]`**
v5 builds a traces aggregation only from the expression. Without it,
`aggregateOperator` is ignored and the query becomes `count()`.
**Celery queries order by `p99(duration_nano)`, not `#SIGNOZ_VALUE`**
`#SIGNOZ_VALUE` was a v4 alias for the value column, and v5 rejects it.
The order key has to name the aggregation expression. This affects the
latency tabs and the drawer tables.
**Grouped Celery queries filter on `<key> exists`**
_Where:_ Messaging Queues › Celery › All state graph and Task Latency
v4 dropped spans that lack the group-by key. v5 returns them as an extra
group with an empty label, which shows as a blank bar on All and an
extra line on Task Latency. API Monitoring got the same fix (`http_url
exists`).
**Kafka metrics graphs send no step**
_Where:_ Messaging Queues › Kafka › Metric view, on ranges over 5 hours
v5 clamps a metrics step to at least range/300, with a 60s floor. A
fixed 60s on a 1-week range shows "requesting aggregation interval 60
seconds…". Sending no step lets v5 pick one. Service details (#13617)
does the same.
**Celery formulas moved to `queryFormulas`**
_Where:_ Messaging Queues › Celery › Error% by worker; Messaging Queues
› Overview › row drawer › Error %
v4 took them inside `builderQueries`. The v5 payload builder reads
formulas only from `queryFormulas`, so in the old place they went out as
metrics builder queries.
**State tiles show bigger numbers**
_Where:_ Messaging Queues › Celery › All Tasks / Failed / Retry /
Successful; Messaging Queues › Overview › row drawer tiles
v4 value panels showed one bucket of a time series (the last minute). v5
scalar requests aggregate the whole window. The numbers match ClickHouse
for the selected range.
**Graphs show the most recent data**
_Where:_ Messaging Queues › Celery › the last bar or point of each graph
v4 traces queries rounded the end down to a whole step, which dropped up
to one step of recent data. v5 keeps the partial bucket.
**Kafka group/topic/partition dropdowns call `/fields/values`**
_Where:_ Messaging Queues › Kafka › Consumer Lag view › group / topic /
partition selects
They used the v3 autocomplete endpoint. `/fields/values` takes the
metric name and filters `searchText` on the server.
**Chart clicks call the page's handler again**
_Where:_ Messaging Queues › Kafka › Consumer Lag graph; Messaging Queues
› Celery › state bars and worker graphs; Messaging Queues › Overview ›
row drawer graphs
When the panels moved to the new time series and bar panels, a page's
own `onClickHandler` stopped being called with drilldown off. The Kafka
lag graph, the Celery state bars and the Overview drawer graphs ignored
clicks. The handler is called again from `usePanelContextMenu`, so API
Monitoring endpoint graphs get their View Traces click back too. A click
outside a series no longer opens a Celery drawer.
**Drop Rate removed**
_Where:_ Messaging Queues › Kafka › view cards and the view selector
Agreed with Pandey to remove it rather than port it. It read the legacy
`span/evaluation` endpoint, which the backend serves only behind the
experimental `kafka_span_eval` flag. The flag is off by default, so the
view returned an error unless `KAFKA_SPAN_EVAL=true` was set. Old
`?mqServiceView=dropRate` links open Consumer Lag.
**Warning icon on empty metric graphs**
_Where:_ Messaging Queues › Kafka › Metric view
v5 reports a metric that was never ingested, and the graph shows that.
Issues found on `main` while testing are filed in
https://github.com/SigNoz/events-pod/issues/280. The ones this PR fixes
are ticked there.
#### Description
- Opening a pod or container from a list filtered by a quick filter
broke the drawer's overview tab. A list filter like `k8s.cluster.name in
['cluster-a']` arrived in the drawer as `k8s.cluster.name in
['cluster-a'`, which does not parse.
- Each carried clause is now cut from its key to the end of its value,
which for `in [...]` is the closing bracket.
- The same cut also dropped the key from a `NOT IN` clause, and pulled
every dropped clause in front of a kept one into the result. Both are
fixed and covered in `relations.test.ts`.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/756
<!--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
A rule's alerts carry the lowercased name of the threshold that fired as
their severity; the rule's own `severity` label is a plain label since
#13612. The v3 list row's new `thresholds` field reports exactly that:
each distinct threshold name, ranked critical, error, warning, info,
then the rest.
<!--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/653
---------
Co-authored-by: Ashu Ghildiyal <ashu.ghildiyal@signoz.io>
#### Description
- `ModelMatchesAnyRule` and pattern validation now call the collector's
`pkg/llmpricing` (SigNoz/signoz-otel-collector#973) instead of a copied
regex, so a pattern matches the model exactly or followed by snapshot
suffixes (`-20260921`, `-latest`, `-v2:0`, `@20260921`), and a trailing
`*` matches
any suffix. Priced snapshots no longer show up as unmapped.
- Validation rejects a non-trailing `*`, surrounding whitespace and
control characters; other glob characters are literal in the collector
now, so rejecting them was wrong.
- `PatternEditor` shows the stored pattern instead of appending a
cosmetic `*`, and the help text describes the actual matching.
- Companion to SigNoz/zeus#606 for nerve-pod#517.
#### Issues closed by this PR
Closes https://github.com/SigNoz/nerve-pod/issues/517
#### Screenshots
Before:
<img width="541" height="531" alt="image"
src="https://github.com/user-attachments/assets/2a0cde21-ab05-40c2-be25-2a759ac01426"
/>
After:
<img width="541" height="531" alt="image"
src="https://github.com/user-attachments/assets/a50d8a62-1096-4c89-9871-019d9f6cb26d"
/>
#### Additional Information
- `signoz-otel-collector` is pinned to `v0.144.17-rc.1`, the first tag
with `pkg/llmpricing`; bump to `v0.144.17` once it's released.
- No story change: the `ModelCostDrawer` story already renders the
pattern chips.
- Rules saved with glob syntax keep working as literal patterns,
matching the collector.
---------
Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
#### Description
- Removes `/api/v1/explorer/views` (list/create/get/update/delete) along
with its legacy request/response converters and `v3.SavedView`.
- Folds the `*V2` handlers into plain `Create/Get/Update/List`;
`/api/v2/saved_views` is unchanged (OpenAPI spec has no diff).
- The UI and the signoz-mcp-server already use v2. Nightswatch is still
on older version which uses v1 APIs
Closes https://github.com/SigNoz/signoz/issues/13651
#### Additional Information
Breaking: external API clients still calling `/api/v1/explorer/views`
must switch to `/api/v2/saved_views`.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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
- adding audit value for source enum and generating openapi spec
<!--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/214
#### Description
- Adds a page story for the Trace Details **Thread** tab, mocking `GET
/api/v1/traces/{id}/thread` with controls for scenario (tool-calling
conversation, every part type, roles and finish reasons, raw attributes
only, no AI spans), Formatted / JSON view, opened-on span and paging.
- Covers loading, next page pending, span not found (404), and a span
dropped for having no messages.
- Adds `SpanMessages` stories for its edge cases: empty state, role-less
output, empty parts, and large JSON behind Show more.
- Moves the existing story to `Trace Details/Overview` so Thread sits
beside it; Thread reuses its mocks for the header and span panel.
#### Issues closed by this PR
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=308646781&issue=SigNoz%7Cnerve-pod%7C646
#### Screenshots / Screen Recordings
https://github.com/user-attachments/assets/69a26f1f-1c20-4b74-872e-0e5e1a5af3c4
#### Additional Information
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
Stacked on #13598; merge after it.
- Pages/Noz stories for the UI #13598 changed: `Thinking`,
`StreamingSteps`, `DraftWhileStreaming`, `ScrolledUp`, `SingleStep`,
`PickedContexts`, `SentContexts`.
- The thread fixture gains picked contexts on the opening question, a
one-step answer and a `thinking` agent state; the default thread shows
the first two.
- `AddContext`'s play no longer waits for an idle agent, since the input
stays editable while Noz replies.
#### Issues closed by this PR
https://github.com/orgs/SigNoz/projects/59/views/18?pane=issue&itemId=308646781&issue=SigNoz%7Cnerve-pod%7C646
#### Screenshots / Screen Recordings
#### Additional Information
- `Default`, `AddContext` and `PickedContexts` sometimes open at the
thread's top: AppLayout's deferred `OverlayScrollbars` re-parents the
page after the thread has scrolled to its end, resetting it without a
scroll event. Pre-existing; the `ScrolledUp` play allows for it.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- The resource attribute filter on the Services list, Service details
and Service Map loads its suggestions from the v3 autocomplete API. The
backend plans to remove that API.
- The filter now reads `/api/v1/fields/keys` and `/api/v1/fields/values`
for the `signoz_calls_total` span metric. The key list, the URL
parameter and the chips are unchanged.
- The v3 client, its types and its story builders are removed.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/151
#### Screenshots
https://github.com/user-attachments/assets/39f1f9bb-6f96-4319-bb29-39678ebbf25ahttps://claude.ai/artifact/Lxma5VmYjdfywyyyv4gY7Z?sk=vynxojQhQ6bzovWbhPFWpQ
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156.
- Stories serve `/fields/*`. The existing Service Map plays already open
the attribute search, the values, the Environment options and the empty
state, so no new story is needed.
- Tested on a local backend with span metrics from two seeded
environments. The key list matches main exactly, in traces mode and in
metrics mode.
**FAQ (v3 → v5)**
**Value suggestions are not limited to the selected time range**
_Where:_ Services, Service details, Service Map › Environment dropdown
and attribute values
v3 returned values reported since 00:00 UTC today. The v5 call sends no
time range, so it also returns older values that the metadata table
still holds. The QB v5 search bar sends no time range either. Metric
keys are not filtered by time on the backend, so the key list is
unchanged.
<!--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 #13597.
- While Noz works, its steps fold into one row naming the running step,
with a shimmer; it opens to the steps as they happen, and once done
reads "Worked through N steps".
- The @ context picker and context pills follow the design; a sent
message shows the contexts picked for it.
- Reply links render as pills, tables scroll sideways in a striped
panel, and text uses the design's type.
- Suggested actions stack as chips; approval and clarification cards
share one layout.
- The loading view mirrors the thread, at the input's width on the full
page.
- Sidebar chat titles use the design's neutral grey (vanilla-400) in
dark mode; light mode keeps `--l2-foreground`, since vanilla-400 doesn't
follow the theme.
- Selected text on the Noz page and in the chat uses the input's accent
highlight, from one shared `_selection.scss`.
- The thread no longer scrolls on its own while Noz replies; only a send
brings the end into view. A "↓ Latest" pill shows when there's more
below and shimmers while the reply streams.
- Only the streaming row re-renders as a reply arrives; earlier messages
are memoized.
- The input stays editable while Noz replies or waits on an approval or
question; only sending is blocked. Snake and thread loading still lock
it.
<!--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
https://github.com/user-attachments/assets/2452ecb8-3de2-4c26-a1f2-9e2258190867
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- Pages/Noz Default, Streaming, Awaiting Approval, Awaiting
Clarification, Loading Thread and Add Context reach the changed states;
Latest shows on scrolling up in Default.
- The thread renders 1500px above the view (`increaseViewportBy`) so
Virtuoso measures rows before they scroll in; without it, scrolling up
jumps as it corrects estimated heights.
- Departs from Figma: "Worked through N steps" instead of "Worked for N
seconds", since step timings aren't persisted; the picker's "Active
Resource" row waits on a defined action.
---------
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 #13596.
- A minimize button on the full page reopens the floating panel on the
page Noz was expanded from, or on home after a deep link.
- Full-page replies render as plain text instead of a bubble; errors
keep their callout, and the activity line and reply actions follow the
design (in the panel too).
- The conversation list follows the design: search line, full-width "New
conversation", uppercase group labels, and rows with a status dot and
short time.
- Conversation rows are flat, with a restyled ⋮ menu.
<!--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
https://github.com/user-attachments/assets/e05be601-b7a6-4438-85ff-5e38c51b6520
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- Covered by the existing Pages/Noz Default and Streaming stories and
Bottom Strip NozPanel; `AIAssistantPage.test` covers minimizing back
after switching chats.
- The dot only marks a chat Noz is still replying in; the design's other
dot colours need a definition.
- The list keeps its date groups and replies keep their timestamp, where
the design differs.
---------
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 #13552.
- New-chat screen per the design: "Noz · BETA" intro and suggestion
pills, with fixed-size placeholders while they load.
- An aurora dot grid above it that glows under the cursor and turns into
Snake on the Konami code; it follows the light and dark theme. (YES WE
ARE ADDING AN SNAKE GAME 🐍 )
- On first send, the new chat fades out and the first message floats up.
- New user bubble style and an L2 panel surface.
- Full-page layout: a faint pane, a 768px input over its edge and a
672px message column.
<!--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
https://github.com/user-attachments/assets/203121b7-e0d9-41ce-98ad-1ecea72690ea
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- Covered by the existing Pages/Noz NewConversation and Default stories
and Bottom Strip NozPanel; Snake and the send transition are transient,
so no story holds them.
- The "New chat" header and Skills button are follow-ups.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- An alert with re-notify off was notified again every 120 hours while
it stayed firing.
- Re-notify off is a repeat interval of 8760h, and alertmanager keeps
the notification log entry for 2x the repeat interval, capped by the
nflog retention. The retention was 120h, so the entry was dropped and
the alert looked new.
- The default nflog retention is now 2x the re-notify off interval,
derived from a shared `NoRenotifyInterval` constant so the two cannot
drift.
- Rules with a normal re-notify interval are not affected: their entries
still expire at 2x their own interval.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/751
#### Additional Information
- Entries written before the upgrade keep their 120h expiry, so an alert
already firing at upgrade time is notified one more time.
- Entries of re-notify off rules now stay for up to 2 years, one small
entry per alert group and receiver.
- Deployments that set `alertmanager.signoz.nflog.retention` explicitly
keep their value.
#### Description
- Switches every screen from antd's Flex, Row, Col, Space, Layout, Empty
and List to our own versions from #13542.
- Stylesheets that targeted antd's internal classes (like `.ant-row`)
now use classes of their own.
- Adds Storybook stories for the app layout, the changelog modal and the
Services list column filter.
#### Screenshots / Screen Recordings
Before and after, dark and light:
https://claude.ai/artifact/X4c8YXVYe1kgdSpAnT1eVv
- No layout changes. 203 of 250 screenshots are identical.
- 17 differ in colour only: dark mode links and the light onboarding
background now use design system colours.
- The rest are capture noise (timestamps, scroll position) or new
stories.
#### Additional Information
- Merge #13542 first; this PR targets its branch.
<!--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 #13549. One commit per change:
- Restyles the chat input to the new design: a card on the full page,
flush with the panel's edges inside the panel. Add Context becomes an
`@` button beside send; send turns primary once there is something to
send. The placeholder reads "Ask Noz…".
- Removes voice input: the mic button, push-to-talk, the speech hook and
its two analytics events.
- The textarea draws its own blinking robin-500 caret, with a short
trail on arrow-key jumps, and a robin-500 selection.
- While Noz replies, a gradient sweeps the input's top edge, timed from
the stream's start so a remount does not restart it.
- In an empty conversation, Noz climbs over the input's top-right corner
and his eye follows the cursor.
<!--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, dark + light):
https://claude.ai/artifact/3h4e3kqX7i67DEwN4HSE4qhttps://github.com/user-attachments/assets/352121ec-c7c9-4d5f-a869-7511dfa1995dhttps://github.com/user-attachments/assets/2e6d0c40-4796-4ad6-8763-3cf6cbbadabfhttps://github.com/user-attachments/assets/0e2db3a8-a75b-49a5-adc2-cfc41c670a4f
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- Skills, queueing, steering and the new context-chip style are
follow-ups.
---------
Co-authored-by: Gaurav Tewari <tewarig@users.noreply.github.com>
#### Description
- Adds our own versions of seven antd layout components: Flex, Row, Col,
Space, Layout, Empty and List. They lay out exactly like antd's, so we
can move off antd without layout changes.
- Colours and fonts come from our design system tokens, so they switch
with light and dark mode and match the rest of the app.
- Each component has a Storybook page showing antd's version and ours
side by side, with an automatic check that sizes, spacing and positions
match.
- Checked in light and dark: every story lays out the same as antd.
#### Additional Information
- This PR only adds the components. Switching existing screens over to
them comes in a follow-up PR.
- Colours intentionally differ slightly from antd, because they now
follow the design system. Links use the same colour as the design
system's Typography.Link: identical to antd in light mode, slightly
brighter in dark mode.
- A few antd features nobody in the app uses were left out, for example
Layout's sidebar (`Sider`) and List's pagination.
#### Description
- The component migration (#13087) uses sbshot diffs of the stories as
its regression check. Several events-pod states that render
`@signozhq/ui` had no story.
- This PR adds stories for the logs, traces and shared surfaces. The
commits are split by area: logs explorer, Live Tail, Pipelines, trace
details, traces explorer and funnels, query builder, quick filters and
saved views.
- New controls reach states the old mocks could not:
- Logs: "Linked filter" and "Infra resource".
- Trace details: "Analytics".
- Saved views: "Writes" and "View queries".
- Some mocks now match the backend more closely:
- When nothing matches, the logs frequency chart and the table count
show no data.
- Trace details highlights only the failing spans.
- The exception event has a stacktrace.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/279
#### Screenshots / Screen Recordings
Every new story, in dark and light:
https://claude.ai/artifact/BMo2zjbqdwmddK7Hsmw1uZ
`FormatMenuOpen` (logs explorer) and `AddSeverityParserProcessor`
(pipelines) are not in it, because #13493 adds the same two stories and
[its shots](https://claude.ai/artifact/TeBTXRkB9puh7W6LnGXFQ8) cover
them.
#### Additional Information
- Some stories match #13493 on purpose: `FormatMenuOpen`,
`AddSeverityParserProcessor`, and the span drawer and funnel helpers.
The second PR to merge drops its copy.
- The AI thread states need #13493's Tab control and thread mock. Those
states go in after #13493 merges.
- `Tooltips`, `TooltipsInFilterBar` and the Events tab screenshots
change. The highlight mock and the stacktrace cause this.
- Some older Saved Views plays stay in the mocks module to limit
conflicts with #13087. They move to the play file after #13087 merges.
- These paths are dead code and have no story: the OptionsMenu fields,
`LogsPanelTable`, the ResizeTable Date and Time, the waterfall Error and
NoData, and the funnel details error branch.
- test-storybook passes 195 of 195 stories in the touched areas. cc.
@H4ad
#### Description
- With span metrics on, the services list and the home services widget
load with the v4 `query_range` API. The backend plans to remove the v4
APIs.
- On `main`, both show 0.00 for every P99, error rate and ops/s. The
reader looks for `newResult`, which v4 table responses do not carry.
- Both now load from v5 `query_range` and read the v5 table, so they
show real values.
- Span metrics store latency in ms, but three places treated it as ns:
- the home P99 column read 0.00;
- the services list header said "(in ns)";
- the service details latency axis showed µs.
All three now show ms in span-metrics mode. Traces mode does not change.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/148
#### Screenshots / Screen Recordings
<img width="3400" height="1582" alt="pages-home--default--dark"
src="https://github.com/user-attachments/assets/5da53065-b470-4064-8769-5c6fc02e7b60"
/>
<img width="3400" height="1364"
alt="pages-services-detail--span-metrics--dark"
src="https://github.com/user-attachments/assets/3d3bd054-fb74-4973-8c06-b7ecb0f9ff72"
/>
<img width="3400" height="1364"
alt="pages-services-list--span-metrics--dark"
src="https://github.com/user-attachments/assets/aa7f72f2-a41a-4865-afa6-4863bcf2a258"
/>
https://claude.ai/artifact/EKYK1oeQfy3RsCw7fDHhoh
(feat/service-details-v5 vs this branch)
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156. This PR
stacks on #13617.
- #3196 added span metrics to screens built for traces, which read
`duration_nano` in ns. Those screens kept the ns unit for span metrics,
but `signoz_latency` is stored in ms. Nobody saw it because the list and
home showed 0.00.
- Span-metrics P99 and traces P99 differ for the same service. Span
metrics estimate p99 from histogram buckets for each step and average
the steps. Traces take the exact p99 over the spans. The unit is the
same.
- The services list query now sends no step, so v5 picks it, like the
service details metrics queries.
- A failed refetch now shows one row for the service. Before, the
service showed twice: zeros and the old values.
- Follow-up: an operation name that starts with `$` (for example
`$connect`) breaks that service's row on v5. The shared filter converter
treats the whole list as a dashboard variable. Service details has the
same issue. A fix follows in its own PR.
- These are the same on `main` and stay out of this PR:
- The resource attribute filter has no effect on the span-metrics
services list.
- The home widget's time picker changes only the operations window. The
metric queries use the global time.
- The services list row link drops the time range.
- Stories: the Home story's Services source control and the Services
Detail SpanMetrics story already reach the changed states. Both story
mocks now serve v5 and send P99 in ms.
- I tested it on a local backend with span metrics. The home widget and
the services list show the same values for the same window.
#### Description
- The service details page loads its graphs and the span-metrics key
operations table with the v4 `query_range` API. The backend plans to
remove the v4 APIs.
- The graphs and the span-metrics key operations table now load from v5
`query_range` and show the same data. The queries set their v5
aggregations explicitly, so v5 does not fall back to the default avg,
sum or `count()`.
- On v5, the Apdex graph drew two wrong lines. v5 treats
`signoz_latency.bucket` as a histogram, so B and C keep their `le`
label. The formula cannot join series with different `le` values. B and
C now count the requests at or below the threshold with
`comparisonSpaceAggregationParam`.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/150
#### Screenshots / Screen Recordings
https://claude.ai/artifact/KeUB5YZafsDGCSf6uPZMME (main vs this branch,
diff view)
Not covered:
- Services list and Home render `ServiceMetricsQuery`, which this branch
touches. That query stays on v4 and sends the same step as before, so it
has no visual change. No shots were taken for them.
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156.
- The backend team confirmed that the `count` aggregation is meant for
the Apdex query:
https://signoz-team.slack.com/archives/C089D1B5516/p1794900404107019
- In span-metrics mode, the key operations table on `main` shows No
data. For a v4 table panel, `GetMetricQueryRange` returns the response
without `newResult`, and the table reads only `newResult`. The table now
reads the v5 result, so it shows its rows.
- Formula panels show No Data instead of a flat 0 line when the service
has no calls of that kind. This affects DB and external avg duration and
error %. v4 returned a series of zeros for empty inputs.
- The traces-mode key operations table stays on
`/v2/service/top_operations` and `/v2/service/entry_point_operations`,
as the ticket says.
- Metrics queries now send no step, so v5 picks it. This removes the
step warning at ranges of 1 day and more. Traces queries keep the card
step. The services list is still on v4 and keeps its step until
https://github.com/SigNoz/events-pod/issues/148.
- Known: on the metrics cards, View in Logs and View in Traces open a
60s window at ranges over about 5 hours. The shared
`usePanelContextMenu` hook uses 60s when the request has no step. This
already happens on any v5 panel without a step. A fix in the hook
follows in its own PR.
- The calls go through the existing `useGetQueryRange` wrapper, like the
other v5 migrations.
- Stories: the service details story serves v5 `query_range`. A new
Source control and a Span Metrics story show span-metrics mode.
#### Description
- `licensing.GetActive` now reads the org's active license from the
shared cache (`cache.Cache`, 5 minute TTL) instead of querying the
`license` table on every call. Every audited request in the otlphttp,
kafka and file auditors calls it, as do authz and gateway checks.
- "No active license" is cached too, as most self-hosted enterprise
installs run without a license. Store and parse errors are never cached.
- A cached license that has expired is reloaded from the store on read.
- `Activate`, `Delete` and both write paths of `Refresh` clear the org's
entry after a successful write.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#3
#### Additional Information
- Any new code that writes the `license` table must clear cache entry,
otherwise the change is served for up to 5 minute.
- A request that read the old license before a `Refresh` write can put
it back into the cache after the delete. The TTL bounds this to 1
minute, which is why the TTL is not 0.
#### Description
- An unparseable query on the alert rules list put the server message
under the search box in `--danger-foreground`, which is white: invisible
in light theme. The list body only said "No matching alert rules".
- The list now shows the dashboards list's Invalid query state: the
cleaned-up server message and Contact Support, in place of the list.
- That state moved to `components/ListFilter/InvalidQueryState`, shared
by both lists. `FilterZone` loses its `error` prop, which nothing else
used.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#745
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/6NUY2jcvjyfzLPEbugYPVt),
merge-base vs branch, dark and light: `Pages/Alerts/Rules/Invalid Query`
changed; `Pages/Dashboards/List/Invalid Query` pixel-identical.
#### Additional Information
Storybook already covers both states (`Invalid Query` on each page);
only the alert story's description changed.
#### Description
- Dashboard settings get a "Default time range" select on the Overview
tab, saved to `spec.duration`. Picking "Default (Last 30 minutes)"
clears it.
- When a viewer opens a dashboard with no time range in the URL and no
saved choice for that dashboard, the URL gets `relativeTime=<duration>`
before the time picker and panels mount. A time in the URL or a saved
choice still wins.
- When the default changes while a viewer is still on the old one, they
move to the new one. A viewer who picked a time keeps it.
- The JSON editor and JSON import reject a `spec.duration` that is not a
whole number of minutes above zero (`1s`, `90s`, `0m`), since the time
picker has no seconds. The editor footer names the line of an invalid
duration or image and shows the full error on hover.
- A value set through the API can still carry seconds. It opens rounded
up to whole minutes: `15s` opens as `1m`, `1h30m` as `90m`. An empty or
zero duration is ignored, and the picker behaves as before: the viewer's
saved choice, else 30 minutes.
- Settings show a stored value that is not one of the options with how
it opens, e.g. "Last 1s (opens as 1m)" or "0m (not applied)".
- The API description of `spec.duration` now says how the UI applies it.
It said "Stored, but not applied by the UI".
- The Prometheus duration parser behind Jira reopen durations moves to
`utils/prometheusDuration.ts`, shared with the dashboard code. Units
must now come largest first and each only once, as the API requires, so
`30m1h` is rejected in the JSON editor, on import, and in the Jira form.
- Carries the frontend part of
[#12861](https://github.com/SigNoz/signoz/pull/12861), moved onto the
`lib/router` facade. Its backend validation is left out: `spec.duration`
is already checked when the spec is decoded.
- The dashboard stories get a "Default time range" control and four new
states: the settings select open, a stored value off the list, the
dashboard opening on its default, and the JSON editor rejecting `1s`.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/695
Closes https://github.com/SigNoz/signoz/issues/12860
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/5mSCBVGEirWfkiC29ZbnEo) against
the merge-base, dark and light: 38 shots, 8 new, 15 changed, 15
identical. `default-time-range-card` is the new card on the settings
Overview tab (12), `new-stories` the four new states (8), and `noise` a
focus ring left on a clicked tab or button in the before shots (3).
#### Description
- The hotkeys handler threw `t.closest is not a function` when a script
dispatched `keydown` on `document` itself. The `Document` node has no
`closest`.
- The handler now ignores events whose target is not an `Element`. Real
key presses always target an element, so shortcuts work the same.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/179
#### Description
- With no alert rules, the empty state sat in a `min-height: 0` flex
column with no overflow, so "Or get started with these sample alerts"
and its cards were clipped below the fold with no way to scroll to them.
- The empty state is now its own scroll container; `margin: auto` keeps
it centered when it fits and top-aligned when it doesn't.
- Only the empty state's stylesheet changes; the rule list is
unaffected.
#### Issues closed by this PR
ClosesSigNoz/pulse-pod#744
#### Screenshots / Screen Recordings
[Visual diff](https://claude.ai/artifact/Y3cH28AULH1vvj62uNebgP) of
`Pages/Alerts/Rules/No Rules`, merge-base vs branch, dark and light: 2
changed, 0 new.
#### Additional Information
Storybook already covers this state with `Pages/Alerts/Rules/No Rules`;
no story edit needed.
#### Description
- AI queries get their own slot (`Query.builder_ai_query`), like
ClickHouse and PromQL.
- Composites from the API map AI queries into it; builder-only checks
accept AI queries.
- The provider and V2 editor edit and render the active slot.
- Nothing changes on the wire: AI still goes out as `builder` with
`builder_ai_query` envelopes.
#### Additional Information
- 2/4, stacked on #13483.
Closes https://github.com/SigNoz/pulse-pod/issues/582
#### Description
- Adds Storybook stories for the top list panel: default, rank and
share, thresholds, the share-of-p99 warning, no data, and the editor's
Appearance section. Their plays check rows, rank and share columns,
threshold colours and the data warning.
- Drilling into an `(empty)` top list row now filters the missing group
as `NOT EXISTS`. Before, the null value was dropped and the explorer
showed every record (Greptile P1 on #13084).
#### Screenshots / Screen Recordings
Visual diff against the merge-base, dark and light:
https://claude.ai/artifact/QqtPhnEJQsksa3reCWV12d
401 pairs identical, 12 new (top list stories), 16 changed (Top List
card in the panel picker), 43 unrelated movers (clock tick, focus rings,
toast fades).
#### Additional Information
- Stacked on #13084.
- The pie and table panels drop null group values the same way; left for
a follow-up.
#### Description
- Panel capabilities and definitions key on `EQueryType` instead of a
separate `QueryMode`.
- No behavior change.
#### Additional Information
- 1/4 of a stack splitting #13222.
## Description
- `/api/v1/ai_observability/fields/keys` returned the `trace.`
aggregates as `float64`, unlike every other numeric key, so
`fieldDataType=number` dropped them.
- Aggregates are now declared `number`, and
`FieldKeySelector.MatchesKey` treats `number`/`int64`/`float64` as one
family. The static-fields matcher in `telemetrymetadata` now reuses it
instead of keeping its
own copy.
- Frontend default AI trace columns switch to `number` so their column
ids still match the keys endpoint. Otherwise the field selector offers
them again as not added.
## Issues closed by this PR
ClosesSigNoz/nerve-pod#639
## Additional Information
Concerns
* If the user have removed one of these columns in select fields, it
will appear again, user has to remove it once more.
* Since saved view is not released so not a problem if we merge this
before that goes out.
#### Description
- Raise `tokenizer.opaque.token.max_per_user` default from 5 to 20.
- MCP clients now authenticate through regular SigNoz sessions, so a
user with a few browsers and MCP clients exceeded 5 and had their oldest
session silently evicted.
- Bump `lastObservedAt` cache expected entries to match (1000 users ×
20); `MaxCost` already fits ~21.8k entries.
Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
#### Description
- The first ruler test of a session can fail: its rule fires before the
new org's alertmanager is registered (the next 5s sync), `PutAlerts`
fails silently and the ruler only resends after 1m, past the test's 30s
wait.
- `create_webhook_notification_channel` now waits for the org
alertmanager with `wait_for_alertmanager_sync`, as the alertmanager
suite already does.
#### Additional Information
- Seen in
https://github.com/SigNoz/signoz/actions/runs/44092243746/job/134070088185
(`test_threshold_above_at_least_once`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
#### Description
- Adds `signoz/TopListPanel`: ranks the top N groups by one value as
horizontal bars. Spec mirrors `NumberPanelSpec` (visualization,
formatting, comparison thresholds) plus `appearance` (rank, share, bar
color).
- Allowed query kinds: builder, composite, formula, trace operator and
ClickHouse SQL. PromQL is rejected, including inside a composite.
- Frontend panel and regenerated Orval types follow in #13086.
- Artifact:
https://claude.ai/artifact/QqtPhnEJQsksa3reCWV12d?sk=S0XuyygvJdC1QYsz7grKvA
---------
Co-authored-by: Naman Verma <naman.verma@signoz.io>
#### Description
- add a resource def to `PUT /api/v1/service_accounts/me`, taking the
service account id from the caller's claims
- why? so the auditor records a service account renaming itself; it
wrote no audit event before
- a self update and an admin update of the same account record the same
resource id
#### Issues closed by this PR
contributes to https://github.com/SigNoz/keystone-pod/issues/7
#### Description
- OverlayScrollbars animates its scrollbars with `ScrollTimeline`, and
those animations never finish. Storybook waits up to 5s for animations
after every story, so each story with a scroll pane took 5s longer to
capture. `preview-head.html` now removes `ScrollTimeline`, and
OverlayScrollbars falls back to script.
- The `sbshot-visual-diff` skill now says to capture from `pnpm
storybook:build` and to turn off a11y checks during capture. Together
the dev server and the checks added 7 to 12s per story.
#### Additional Information
- CI time does not change: the test runner already skips the animation
wait.
<!--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
A rule label named threshold.name or severity replaced the value the
evaluator stamped. Rule Labels aren't supposed to be treated in a
special way like this.
<!--Reference issues using `Closes #issue-number` to enable automatic
closure on merge. -->
#### Issues closed by this PR
Part of https://github.com/SigNoz/pulse-pod/issues/653
#### Description
- Adds `members.spec.ts` TC-04 to TC-07, each running as a member
holding only a custom role:
- TC-04: `list:user` without `create:user`, invite button denied
- TC-05: no `list:user`, list shows "not authorized" and search is
denied
- TC-06: invited member without `factor-password:list`, "Invite Link
Unavailable"
- TC-07: self edit, adds then removes a role (needs `attach` and
`detach` on user and role)
- Drivers: `guestSettings` fixture (settings pages on the signed-in
guest page), `createGrantedUser` seed, members locators, `addRole` and
`removeRole`.
- Unit, story and integration tests already cover the rest of Users FGA,
see the plan on the issue.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#212
#### Additional Information
- Each spec was checked by granting the missing permission and
confirming it fails.
- Run locally against hosted staging backend with the local frontend
(`--no-deps`). Not run on the pytest bootstrap stack.
<!--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 resource defs to the three `/api/v1/org/preferences` routes so
org preference updates emit audit events.
- Moves them from `AdminAccess` to `CheckResources`, scoped to
`org-preference:list`, `org-preference:read` and
`org-preference:update`. Admin keeps sole access.
- Migration 150 backfills the admin `org-preference` tuples for orgs
created before the grant existed. The registry and stored roles already
carry the grant, so it writes tuples only.
- The preference name is recorded as the resource ID with a wildcard
selector, since names are not UUIDs.
<!--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/10
contributes to https://github.com/SigNoz/keystone-pod/issues/43
#### Description
- Drop Sentry events whose throwing frame is `<anonymous>` (code loaded
without a script URL, such as extension or automation scripts).
- The existing `hasNoAppFrames` filter missed them: Sentry's bundled
`setTimeout` wrapper counts as an app frame.
- Matching the top frame instead of the error message keeps real bugs
reportable.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#218
#### Description
- New `fileauditor` suite: starts SigNoz with the file auditor and reads
`/tmp/audit.log` from the container.
- One test per audited verb (create, update, delete, attach, detach),
plus a failed request that writes a failure event.
#### Description
Clears every high finding from `pnpm audit` in the frontend (zod,
follow-redirects, markdown-it, joi) and most of the moderate and low
ones.
- Bumped axios, zod and i18next-http-backend directly.
- Raised or added override floors for fast-uri, joi, markdown-it, moment
and uuid. The uuid floor moves `@storybook/test-runner` from uuid 8 to
11, which still exports the `v4` it imports.
Left alone on purpose: react-router (the fix needs React 19), glob and
minimatch (the fix only exists in new majors that drop APIs jest and
eslint use), and deepmerge (no patched release). The e2e package only
has the minimatch finding, so it is unchanged.
To verify: `pnpm audit` in `frontend` shows 0 high, down from 7.
Closes https://github.com/SigNoz/uforge-pod/issues/6454
#### Description
> TLDR: You can take a look at
https://claude.ai/artifact/LbFG6NcXyeRCm5MSnCKANc
- Upgrades react-router v5 (plus `react-router-dom-v5-compat` 6.30 and
`history@4`) to `react-router` 7.18.4. Follows #13173: pages and
components keep calling `src/lib/router`, so outside the router code the
only changes are render-order and nuqs write-order fixes.
- The app mounts a data router (`createBrowserRouter`) under a pathless
root route that renders `AppProviders`. The base path becomes the
router's `basename`. `lib/history`, `history`, `@types/history` and
`@types/react-router-dom` are removed.
- nuqs moves to its `react-router/v7` adapter, and the `react-router <7`
override goes, which held nuqs's copy below the fix for
GHSA-wrjc-x8rr-h8h6.
- The route table is static. A `RouteGate` renders `NotFound` for routes
the plan, license or flags turn off, which is what the old dynamic
`<Switch>` fell through to. `exact` is dropped (v7 matches exactly) and
the 4 prefix routes become `nested` (`pattern/*`).
- `useNavigationBlocker` moves to v7 `useBlocker` through a new
`useAppBlocker`, which deletes the history@4 replay code from #13173.
What replaced what:
| Before | After |
| --- | --- |
| `<Router history>` + `<CompatRouter>` in `AppShell` |
`createAppRouter` + `RouterProvider` in `index.tsx` |
| `<Switch>` over the enabled routes | static table in
`AppRoutes/routeTable.tsx`, `<Outlet context={enabledRouteKeys}>` |
| `lib/history` singleton behind `navigate()` | `attachRouter`:
`navigate()` drives the data router attached last |
| `blockNavigation` + `retryTransition` | `useAppBlocker` (`proceed` /
`reset`) |
| `nuqs/adapters/react` | `nuqs/adapters/react-router/v7` |
| `MemoryRouter` / history-backed `TestRouter` | browser data router
over jsdom's history, `HostRouter` |
| `lib/history` alias in Storybook | memory data router per story with a
guarded `navigate` |
#### Issues closed by this PR
Closes https://github.com/SigNoz/uforge-pod/issues/2544
#### Additional Information
Reviewing: read by commit. Only the tip builds, since the package swap
cannot land halfway.
- Read closely: `feat(router): back the facade with react-router v7`
(`navigation.ts`, `matchRoute`, `buildRoutePath`, `AppLink` /
`Redirect`), `feat(router): mount the app on a data router`
(`app/AppRouter.tsx`, `AppRoutes/routeTable.tsx`, `Private.tsx`), the
blocker commit and the test router commit (`tests/router.tsx`,
`router-utils.ts`, `lib/router/HostRouter.tsx`).
- Read closely: the 8 `fix(router)` commits. `useShareBuilderUrl` and
`QuerySearchV2Provider` published their query onto the next route while
a route-driven tab was leaving, and the provider then wiped an
expression a child runs on mount (the K8s drawer's Overview tab); two
lazy routes of one module (logs explorer, pipelines) reused the previous
page until the gate was keyed by route entry; `stripBasePath` now
matches case-insensitively, as the router does.
- Three fix nuqs writes that a navigation dropped or overwrote.
`nuqs/adapters/react-router/v7` patches `history.pushState` and
`replaceState`, and any write it did not make clears the writes it still
has queued. On K8s a row needed two clicks to open its drawer (a no-op
`replace` from `useSafeNavigate`), a category switch with a filter kept
the old category, run query kept the old page, and a stored page size
was lost on mount. Alert history rebuilt URLs from the router's stale
location, and the adapter adopted them, dropping the search expression.
Fixed at the call sites; the tests run the real adapter, and
`routing/url-state.spec.ts` TC-05 to TC-08 cover K8s. #13336 has the 2
K8s commits, not the alert history one. The FAQ below has the full nuqs
picture.
- Skim: deps, jest environment, Storybook and lint commits.
Behavior to know:
- Route transitions run with `useTransitions={false}`. Under a
transition React keeps the old screen, so a route whose chunk is not
cached would show no loader.
- The post-login hop to the stashed route still pushes
(`replace={false}`). Back from it now ends on `/home` instead of the
stashed route, because the stash is already cleared; TC-15 asserts it.
- `navigate()` and `getCurrentLocation()` throw when no router is
attached. Tests render first or call `attachTestRouter`.
Testing:
- The 2 K8s nuqs commits came after those runs: `tsgo`, lint and `pnpm
build` clean on the tip, and the 46 related jest suites pass. With the
fixed files reverted, 5 of their 7 new tests fail.
- E2E chromium, run before the rebase onto main, routing specs from
#13078 included: 415 passed, 4 failed. The 4 (alert history expression
filter TC-10 to TC-12, token highlight dark theme) are load flakes:
repeated 3 times at 6 workers, those specs fail 15 of 50 runs on the
#13173 build and 12 of 50 here.
- Bundle, against the #13173 build: the entry chunk grows by 20 KB gzip
(+0.78%). Router libraries in it go from 33 KB minified (v5, v6 compat,
history) to 95 KB (`react-router` 7). CSS unchanged, one lazy chunk
fewer.
FAQ:
<details>
<summary>Why a data router and not declarative mode
(<code><BrowserRouter></code> +
<code><Routes></code>)?</summary>
`<BrowserRouter>` creates its history inside the component and gives
nothing outside React a handle on it. 88 files navigate through
`lib/router/navigation`, some from plain modules (`api/utils.ts`,
`utils/app.ts`). In declarative mode the only way to reach them is
`unstable_HistoryRouter` over a `history@5` object we own, which is what
#13336 does. A data router is an object created before the first render,
so `navigation.ts` calls `router.navigate` on it directly. `useBlocker`
needs one too: in 7.18.4 it throws under `<Routes>` or
`unstable_HistoryRouter`.
</details>
<details>
<summary>Why remove <code>history</code> and
<code>lib/history</code>?</summary>
A data router creates and owns its history; v7 has no prop that accepts
one. Keeping the `lib/history` singleton would leave a second writer to
`window.history` that the router never hears: the router only listens to
`popstate`, so a `history.push` from the singleton moves the address bar
and renders nothing. What the singleton did (navigate from anywhere,
`listen`, `hasInAppHistory`) now lives in `navigation.ts` on top of the
attached router.
</details>
<details>
<summary>Why a new React context in <code>HostRouter</code>?</summary>
It is for tests and stories only; the app does not use it. A data
router's routes, elements included, are fixed when the router is
created. `TestRouter` creates its router once per mount, so a `rerender`
with new children would keep showing the first ones. `HostRouter` puts
the children in a context and the route element (`HostedTreeOutlet`)
reads it, so a re-render shows the new tree.
</details>
<details>
<summary>Why do routes read the enabled set from outlet
context?</summary>
The route table is built once, at module load, before any hook runs, so
it cannot ask the plan, license or flags which routes are on. `App`
still computes that set the way it did and passes it down as `<Outlet
context>`. `RouteGate` reads it and renders the page or `NotFound`,
where the old dynamic `<Switch>` fell through. Flags loading later never
recreates the router.
</details>
<details>
<summary>Why do the providers render inside the router now?</summary>
A data router renders everything under `RouterProvider`, and the only
place for a layout above the pages is the root route's element. The nuqs
adapter calls `useNavigate` and `useSearchParams`, so it has to be
inside a router. `AppProviders` and `App` became that root element.
</details>
<details>
<summary>Why does <code>navigate()</code> keep a stack of routers, and
throw without one?</summary>
Tests and stories mount their own data router. `attachRouter` pushes it
and its detach pops it, so `navigate()` moves whichever router is on
screen and hands back to the one below. With nothing attached there is
no router to hear the navigation, so it throws instead of silently
writing the URL.
</details>
<details>
<summary>Why is <code>RouteGate</code> keyed by route entry?</summary>
`<Outlet>` renders the matched element without a key. The logs explorer
and pipelines routes lazy-load the same module, so React reused the old
instance and showed the previous page. The key remounts the page when
the route entry changes.
</details>
<details>
<summary>Does any page load data through a loader now?</summary>
No. No route has a `loader` or `lazy`, so every page fetches through
react-query as before and navigations commit synchronously. The first
`loader` makes navigations through that route asynchronous:
`getCurrentLocation()` right after `navigate()` would then return the
old location.
</details>
<details>
<summary>Why did query builder files change if pages only call the
facade?</summary>
A route-driven tab keeps the leaving pane mounted until its animation
ends. On v7 that pane saw the new location and published onto it:
`useShareBuilderUrl` wrote the old tab's `compositeQuery`, and
`QuerySearchV2Provider` restored a dropped `expression`. Both now
publish only for their own page, and the URL owns the expression. That
last change wiped an expression a child runs on mount (the K8s drawer's
Overview tab starts from the list filter), so the provider skips its
first run when the URL has none.
</details>
<details>
<summary>Is the nuqs de-sync fixed?</summary>
It is two problems, and only one is fixed.
The router still lags nuqs, as on main. A nuqs write is shallow: it
calls `history.replaceState` or `pushState` itself and does not tell the
router, so `useLocation().search` stays behind the address bar until the
next router navigation. Event handlers read the real URL through
`getUnstableCurrentSearchParams()`. Removing that lag means `shallow:
false` writes, a separate change with known regressions (the role editor
blocker, AI assistant chips, Back behavior, a re-render per write).
The adapter swap is new. `nuqs/adapters/react-router/v7` patches
`pushState` and `replaceState`. A write it did not make, which means
every router navigation, does two things: it aborts the nuqs writes
still queued (they wait up to 50 ms), and it becomes nuqs's state.
Main's `nuqs/adapters/react` does neither, so router writes to a nuqs
param do not reach its hooks there. That gave two kinds of bug:
| Kind | Example | Status |
| --- | --- | --- |
| A navigation drops a queued write | K8s: two clicks to open a drawer,
category switch keeps the old category, run query keeps the old page,
stored page size lost | fixed: navigate before the nuqs setters,
`useSafeNavigate` skips a no-op target, the default query redirect
renders before the list |
| A URL rebuilt from the stale router location is adopted back | alert
history: a state tab, the top contributors drawer or a graph zoom
dropped the search expression | fixed: build from
`getUnstableCurrentSearchParams()` |
| Same, not confirmed | members `?invite=true`, dashboard `variables`
(`useViewPanel`, `usePanelInteractions`), planned downtime, routing
policies | open: needs a contrast test against main's adapter |
Jest tests run the real adapter, and `routing/url-state.spec.ts` TC-05
to TC-08 check the K8s first clicks. For new code: navigate first and
call nuqs setters after, and build a URL from
`getUnstableCurrentSearchParams()`, not from the router location.
</details>
<!--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 resource defs to `GET`/`PUT /api/v2/orgs/me` so org updates emit
audit events.
- Moves both routes from `AdminAccess` to `CheckResources`, scoped to
`organization:read` and `organization:update`. Admin gets both; editor
and viewer stay blocked.
- Migration 149 backfills the admin grants and refreshes managed roles
for existing orgs.
- The org ID comes from the caller's claims, since the update handler
ignores the body `id`.
<!--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/10
contributes to https://github.com/SigNoz/keystone-pod/issues/43
<!--Anything reviewers should keep in mind while reviewing -->
#### Additional Information
- The organization object has no org prefix, so the managed `*` grant
(`organization:organization/*`) covers every org. Safe here because both
routes take the org from claims. A route that takes an org ID from the
request needs an org-scoped grant first.
<!--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
- adding integration tests for audit querier
- adds tests for querying ingested audit logs
<!--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/13
#### Description
- The pipeline filter preview read its sample logs and its match count
from the v3 `query_range` API. The backend plans to remove the v3 APIs.
- The sample logs and the match count now come from v5 `query_range`.
The preview sends the filter as a v5 filter expression.
- On `use_json_body` tenants, v5 returns the log body as an object. The
pipelines preview API accepts only a string body, so "Simulate
Processing" failed with a 400. The preview now sends an object body as a
JSON string, as v3 did.
#### Issues closed by this PR
Closes https://github.com/SigNoz/events-pod/issues/274
#### Screen recording
https://github.com/user-attachments/assets/229ded0a-fc40-4f79-b593-d9387a43f3c7
#### Additional Information
- Part of https://github.com/SigNoz/events-pod/issues/156. This is the
`query_range` follow-up that https://github.com/SigNoz/signoz/pull/13207
mentioned.
- The preview calls v5 through the existing `useGetQueryRange` wrapper,
like the other v5 migrations.
- reproduced the 400 on a staging tenant with `use_json_body`. With the
fix, the simulation returns the processed logs.
- Stories: the Pipelines story serves v5 `query_range` for the sample
logs and the count. The story no longer serves the v3 suggestion APIs,
because the filter uses the v5 fields APIs since #13207. The simulation
fix renders nothing new, so the story is unchanged for it.
#### Description
- Add `user` and `factor-password` to the role permission schema and
panels, and teach the `generate authz` command to emit both.
- Gate the Members page on `user:list` (list, filter, search) and Invite
member, including the modal's submit, on `user:create`. Attach failures
show as the inline API error after click.
- Gate the member drawer: details on `user:read`, name and save on
`user:update`, delete/revoke on `user:delete`, and the password reset
link on `factor-password:create` + `user:attach`.
- Show the Members settings entry to every user; permissions decide what
it renders.
- Update unit tests, Members stories (new `Authz` folder, one story per
permission) and the e2e settings smoke spec for the new gating.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#202
#### Screenshots
[Before/after diff, dark and
light](https://claude.ai/artifact/XXY1xvkAMZoR6GS2cMmDdZ?sk=Yz4QIeLw8gEJ2ia5Ti5nbA):
110 pairs, 48 identical, 18 new, 44 changed (30 Roles permission cards,
6 settings nav, 8 sub-0.1% Members noise).
---------
Co-authored-by: vikrantgupta25 <vikrant@signoz.io>
#### Description
- Add a `relatedLinks` template func and `signoz.relatedLinks.slack` /
`signoz.relatedLinks.markdown` / `signoz.relatedLinks.html` blocks so
link selection, labels and formatting live in Go, not in stored channel
templates.
- Go-rendered notifiers (email, Google Chat, Jira, Slack buttons) build
their buttons from the shared `BuildRelatedLinks`.
- FE and Go defaults for Slack/MS Teams text, incident.io/JSM Ops
description and the Telegram message call the blocks instead of inlining
`.Annotations.related_logs/related_traces`.
- Migration 148 rewrites the shipped link snippet in
`alertmanager_config` receivers and `notification_channel` data/spec to
the block call. Sections that differ from the shipped defaults are left
as is and logged.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/587
#### Additional Information
- Labels change to "View Related Logs" / "View Related Traces" on
incident.io, JSM Ops and Telegram; Slack text now renders `<url|View
Related Logs> · <url|View Related Traces>` with no header lines when
links are absent.
- Telegram's FE default intentionally carries no `message` (the backend
fills `DefaultTelegramMessageTemplate`), so only the Go constant changes
for it. If #13119 ever ships a literal `message` default, that string
needs the html block call too.
- incident.io tests switch to `alertmanagernotifytest.CreateTmpl`
because upstream's helper lacks the SigNoz template blocks.
#### Description
- Adds `signoz/GeoMapPanel`: query results on a map as shaded
countries/states, bubbles or lat/lon points, in Mercator, Equal Earth or
Natural Earth.
- `location` names the group-by columns that place a row (country,
region, lat/lon); `map.colorBy` / `map.sizeBy` pick value columns. Both
are checked against the query, and all queries must share a group by,
since rows join by location (as for Scatter).
- Reuses Table formatting (`columnUnits`), Legend and the Heatmap
palette/scale enums. Thresholds are the Number panel's minus `format`: a
match always sets the color.
- Nested objects reject unknown fields; bubble radius bounds are checked
against the layer's defaults when only one is set.
- Allowed query kinds: builder, composite, formula and ClickHouse SQL.
No PromQL, and no trace operators: their input queries have no group by,
which breaks the shared group-by rule (same as Scatter).
- Public dashboards join GeoMap results into one table, as for Table and
Scatter.
#### Additional Information
- Stacked on #13030. Chart layer is #13350; the panel (#13351) carries
the regenerated Orval types.
- Replaces #13138, closed when the stack was reordered to put Geo Map
below Top List.
Closes https://github.com/SigNoz/pulse-pod/issues/694
---------
Co-authored-by: Naman Verma <naman.verma@signoz.io>
#### Description
- Stop redirecting `admin@signoz.cloud` to `/onboarding`. The first-user
check excluded that email from the user count but not from the redirect,
so support was locked out of every page on a new deployment until the
customer finished the questionnaire.
- Move the email to a `SIGNOZ_ADMIN_EMAIL` constant, shared by the user
filter and the redirect check.
#### Issues closed by this PR
ClosesSigNoz/keystone-pod#217
#### Description
- Adding the `safe-to-e2e` label now starts e2e right away. Before,
`e2eci` ignored label events, so the label only took effect on the next
push or reopen.
- Other labels get their own concurrency group and report as
`ignored-label`, so they never cancel a running e2e or hide its `e2e`
result. They still add a short run of skipped jobs to the checks list.
- The merge queue now runs the full test suite and reports a real `e2e`
result, instead of passing without running anything. Full runs take 17
to 27 minutes, inside the 60-minute queue timeout.
- `fmtlint` is skipped in the merge queue. It only checks `tests/e2e/`,
which each PR's own run already covers.
#### Issues closed by this PR
Closes https://github.com/SigNoz/pulse-pod/issues/736
2026-11-16 08:25:19 +00:00
3572 changed files with 123214 additions and 56860 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.
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.
@@ -18,7 +18,9 @@ tag <diff> <tag> <story-id>... # what the reviewer should look at
export <diff> --out <dir> # a static site, hostable
```
`<storybook>` is a running dev server (`http://localhost:6006`), a build directory holding `index.json`, or a project directory with `.storybook/`. The frontend has **no `build-storybook` script**, only `storybook dev -p 6006`, so point `capture` at a dev server.
`<storybook>` is a running dev server (`http://localhost:6006`), a build directory holding `index.json`, or a project directory with `.storybook/`. **Capture from a build**: `pnpm storybook:build` in `frontend` (about 2 minutes) writes `storybook-static/`. A dev server serves the preview module by module, which adds 5 to 10 seconds to every story and, with several stories at once, ends in `page.goto: Timeout 30000ms exceeded` retries.
Pass `--globals 'a11y.manual:!true'` to every `capture`. The a11y addon otherwise runs axe after every story, about 2 seconds each, and nothing it does shows in a shot.
## Cover the change with stories first
@@ -30,7 +32,7 @@ Then confirm it worked: the two runs' story counts should differ by exactly the
## Rules that are not optional
**One freshly started Storybook per ref.** Never start one server and switch git branches under it. Vite's HMR reloads the page, but some modules do not re-initialise, so the shot differs silently from a clean boot and the difference looks like a real change. Settle time does not fix this and is not the variable. Use one worktree and one port per ref, and stop each server before the next.
**One freshly started Storybook per ref.** Never start one server and switch git branches under it. Vite's HMR reloads the page, but some modules do not re-initialise, so the shot differs silently from a clean boot and the difference looks like a real change. Settle time does not fix this and is not the variable. Use one worktree and one port per ref, and stop each server before the next. A build made in each ref's worktree has none of this.
**Capture both themes: `--theme dark,light`.** Without it sbshot shoots the story's own default and everything lands in a single `default/` folder, so every regression in the other theme is invisible. Themes double the shot count, so scope with `--stories` or `--title`, never by dropping a theme.
@@ -86,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:
- 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.
- 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.
@@ -122,10 +123,11 @@ Before writing the clicks, list what has to be on screen for the play's target t
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.
git diff --compact-summary --exit-code || (echo; echo "Unexpected difference in generated web settings types. Run pnpm generate:config:web-settings in frontend/ locally and commit."; exit 1)
test -z "$(git status --porcelain)" || (echo; echo "Unexpected difference in geo map outlines. Run pnpm build:geo-outlines in frontend/ locally and commit."; exit 1)
provider.settings.Logger().WarnContext(ctx,"failed to write active license to cache",errors.Attr(cacheErr),slog.String("org_id",organizationID.StringValue()))
provider.settings.Logger().WarnContext(ctx,"failed to read active license from cache",errors.Attr(err),slog.String("org_id",organizationID.StringValue()))
// 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)
"no-restricted-globals":[
"error",
{
@@ -316,6 +318,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."
@@ -497,7 +509,11 @@
// Requires final else in if-else-if chains (was disabled)
`Do not set "${property}" in CSS. Render the text with @signozhq/ui/typography and use its props, or disable this rule with a reason after "--" saying why Typography cannot.`,
@@ -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
line-height:var(--paragraph-small-400-line-height);// 18px
}
// Font weights
.bold{
font-weight:var(--font-weight-semibold);// 600
font-weight:var(--font-weight-medium);// 500
font-weight:var(--font-weight-normal);// 400
}
// Line heights
.text{
line-height:var(--line-height-20);// 20px
line-height:var(--line-height-24);// 24px
.id{
font-family:var(--code-base-400-font-family);
font-size:var(--code-base-400-font-size);// 13px
}
```
@@ -293,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
@@ -438,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
`Do not set '${property}' in CSS. Render the text with @signozhq/ui/typography and use its props, or disable this rule with a reason after \`--\` saying why Typography cannot.`;
"import { useMemo } from 'react';\nexport const A = () => {\n\tconst s = useMemo(() => ({ textAlign: 'left' }), []);\n\treturn <div style={s} />;\n};",
errors:[{message:message('textAlign')}],
},
{
name:'object typed CSSProperties',
code:
"import type { CSSProperties } from 'react';\nexport const s: CSSProperties = { fontStyle: 'italic' };",
errors:[{message:message('fontStyle')}],
},
{
name:
'object typed React.CSSProperties, reported once when also used as style',
code:
"import React from 'react';\nconst s: React.CSSProperties = { fontSize: 1 };\nexport const A = () => <div style={s} />;",
errors:[{message:message('fontSize')}],
},
{
name:'Record of CSSProperties',
code:
"import type { CSSProperties } from 'react';\nexport const s: Record<string, CSSProperties> = { a: { lineHeight: 1 } };",
errors:[{message:message('lineHeight')}],
},
{
name:'as and satisfies CSSProperties',
code:
"import type { CSSProperties } from 'react';\nexport const a = { fontSize: 1 } as CSSProperties;\nexport const b = { fontWeight: 1 } satisfies CSSProperties;",
errors:[
{message:message('fontSize')},
{message:message('fontWeight')},
],
},
{
name:'styled-components template',
code:
"import styled from 'styled-components';\nexport const A = styled.div`\n\tdisplay: flex;\n\tfont-size: 12px;\n\tcolor: ${(p) => p.c};\n\ttext-transform: none;line-height: 1;\n`;",
'Disallow direct react-router / lib/history imports; import from src/lib/router instead',
'Disallow direct react-router imports; import from src/lib/router instead',
category:'React Router migration',
},
schema:[],
messages:{
v5Router:
'Do not import react-router-dom directly. Use the src/lib/router facade (useAppNavigate, useAppLocation, useAppParams, AppLink, Redirect, matchRoute) so a router upgrade stays contained.',
v6Compat:
'Do not import react-router-dom-v5-compat directly. Use the src/lib/router facade instead; the compat package is an implementation detail of the migration and disappears with it.',
historySingleton:
'Do not import the lib/history singleton. Use the helpers in src/lib/router/navigation.ts, or useAppNavigate() to follow the nearest router. history loses basename handling once the router owns it.',
router:
'Do not import react-router directly. Use the src/lib/router facade (useAppNavigate, useAppLocation, useAppParams, AppLink, Redirect, matchRoute) so a router upgrade stays contained.',
routerDom:
'Do not import react-router-dom. The app is on react-router; on v7 react-router-dom is only a re-export shim, and installing it puts two copies of the router in the tree. Use the src/lib/router facade.',
mock:
'Do not mock the router directly. Render at a route with tests/test-utils, or spy on the facade with the tests/router-mocks helpers.',
* ${(p) => p.small && 'font-size: 11px;'} strings in their interpolations
*
* Identifiers passed to a style prop are followed to a local object literal.
* SCSS is covered by the stylelint config.
*/
constMESSAGE=(property)=>
`Do not set '${property}' in CSS. Render the text with @signozhq/ui/typography and use its props, or disable this rule with a reason after \`--\` saying why Typography cannot.`;
.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;}
* Returns a page of alert rules with their current evaluation state, trimmed to the fields the list page renders. Supports a filter DSL (`query`), a repeated `states` filter applied after the state overlay, sort (`updated_at`/`created_at`/`name`/`state`/`severity`), order (`asc`/`desc`), and offset-based pagination (`limit`/`offset`). In the filter DSL, a non-reserved key is matched as a rule label directly (`team = infra`); a key that collides with a reserved keyword matches either interpretation (negative operators exclude both), and `labels.<key>` targets only the label. The response also carries the org's label pairs and the reserved filter keys for building filter suggestions.
* Returns a page of alert rules with their current evaluation state, trimmed to the fields the list page renders. Supports a filter DSL (`query`), a repeated `states` filter applied after the state overlay, sort (`updated_at`/`created_at`/`name`/`state`/`thresholds`), order (`asc`/`desc`), and offset-based pagination (`limit`/`offset`). In the filter DSL, a non-reserved key is matched as a rule label directly (`team = infra`); a key that collides with a reserved keyword matches either interpretation (negative operators exclude both), and `labels.<key>` targets only the label. The response also carries the org's label pairs and the reserved filter keys for building filter suggestions.
* This endpoint lists the service accounts for an organisation
* Returns a page of the service accounts for an organisation. `query` is a filter expression over name, email, status, created_at and updated_at, for example `status = 'active'`; `sort`/`order` pick the ordering and `limit`/`offset` the page.
* @description The default time range, as a Prometheus duration such as 1h or 7d. Stored, but not applied by the UI.
* @description The default time range, as a Prometheus duration such as 1h or 7d. The UI opens the dashboard on it, rounded up to whole minutes, when neither the URL nor the viewer's last pick sets a time range.
* @description The current evaluation state: inactive, pending, recovering, firing, nodata or disabled.
*/
state: RuletypesAlertStateDTO;
/**
* @type array
* @description The rule's threshold names in lowercase, deduplicated and ordered critical, error, warning, info, then other names. An alert carries the name of the threshold that fired as its severity. Read-only.
* @description The field to sort by: updated_at (the default), created_at, name, state or severity.
* @description The field to sort by: updated_at (the default), created_at, name, state or thresholds. Sorting by thresholds ranks each rule by its first threshold name.
* Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. severity is the conventional routing label.
* Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. A label named after one the engine writes, such as severity or threshold.name, is ignored.
* @description Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. severity is the conventional routing label.
* @description Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. A label named after one the engine writes, such as severity or threshold.name, is ignored.
* Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. severity is the conventional routing label.
* Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. A label named after one the engine writes, such as severity or threshold.name, is ignored.
* @description Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. severity is the conventional routing label.
* @description Labels attached to every alert the rule fires. Keys match [a-zA-Z_.][a-zA-Z0-9_.]*; values may use Go templates such as {{$labels.service_name}}. A label named after one the engine writes, such as severity or threshold.name, is ignored.
* @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.
@@ -15168,7 +15517,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;
/**
@@ -15179,13 +15528,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;
/**
@@ -15227,7 +15576,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;
/**
@@ -15238,13 +15587,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;
/**
@@ -15272,7 +15621,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;
/**
@@ -15520,11 +15869,34 @@ export type GetServiceAccountRole200 = {
status: string;
};
exporttypeListServiceAccounts200={
exporttypeListServiceAccountsParams={
/**
* @type array
* @type string
* @description A filter expression over the reserved keys name, email, status, created_at and updated_at using the SigNoz filter grammar: comparisons such as =, !=, CONTAINS, LIKE, IN, < and >, single-quoted strings, RFC3339 timestamps in quotes for created_at and updated_at, combined with AND, OR and NOT, for example name CONTAINS 'ci' AND status = 'active'. A bare or quoted token without a key matches name or email case-insensitively. At most 1024 characters. Empty matches every service account.
*/
data: ServiceaccounttypesServiceAccountDTO[];
query?: string;
/**
* @description The sort column: created_at (default), updated_at or name.
@@ -16759,7 +17131,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;
/**
@@ -16770,13 +17142,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;
/**
@@ -16821,7 +17193,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;
/**
@@ -16832,13 +17204,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;
/**
@@ -16866,7 +17238,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;
/**
@@ -17028,7 +17400,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.
*/
source?: SavedviewtypesSourceDTO;
/**
@@ -17276,7 +17648,7 @@ export type ListRulesV3Params = {
*/
states?: string[];
/**
* @description The field to sort by: updated_at (the default), created_at, name, state or severity.
* @description The field to sort by: updated_at (the default), created_at, name, state or thresholds. Sorting by thresholds ranks each rule by its first threshold name.
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.