Skip to content

fix(docs) Improve a11y for Admonitions with file refactor - #48112

Merged
czenko merged 9 commits into
masterfrom
a11y/docs-admonition
Jul 24, 2026
Merged

czenko merged 9 commits into
masterfrom
a11y/docs-admonition

Conversation

@czenko

@czenko czenko commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes FE-3914

I have read the CONTRIBUTING.md file.

YES

Problem

On screenreader, I found that the Admonition was not behaving as it should:

  • There was no way on screenreader to tell what type of note I was seeing
  • I could not tell when a note began or ended.
  • The screenreader also read aloud an 'image' icon without knowing what it was.
  • Notes with titles were an h5, breaking header hierarchy structures.

Solution

This PR does several things to resolve the issue:

  • Adds aria-hidden to all icons. Instead of duplicating code, I refactored the icons into a Base Icon and moved Admonitions into its own folder.
  • Adds a text label for each of the notes. For example, "Note:". This is a standard practice in other documentation. If there is a title, it is added there. Otherwise, it's added to the description. Change reverted from design feedback.
  • Adds role='note' and aria-label to the Admonition. While <aside> is recommended semantic HTML, the base UI element does not allow for that change. This will be done in a follow-up for docs only.
  • Refactors Admonition into a folder with files so that it is more readable
  • Removes h5 by default with a new prop to declare a header

Additionally adjusts the icon so that it aligns with text better.

Testing

  1. Open documentation preview
  2. Navigate to any guide and see its admonition. Compare to live. You can also see the Design System: https://design-system-git-a11y-docs-admonition-supabase.vercel.app/design-system/docs/fragments/admonition
  3. See the icon position is in line with the text.
  4. See the text label.
  5. Use a screenreader like Voiceover on the admonition. Hear that it is clearly defined.

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Added the Admonition UI pattern with support for type, layout, title/description, optional actions, and configurable icons.
    • Expanded Admonition’s public export surface with dedicated subpath entry points and icon/type exports.
  • Bug Fixes
    • Standardized Admonition import path casing across related components.
  • Documentation
    • Updated design system examples to use type="warning" instead of variant="warning".
  • Tests
    • Added/updated the Admonition test coverage and removed the legacy test file.

@supabase

supabase Bot commented Jul 20, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 24, 2026 10:10pm
docs Ready Ready Preview, Comment, Open in v0 Jul 24, 2026 10:10pm
studio-self-hosted Ready Ready Preview, Comment Jul 24, 2026 10:10pm
studio-staging Ready Ready Preview, Comment Jul 24, 2026 10:10pm
ui-library Ready Ready Preview, Comment Jul 24, 2026 10:10pm
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 24, 2026 10:10pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 24, 2026 10:10pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR moves Admonition into a dedicated module with typed contracts, label and variant mappings, reusable icons, rendering tests, package export subpaths, and updated consumers using corrected casing.

Changes

Admonition component

Layer / File(s) Summary
Admonition contracts and icon mappings
packages/ui-patterns/src/Admonition/Admonition.types.ts, packages/ui-patterns/src/Admonition/Admonition.constants.ts, packages/ui-patterns/src/Admonition/AdmonitionIcons.tsx
Defines supported types, layouts, props, label and variant mappings, and type-specific icon components.
Admonition rendering and validation
packages/ui-patterns/src/Admonition/Admonition.tsx, packages/ui-patterns/src/Admonition/Admonition.test.tsx
Adds the forward-ref component with configurable content, layouts, actions, icons, accessibility attributes, and tests.
Module, package, and consumer wiring
packages/ui-patterns/src/Admonition/index.tsx, packages/ui-patterns/src/admonition.tsx, packages/ui-patterns/package.json, packages/ui-patterns/src/Dialogs/*, packages/ui-patterns/src/ErrorDisplay/ErrorDisplay.tsx, packages/ui-patterns/src/PrivacySettings/index.tsx, packages/ui-patterns/src/SqlToRest/index.tsx, apps/design-system/content/docs/components/label.mdx, apps/studio/components/interfaces/Database/Policies/Policies.tsx
Adds barrel and package subpath exports, converts the legacy module to a re-export, updates consumer import casing, and replaces warning variant props with type props.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Consumer
  participant Admonition
  participant AdmonitionTypeIcon
  participant Alert
  Consumer->>Admonition: Pass type, content, layout, and actions
  Admonition->>AdmonitionTypeIcon: Resolve optional type icon
  Admonition->>Alert: Render variant, accessibility attributes, and content
  Alert-->>Consumer: Render admonition UI
Loading

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the PR’s main focus on Admonition accessibility and refactoring.
Description check ✅ Passed The description covers the required change summary, issue link, behavior, solution, and testing, though it uses custom headings.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch a11y/docs-admonition

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@@ -0,0 +1,126 @@
import { render, screen, within } from '@testing-library/react'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test had been renamed and migrated, but Github does not seem to detect that it has moved.

@@ -0,0 +1,208 @@
import { cva } from 'class-variance-authority'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was also renamed and migrated into an Admonition folder.

children: ReactNode
}

function AdmonitionIcon({ className, viewBox, children, ...props }: AdmonitionIconBaseProps) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New base icon

@@ -0,0 +1,54 @@
import type { ReactNode, SVGProps } from 'react'

@czenko czenko Jul 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Icons are pulled out from the component to reduce file size and improve readability.

)
}
)
export * from './Admonition'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not break exports.

) => {
const typeMapped = variant ? admonitionToAlertMapping[variant] : admonitionToAlertMapping[type]
const typeStyle = type === 'success' ? 'success' : typeMapped
const typeLabel = admonitionTypeLabel[type]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New label

@czenko

czenko commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

This is still in draft. I want to adjust the tailwind styles before I'm ready for design review.

@czenko
czenko marked this pull request as ready for review July 20, 2026 22:51
@czenko
czenko requested a review from a team as a code owner July 20, 2026 22:51
@czenko
czenko requested a review from a team July 20, 2026 22:54

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
packages/ui-patterns/src/Admonition/Admonition.tsx (1)

31-31: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Consider including title in aria-label when present.

Currently aria-label is always just the generic type label (e.g. "Note"), even when a specific title is supplied. Multiple admonitions of the same type on a page will all share an identical, non-descriptive accessible name for screen-reader landmark navigation.

♻️ Proposed refactor
-    const label = TYPE_LABEL[type]
+    const label = TYPE_LABEL[type]
+    const accessibleName = title ? `${label}: ${title}` : label
-        aria-label={label}
+        aria-label={accessibleName}

Also applies to: 37-38

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Admonition/Admonition.tsx` at line 31, Update the
aria-label construction in Admonition to include the supplied title alongside
the generic TYPE_LABEL[type] value when title is present, while retaining the
current type label for untitled admonitions. Apply the change to the related
accessibility attributes around the referenced lines without altering other
admonition behavior.
packages/ui-patterns/src/Admonition/Admonition.test.tsx (1)

98-98: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Brittle SVG path assertion.

Hardcoding the exact d path data couples this test to icon implementation details; any icon glyph update (even a purely cosmetic one) will break this test.

♻️ Proposed refactor
-    expect(note.querySelector('svg path')?.getAttribute('d')).toContain('M10.5 19.5')
+    expect(note.querySelector('svg')).toBeInTheDocument()
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Admonition/Admonition.test.tsx` at line 98, Replace
the exact SVG path-data assertion in the Admonition test with an assertion on
the stable, user-facing icon behavior or identifying attributes. Keep verifying
that the note renders the expected icon, but avoid depending on the path
element’s specific d value or glyph geometry.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/ui-patterns/src/Admonition/Admonition.tsx`:
- Around line 10-14: Update the Admonition prop typing and rendering so
consumer-supplied variant is not accepted and silently overridden. Include the
Alert variant key in the omitted props used by the forwardRef generic, and
ensure the Alert invocation around the explicit variant={TYPE_TO_VARIANT[type]}
remains the sole source of the variant value.

---

Nitpick comments:
In `@packages/ui-patterns/src/Admonition/Admonition.test.tsx`:
- Line 98: Replace the exact SVG path-data assertion in the Admonition test with
an assertion on the stable, user-facing icon behavior or identifying attributes.
Keep verifying that the note renders the expected icon, but avoid depending on
the path element’s specific d value or glyph geometry.

In `@packages/ui-patterns/src/Admonition/Admonition.tsx`:
- Line 31: Update the aria-label construction in Admonition to include the
supplied title alongside the generic TYPE_LABEL[type] value when title is
present, while retaining the current type label for untitled admonitions. Apply
the change to the related accessibility attributes around the referenced lines
without altering other admonition behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2fa237d2-f782-41f1-86c5-646daa07b3c3

📥 Commits

Reviewing files that changed from the base of the PR and between 45ba40e and 3871180.

📒 Files selected for processing (14)
  • packages/ui-patterns/package.json
  • packages/ui-patterns/src/Admonition/Admonition.constants.ts
  • packages/ui-patterns/src/Admonition/Admonition.test.tsx
  • packages/ui-patterns/src/Admonition/Admonition.tsx
  • packages/ui-patterns/src/Admonition/Admonition.types.ts
  • packages/ui-patterns/src/Admonition/AdmonitionIcons.tsx
  • packages/ui-patterns/src/Admonition/index.tsx
  • packages/ui-patterns/src/Dialogs/ConfirmationModal.tsx
  • packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
  • packages/ui-patterns/src/ErrorDisplay/ErrorDisplay.tsx
  • packages/ui-patterns/src/PrivacySettings/index.tsx
  • packages/ui-patterns/src/SqlToRest/index.tsx
  • packages/ui-patterns/src/admonition.test.tsx
  • packages/ui-patterns/src/admonition.tsx
💤 Files with no reviewable changes (1)
  • packages/ui-patterns/src/admonition.test.tsx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
packages/ui-patterns/src/Admonition/Admonition.test.tsx (2)

62-62: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Prefer semantic role queries over DOM selectors.

Using querySelector is discouraged in React Testing Library, particularly in tests designed to verify accessibility. Use queryByRole('heading') to semantically assert that no headings are rendered.

  • packages/ui-patterns/src/Admonition/Admonition.test.tsx#L62-L62: replace the DOM selector with expect(within(note).queryByRole('heading')).not.toBeInTheDocument()
  • packages/ui-patterns/src/Admonition/Admonition.test.tsx#L76-L76: replace the DOM selector with expect(within(note).queryByRole('heading')).not.toBeInTheDocument()
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Admonition/Admonition.test.tsx` at line 62, Replace
the DOM querySelector heading checks in
packages/ui-patterns/src/Admonition/Admonition.test.tsx at lines 62-62 and 76-76
with within(note).queryByRole('heading') assertions, preserving the expectation
that no heading is rendered.

119-120: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Extract the element query into a variable.

To avoid querying the DOM multiple times and to maintain consistency with the other tests in this file, extract screen.getByRole('note') into a note variable. This also ensures both assertions use the same { name } scoped filter.

♻️ Proposed refactor
-    expect(screen.getByRole('note', { name })).toBeVisible()
-    expect(within(screen.getByRole('note')).queryByText(`${name}:`)).not.toBeInTheDocument()
+    const note = screen.getByRole('note', { name })
+    expect(note).toBeVisible()
+    expect(within(note).queryByText(`${name}:`)).not.toBeInTheDocument()
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui-patterns/src/Admonition/Admonition.test.tsx` around lines 119 -
120, In the test containing the two note assertions, extract the named
`screen.getByRole('note', { name })` result into a `note` variable, then use
that variable for both visibility and `within` assertions so the same filtered
element is queried once.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@packages/ui-patterns/src/Admonition/Admonition.test.tsx`:
- Line 62: Replace the DOM querySelector heading checks in
packages/ui-patterns/src/Admonition/Admonition.test.tsx at lines 62-62 and 76-76
with within(note).queryByRole('heading') assertions, preserving the expectation
that no heading is rendered.
- Around line 119-120: In the test containing the two note assertions, extract
the named `screen.getByRole('note', { name })` result into a `note` variable,
then use that variable for both visibility and `within` assertions so the same
filtered element is queried once.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bf28bc83-f213-45ef-b3ae-41e8548b2ebb

📥 Commits

Reviewing files that changed from the base of the PR and between d66dbd1 and b50d726.

📒 Files selected for processing (2)
  • packages/ui-patterns/src/Admonition/Admonition.test.tsx
  • packages/ui-patterns/src/Admonition/Admonition.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/ui-patterns/src/Admonition/Admonition.tsx

)}
>
{title && (
<div

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is text/heading it shouldn't be a div, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Maybe <p> with <strong> since <h5> was dropped on purpose?

@czenko czenko Jul 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. H5 breaks the heading hierarchy if the header above is not h4. Possibly, there can be a prop for the header so the heading-level is defined correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the 'p'.

Comment on lines +84 to +85
{description}
{children}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about AlertDescription? That auto-wrapped strings in <p>. I believe just the raw text node is shown now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean just for description, not children.

AlertTitle and AlertDescription also had built-in text styles. I wonder if we should have just amended those instead of pulling them out. What do you think of that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Sounds cleaner. 😄

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One proper ask around role. Some other minor comments!

czenko and others added 3 commits July 24, 2026 11:03
Move Admonition into its own folder, split icons out, and label
admonitions for screen readers: group the region with an aria-label,
hide decorative icons, and keep the underlying role=alert semantics.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Restricted to h2-h5 since an admonition title is never a page's
top-level heading and h6 has no practical use in this context.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@czenko
czenko force-pushed the a11y/docs-admonition branch from 474ae2a to 542a8e6 Compare July 24, 2026 18:04
variant is always derived from type via TYPE_TO_VARIANT and silently
overridden at runtime, so allowing it through the prop types was a
footgun with no compile or runtime signal.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@czenko

czenko commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@dnywh Feedback is applied and I've used Claude to clean up the commit history:

  • A heading prop takes h2 to h6
  • By default, the heading is 'p'
  • role='note' is reverted to 'alert' and will be handled in a follow-up PR only for a documentation context

variant was always silently overridden by TYPE_TO_VARIANT[type], so
these were rendering with the default note styling instead of the
intended warning styling. Now caught at compile time by the stricter
Admonition prop types.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@czenko
czenko requested a review from a team as a code owner July 24, 2026 18:25
@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 52 seconds
commit  64a7842

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

type = 'note',
showIcon = true,
title,
headingLevel,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can’t foresee using the headingLevel prop FWIW. Can you?

Comment on lines -173 to -183
{description && (
<AlertDescription
{...childProps.description}
className={cn(
admonitionBodyClassName,
!heading && 'my-0.5',
childProps.description?.className
)}
>
{description}
</AlertDescription>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR still has one minor regression against prod: any text that is passed in the description prop is now a raw text node instead of <p>. Should we re-include this selected logic?

TLDR: put description in <AlertDescription> again?

czenko and others added 4 commits July 24, 2026 14:16
description wrapped in AlertDescription
Remove heading override option
The title is a <p>, so the MDX body [&_p]:!mb-1.5 rules were overriding its mb-0.5 and adding ~4px under the title.
… admonition

Prefer beating [&_p]:!mb-1.5 with !mb-0.5 on the title over splitting the DOM.
!mb-0.5 on the title loses to parent [&_p]:!mb-1.5 (class+element beats class).
Mark the title and narrow the reset selector instead.
@czenko
czenko merged commit 2b27ed0 into master Jul 24, 2026
37 checks passed
@czenko
czenko deleted the a11y/docs-admonition branch July 24, 2026 22:51
@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784933672)

Score Average Improvements Regressions
Completeness 100% (+0pp) - -
Conciseness 44.8% (+6pp) 9 🟢 3 🔴
Docs Faithfulness 64% (-1pp) 3 🟢 3 🔴
Goal Completion 83.3% (+3pp) 6 🟢 3 🔴
Tool Usage 76.5% (+6pp) 3 🟢 -
Correctness 68.9% (-6pp) 2 🟢 7 🔴
Knowledge Usage 100% (+3pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 100% (+5pp) 1 🟢 -
URL Validity 100% (+0pp) - -
Time_to_first_token 3.29tok (-0.12tok) 17 🟢 12 🔴
Llm_calls 7.57 (+0.64) 21 🟢 5 🔴
Tool_calls 3.15 (+0.18) 15 🟢 10 🔴
Errors 0 (-0.01) 1 🟢 -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24220.05tok (-627.89tok) 12 🟢 14 🔴
Prompt_cached_tokens 7168tok (+294.25tok) 15 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 673.57tok (+51.98tok) 7 🟢 21 🔴
Completion_reasoning_tokens 108.24tok (+11.7tok) 10 🟢 16 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24893.62tok (-575.91tok) 12 🟢 17 🔴
Estimated_cost 0$ (0$) 9 🟢 19 🔴
Duration 19.44s (+2.66s) 6 🟢 23 🔴
Llm_duration 12.9s (+1.05s) 8 🟢 21 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants