#### 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.
2026-11-24 03:57:36 +00:00
2809 changed files with 29176 additions and 14916 deletions
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`.
- **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.
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.
// TODO: Change to error after migration to oxlint
@@ -305,6 +296,8 @@
// 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",
{
@@ -325,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."
@@ -561,6 +564,7 @@
],
"rules":{
"import/first":"off",
"signoz/no-dom-node-access":"error",
// Should ignore due to mocks
"signoz/no-navigator-clipboard":"off",
// Tests can use navigator.clipboard directly,
@@ -568,6 +572,8 @@
"no-restricted-globals":"off",
// Tests need raw localStorage/sessionStorage to seed DOM state for isolation
"signoz/no-zustand-getstate-in-hooks":"off",
"signoz/no-builder-ai-query-access":"off",
// Fixtures build and assert on the raw AI slot
"@typescript-eslint/no-explicit-any":"off",// Tests often need any for mocks/stubs
"@typescript-eslint/explicit-module-boundary-types":"off",// Return types not required in tests
"@typescript-eslint/explicit-function-return-type":"off"// Same as above rule, don't need to care about return type
@@ -624,6 +630,20 @@
"rules":{
"signoz/no-direct-react-router-import":"off"
}
},
{
// builderSlot owns the AI slot; the rest normalise its wire shape or test whether it exists, which the helpers hide
@@ -34,14 +34,18 @@ You are operating within a constrained context window and strict system prompts.
- 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
.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;}
@@ -15619,7 +15619,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;
/**
@@ -17236,7 +17236,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.
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.